Bunkey

A starter project using Unkey to authenticate requests to a Bun HTTP server.


Overview

Unkey is an open source API authentication and authorization platform for scaling user-facing APIs. Create, verify, and manage low-latency API keys in seconds.

This starter allows you to easily try Unkey to authenticate a Bun HTTP server.

Requirements

  • A Unkey account to generate an API Key.

Try it out

Once the starter is deployed, you can perform a request to the Bun HTTP server deployed on Koyeb with the Authorization: Bearer <KEY> header.

curl https://<YOUR_APP_NAME>-<YOUR_KOYEB_ORG>.koyeb.app -H "Authorization: Bearer <UNKEY_API_KEY>"

Be sure to replace <YOUR_APP_NAME>, <YOUR_KOYEB_ORG>, and <UNKEY_API_KEY> with your own information.

The following request should return { "valid": true } and potentially more information about the key, depending on what you set up in the Unkey dashboard.

Related One-Click Apps in this category

  • Astro

    Deploy a simple application written using Astro, a high-performance, content-oriented framework.

  • Beego

    Deploy a basic application written with Beego, a high-performance web framework for Go.

  • Bun

    A simple HTTP server using Bun, the all-in-one JavaScript runtime & toolkit designed for speed

The fastest way to deploy applications globally.