GithubHelp home page GithubHelp logo

isabella232 / proxy-8 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microlinkhq/server-proxy

0.0 0.0 0.0 104 KB

Interact with Microlink API without exposing your credentials

Home Page: https://proxy.microlink.io

License: MIT License

JavaScript 100.00%

proxy-8's Introduction

microlink

Deploy with ZEIT Now Deploy to Heroku

Interact with Microlink API without exposing your credentials.

NOTE: Edge Function version is also available.

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[]

The list of allowed domains authorized to consume your Microlink API credentials.

Note domains should be provided in the URL.origin format (e.g., 'https://example.com').

API_KEY

Required
Type: string

Your Microlink API key used to authenticate your requests.

API_ENDPOINT

Type: string
Default: https://pro.microlink.io

The Microlink API endpoint used for sending the 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

proxy-8's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar kikobeats avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.