Skip to content
Interact with Microlink API without exposing your credentials
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmignore
.npmrc
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
now.json
package.json

README.md

microlink

Deploy to Now

Interact with Microlink API without exposing your creedentials.

Motivation

Interacting directly with Microlink API from frontend side is one of the most common scenarios.

However, it could be a risk security scenario if you are exposing your x-api-key, being possible that anyone can steal it and consume your API quota.

For preventing that, this tiny microservice allows you interact with Microlink API without compromising your credentials.

Usage

Deploy this microservice, setting up the necessaries environment variables.

After that, every time you need to interact with Microlink API, just call the microservice URL instead.

If you are using mql, setup it as endpoint parameter:

const mql = require('@microlink/mql')

mql('https://microlink.io', {
  endpoint: 'https://proxy.now.sh'
})

Environment Variables

DOMAINS

Required
Type: string|string[]

A whitelist of trusted domains.

API_KEY

Required
Type: string

Your Microlink API key used for authenticate your requests.

License

microlink © Microlink, Released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.

microlink.io · GitHub @MicrolinkHQ · Twitter @microlinkhq

You can’t perform that action at this time.