{"id":19926614,"url":"https://github.com/microlinkhq/proxy","last_synced_at":"2025-05-03T08:32:27.008Z","repository":{"id":37848140,"uuid":"425907793","full_name":"microlinkhq/proxy","owner":"microlinkhq","description":"Interact with Microlink API using an Edge Function.","archived":false,"fork":false,"pushed_at":"2024-03-19T08:39:48.000Z","size":49,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T13:43:41.005Z","etag":null,"topics":["edge","edge-function"],"latest_commit_sha":null,"homepage":"https://edge-proxy.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microlinkhq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-08T16:14:44.000Z","updated_at":"2024-04-29T08:44:51.000Z","dependencies_parsed_at":"2023-01-29T17:01:22.221Z","dependency_job_id":"a5a117c1-3b10-4370-80f3-e8a20c120da2","html_url":"https://github.com/microlinkhq/proxy","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlinkhq%2Fproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlinkhq%2Fproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlinkhq%2Fproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlinkhq%2Fproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microlinkhq","download_url":"https://codeload.github.com/microlinkhq/proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252162538,"owners_count":21704270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["edge","edge-function"],"created_at":"2024-11-12T22:29:57.123Z","updated_at":"2025-05-03T08:32:26.752Z","avatar_url":"https://github.com/microlinkhq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/microlinkhq/cdn/raw/master/dist/banner/proxy.png#gh-light-mode-only\" alt=\"microlink logo\"\u003e\n  \u003cimg src=\"https://github.com/microlinkhq/cdn/raw/master/dist/banner/proxy-dark.png#gh-dark-mode-only\" alt=\"microlink logo\"\u003e\n  \u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n\u003e Interact with Microlink API without exposing your credentials.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmicrolinkhq%2Fedge-proxy\u0026env=API_KEY,ORIGINS)\n\n## Motivation\n\nInteracting directly with [Microlink API](https://microlink.io/docs/api/getting-started/overview) from frontend side is one of the most common scenarios.\n\nHowever, it could be a risk security scenario if you are exposing your [`x-api-key`](https://microlink.io/docs/api/api-basics/authentication), being possible that anyone can steal it and consume your API quota.\n\nFor preventing that, this tiny microservice allows you interact with Microlink API without compromising your credentials.\n\n## Usage\n\nDeploy this service, setting up the necessaries environment variables.\n\nAfter that, every time you need to interact with Microlink API, just call the microservice URL instead.\n\nIf you are using [`mql`](https://github.com/microlinkhq/mql), setup it as `endpoint` parameter:\n\n```js\nconst mql = require('@microlink/mql')\n\nmql('https://microlink.io', {\n  endpoint: 'https://edge-proxy.microlink.io'\n})\n```\n\n## Environment Variables\n\n### API_KEY\n\n*Required*\u003c/br\u003e\nType: `string`\n\nYour Microlink API key used to [authenticate](https://microlink.io/docs/api/api-basics/authentication) your requests.\n\n### ORIGINS\n\nType: `string`|`string[]`\n\nThe list of allowed domains authorized to consume your Microlink API credentials.\n\nNote domains should be provided in the [URL.origin](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin) format (e.g., `'https://example.com'`).\n\n### API_ENDPOINT\n\nType: `string`\u003c/br\u003e\nDefault: `https://pro.microlink.io`\n\nThe Microlink API endpoint used for sending the requests.\n\n## License\n\n**edge-proxy** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/proxy/blob/master/LICENSE.md) License.\u003cbr\u003e\nAuthored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/microlinkhq/proxy/contributors).\n\n\u003e [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrolinkhq%2Fproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrolinkhq%2Fproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrolinkhq%2Fproxy/lists"}