Bearer provides all of the tools to build, run and manage API integrations.

Overview

Bearer - The API Integration Framework

Bearer Documentation

Bearer provides all of the tools to build, run and manage API
Learn more


Version License Build Status

Archive Status

Bearer JS has been archived as we no longer support building integrations directly with Bearer. See our open source project, Pizzly, which offers much of this functionality.

Useful links

Comments
  • Support passing params when connecting

    Support passing params when connecting

    🐻 What your PR is doing?

    Adds support for a params property to the Connect Component. The params are passed to the JS client which sends them to the connect URL. The parameters can then be used in the auth/request config for an API.

    πŸ“¦ Package concerned

    • @bearer/js
    • @bearer/react

    βœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by didroe 4
  • docs: update README to reflect archived status

    docs: update README to reflect archived status

    🐻 What your PR is doing?

    Update README to reflect new archived status

    πŸ“¦ Package concerned

    πŸ–₯ Screenshots or screen recording

    Before

    After

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by elsapet 1
  • Add support for fetching auth details to Node client

    Add support for fetching auth details to Node client

    🐻 What your PR is doing?

    For the Node client, adds api.getAuth() to retrieve auth details. We wrap the raw response from the fetch auth endpoint to decode the dates and give more user-friendly/idiomatic names to the returned values.

    πŸ“¦ Package concerned

    • @bearer/node

    βœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by didroe 1
  • refactor(bearer-js): make bearer-js ts3.7 compatibile

    refactor(bearer-js): make bearer-js ts3.7 compatibile

    🐻 What your PR is doing?

    Ensure we are compatible with ts3.7

    πŸ“¦ Package concerned

    @bearer/js

    πŸ–₯ Screenshots or screen recording

    Before

    src/index.ts:2:8 - error TS2440: Import declaration conflicts with local declaration of 'BearerInstance'.
    
    2 import BearerInstance from './lib/bearer'
             ~~~~~~~~~~~~~~
    
    
    Found 1 error.
    

    After

    yarn run v1.19.0
    $ /home/radek/work/bearer/bearer-js/node_modules/.bin/tsc --noEmit
    Done in 1.53s.
    

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • Docs/outdated readme

    Docs/outdated readme

    🐻 What your PR is doing?

    Fixes a few problems with the node package readme.

    • Link to @bearer/express pointed to an outdated git link
    • Docs for the invoke method appear to be left over from it's removal in c81f6376c0d3f1a89cb2260d371b035f93b1e50d. Removed references from the timeout section.

    πŸ“¦ Package concerned

    • @bearer/node

    πŸ–₯ Screenshots or screen recording

    image

    Before

    image

    After

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [x] I used conventional commits
    ignore-reminder 
    opened by markmichon 0
  • fix: export node bearer client

    fix: export node bearer client

    🐻 What your PR is doing?

    • export BearerClient class: allow developer to create wrapper on top of it and take advantages of Typescript
    • update readme

    πŸ“¦ Package concerned

    • @bearer/express
    • @bearer/node

    πŸ–₯ Screenshots or screen recording

    Before

    After

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by tanguyantoine 0
  • Node agent

    Node agent

    🐻 What your PR is doing?

    Sorry, that is a huge one πŸ™

    • create bearer' node agent
    • backport ruby agent functionalities

    πŸ“¦ Package concerned

    • @bearer/node-agent

    πŸ›  How to test it

    • build the package:yarn build (at packages/node-agent location)
    • link the package: yarn link (at packages/node-agent location)
    • create a dummy application
    // index.js
    require('@bearer/node-agent')
    const axios = require('axios')
    axios.post(
      'https://postman-echo.com/post',
      {
        whatever: 'ok'
      },
      { params: { sponge: 'bob' } }
    )
    
    
    • run the script
    BEARER_SECRET_KEY=yourkey node index.js
    

    βœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by tanguyantoine 0
  • feat(@bearer/node): add logging

    feat(@bearer/node): add logging

    🐻 What your PR is doing?

    Adds logging to @bearer/node

    πŸ“¦ Package concerned

    πŸ–₯ Screenshots or screen recording

    Before

    request-id was not logged

    After we log request-id with using the following format:

    { message: 'request id: 1-5da8547f-95e728ac64f9ea90cb50ae68',
    level: 'info',
    label: 'bearer',
    timestamp: '2019-10-17T11:46:07.448Z' }
    

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • feat(node-agent): import poc

    feat(node-agent): import poc

    🐻 What your PR is doing?

    Introduce node-agent

    πŸ“¦ Package concerned

    • @bearer/node-agent

    πŸ–₯ Screenshots or screen recording

    Before

    After

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by tanguyantoine 0
  • build: test build

    build: test build

    🐻 What your PR is doing?

    Testing builds

    πŸ“¦ Package concerned

    • all

    πŸ–₯ Screenshots or screen recording

    Before

    After

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • Feat/ci cd publishing

    Feat/ci cd publishing

    🐻 What your PR is doing?

    Setup CI/CD to publish using lerna

    πŸ“¦ Package concerned

    • all

    πŸ–₯ Screenshots or screen recording

    Before

    no publishing on tag event

    After

    Packages will be published as next on tag event

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • [BUG] - Creating a setup-id with wrong authentication type is failing silently

    [BUG] - Creating a setup-id with wrong authentication type is failing silently

    Describe the bug Saving a bad type of credentials fails silently (response is 200 with error message in it)

    Package concerned

    @bearer/js

    To Reproduce Steps to reproduce the behavior.

    1. Sign in to your Bearer dashboard
    2. Make sure you've the Stripe API added
    3. Serve the following code
    <!DOCTYPE html>
    <script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
    <script>
      const bearerClient = bearer('YOUR-PUBLISHABLE-KEY')
    
      bearerClient
        .integration('stripe')
        .invoke('bearer-setup-save', { setup: { type: 'TEST', apiKey: 'stripe-api-key' } })
        .then(({ data }) => console.log(data.setupId))
    </script>
    
    1. Look into the network tab of your web DevTools. The request to save credentials returns a 200.

    Expected behavior The authentication type passed is TEST, which isn't supported by Bearer. So I presume Bearer should reply with a 400 Bad request.

    The error message in the response is pretty helpful though:

    {
       "error":{
          "isJoi":true,
          "name":"ValidationError",
          "details":[
             {
                "message":"\"type\" must be one of [OAUTH2, OAUTH1, APIKEY, BASIC]",
                "path":["type"],
                "type":"any.allowOnly",
                "context":{
                   "value":"TEST",
                   "valids":[  "OAUTH2", "OAUTH1", "APIKEY", "BASIC"  ],
                   "key":"type",
                   "label":"type"
                }
             }
          ],
          "_object":{
             "type":"TEST",
             "apiKey":"stripe-api-key"
          }
       }
    }
    ```
    opened by Frenchcooc 1
  • feat(@bearer/node): add retry

    feat(@bearer/node): add retry

    🐻 What your PR is doing?

    Add retry to requests using exponential backoff delay

    πŸ“¦ Package concerned

    • @bearer/node

    πŸ–₯ Screenshots or screen recording

    Before

    No retry

    After

    Client will retry on relevant network errors

    🐺 Links

    πŸ›  How to test it

    βœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    ignore-reminder 
    opened by RadekMolenda 0
Releases(release-test-v2.2.0)
Owner
Bearer.sh
Implement Privacy by Design processes in developers’ workflows.
Bearer.sh
Run HTTP over UDP with Node.js

nodejs-httpp - Run HTTP over UDP based transport and Bring Web in Peer or P2P styles main js modules: udt.js, httpp.js, udts.js and httpps.js, that's

AppNet.Link 142 Aug 2, 2022
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.

http-fake-backend Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes. It actually can serve

Micromata GmbH 279 Dec 11, 2022
A docker image to build a SQS queue listener. Written in TypeScript, made to use with docker.

sqs-request A docker image to build a SQS queue listener. Written in TypeScript, made to use with docker. SQS queue processor with node, ts-squiss, wh

Marcus Yoda 3 Jan 20, 2022
Hello! Welcome to Our own Live Code Editor 2!! This is supported tabs and full-screen editing, Console, tabs and more are coming. We uses this one in our all tutorials. Made by @E-Coders & @Genius398

Live Code Editor 2 Hello! this is our live code editor an another second release version of our main Resporibity. This have style as tabs and more fea

Educational Websites 5 Nov 18, 2021
All-in-one Holy Unblocker bundle

website-aio Who this repository is for This repository is for people looking for a convenient way to deploy Holy Unblocker. The frontend website repos

null 69 Dec 25, 2022
Isomorphic WHATWG Fetch API, for Node & Browserify

isomorphic-fetch Fetch for node and Browserify. Built on top of GitHub's WHATWG Fetch polyfill. Warnings This adds fetch as a global so that its API i

Matt Andrews 6.9k Jan 2, 2023
A light-weight module that brings the Fetch API to Node.js

A light-weight module that brings Fetch API to Node.js. Consider supporting us on our Open Collective: Motivation Features Difference from client-side

Node Fetch 8.1k Jan 4, 2023
Convenience wrapper for Got to interact with the GitHub API

gh-got Convenience wrapper for Got to interact with the GitHub API Unless you're already using Got, you should probably use GitHub's own @octokit/rest

Sindre Sorhus 175 Dec 25, 2022
An HTTP Web Server for Chrome (chrome.sockets API)

An HTTP Web Server for Chrome (chrome.sockets API)

Kyle Graehl 1.2k Dec 31, 2022
Get a full fake REST API with zero coding in less than 30 seconds (seriously)

JSON Server Get a full fake REST API with zero coding in less than 30 seconds (seriously) Created with <3 for front-end developers who need a quick ba

null 64.9k Jan 3, 2023
Prefect API Authentication/Authorization Proxy for on-premises deployments

Proxy Authorization Service for Prefect UI and Prefect CLI Prefect is a great platform for building data flows/pipelines. It supports hybrid execution

Softrams 20 Dec 10, 2022
Promise based HTTP client for the browser and node.js

axios Promise based HTTP client for the browser and node.js New axios docs website: click here Table of Contents Features Browser Support Installing E

axios 98k Dec 31, 2022
Ajax for Node.js and browsers (JS HTTP client)

superagent Small progressive client-side HTTP request library, and Node.js module with the same API, supporting many high-level HTTP client features T

Sloth 16.2k Jan 1, 2023
HTTP server mocking and expectations library for Node.js

Nock HTTP server mocking and expectations library for Node.js Nock can be used to test modules that perform HTTP requests in isolation. For instance,

Nock 11.9k Jan 3, 2023
🌐 Human-friendly and powerful HTTP request library for Node.js

Sindre's open source work is supported by the community. Special thanks to: Human-friendly and powerful HTTP request library for Node.js Moving from R

Sindre Sorhus 12.5k Jan 9, 2023
Download and extract files

download Download and extract files See download-cli for the command-line version. Install $ npm install

Kevin MΓ₯rtensson 1.2k Dec 21, 2022
Full-featured, middleware-oriented, programmatic HTTP and WebSocket proxy for node.js

rocky A multipurpose, full-featured, middleware-oriented and hackable HTTP/S and WebSocket proxy with powerful built-in features such as versatile rou

Tom 370 Nov 24, 2022
A fully-featured Node.js REST client built for ease-of-use and resilience

flashheart A fully-featured Node.js REST client built for ease-of-use and resilience flashheart is built on http-transport to provide everything you n

BBC 118 Jun 21, 2022
A collaborative Whiteboard powered by the [matrix] protocol and infrastucture.

TheBoard A collaborative Whiteboard powered by the [Matrix] protocol and infrastructure. Table of Content: Introduction DISCLAIMER How this project ca

Timo 391 Dec 23, 2022