An AWS Lambda alternative with a URL for every function
If you're looking for an AWS Lambda alternative for webhooks, small APIs and scheduled jobs, Hive Functions runs your code without a server to manage. Write a handler, deploy it from the browser or the CLI, and it answers at its own HTTPS address. You pay for requests and the compute your code uses, never for idle time.
What you get with Hive Functions
Its own URL in seconds
Every function gets an HTTPS address. Deploy from the browser or the CLI and it is live.
Fast to answer
A warm function answers in well under a millisecond on our servers, so most of the time a request takes is the network.
Five languages
TypeScript, JavaScript and Python in the browser editor; Go and Rust from your project folder.
Schedules
Run a function every few minutes or on a cron schedule, in UTC. No server to keep awake.
Data that persists
Store small values between requests with the built-in key-value store. It survives every deploy.
Call any API
Make outbound HTTPS calls to payment providers, AI models and your own services, with an optional allowlist.
Secrets
Keep API keys out of your code. Secrets are encrypted and only your function can read them.
Logs and rollback
See every request and log line live, and roll back to any of your last ten versions in one click.
Move a function over
- 1 Create the functionIn the console, open Hive Functions → New function, give it a name, pick its language and the region closest to your users. It gets its URL, https://<name>.fn.dockhive.app, straight away.
- 2 Port the handlerA Hive Functions handler receives the request (method, path, query, headers and body) and returns text, JSON or a full response with status, headers and body. Move your logic into hive.define('handler', ...) from the built-in hivekit SDK.
- 3 Move secrets and settingsAdd API keys as secrets and other values as environment variables in Settings. Secrets are encrypted and only your function can read them.
- 4 Recreate schedulesAdd cron or @every schedules in Settings; they run in the function's region, in UTC.
- 5 Deploy and switch callersDeploy from the editor or with dockhive functions deploy, test it, then point your webhooks and clients at the new URL. The last 10 versions are kept for one-click rollback.
// handler.js
const { hive } = require('hivekit')
hive.define('handler', (req) => ({
status: 200,
body: 'Hello from ' + req.region + '!',
}))
// deploy it, get a URL
$ dockhive functions deploy hello
Version 1 is live: https://hello-k3x9.fn.dockhive.appGood to know
- Handlers use the built-in hivekit SDK, so code written for another platform's handler signature needs a small change.
- JavaScript functions use the built-in hivekit package; packages from your own node_modules are not used. TypeScript is compiled ahead of time with a strictly typed subset.
- A run can take up to 30 seconds; request bodies can be up to 6 MB.
Questions about switching to Hive Functions
Which languages can I use?
TypeScript, JavaScript, Python, Go and Rust. TypeScript, JavaScript and Python can be written and deployed in the browser editor; every language deploys from your project folder with the dockhive CLI. You can also upload a prebuilt Hive Bytecode (.hbc) file.
Can I reuse my existing handler code?
Your logic, yes. The handler shape differs: a Hive Functions handler is registered with hive.define('handler', ...) from the built-in hivekit SDK, receives the request as JSON (method, path, query, headers, body) and returns a string, JSON or {status, headers, body}.
How is Hive Functions priced?
Every plan includes a monthly allowance; the Free Tier has 5 functions, 100,000 requests and 100,000 compute units a month in each region. On paid plans, usage beyond the allowance is $0.10 per million requests and $5 per million compute units. A function waiting for traffic costs nothing.
Can a function run on a schedule?
Yes. Add up to 10 schedules per function, as a cron expression or every few minutes, in UTC. Each scheduled run counts as a request.
What are the limits?
A run can take up to 30 seconds (you can set a lower timeout), request bodies can be up to 6 MB, and each function accepts up to 100 requests a second with short bursts up to 200. Functions can make up to 50 outbound HTTPS calls per run.
Where do functions run?
In the region you pick when you create the function: United States (Los Angeles), Germany (Frankfurt), Portugal (Lisbon) or Nigeria (Lagos or Abuja). Its URL works from anywhere.
Explore DockHive
App Marketplace
Regions
Try DockHive on the Free Tier
Start with Hive Functions on the Free Tier. Upgrade to the Developer Plan ($3/month) or Pro Plan ($15/month) when you need more.