A Vercel Functions alternative for APIs, webhooks and cron jobs
If you're looking for a Vercel Functions alternative for your API routes, webhooks and cron jobs, Hive Functions runs each one at its own HTTPS address, separate from your frontend. Write it in TypeScript, JavaScript, Python, Go or Rust, deploy it in seconds and pay only for requests and the compute they use.
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 an API route or cron job
- 1 Create a function per routeIn the console, open Hive Functions → New function and pick a language and region. Each function answers any method and any path at https://<name>.fn.dockhive.app.
- 2 Port the handlerMove the route's logic into hive.define('handler', ...). It receives the method, path, query, headers and body, and returns text, JSON or a full response.
- 3 Move env vars and secretsAdd API keys as encrypted secrets and the rest as environment variables in the function's Settings.
- 4 Turn cron jobs into schedulesAdd a cron expression or an @every schedule to the function; scheduled runs call its scheduled handler, in UTC.
- 5 Call the new URLPoint your frontend, webhooks and clients at the function URL. Keep your frontend where it is, or deploy it on DockHive with Drone.
// 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
- Each function is deployed on its own, not from your frontend repository; your frontend calls it by URL.
- JavaScript functions use the built-in hivekit package; packages from your own node_modules are not used.
Deploy guides for your stack
Questions about switching to Hive Functions
Do I have to move my frontend too?
No. Your frontend calls a Hive Function by its HTTPS URL from wherever it is hosted. If you want to move the frontend as well, Drone deploys Next.js, SvelteKit, Nuxt and React apps with zero config.
Can functions keep data between requests?
Yes. Each function has a built-in key-value store that survives new versions. For larger data, call a managed database or Hive Buckets over HTTPS.
How do cron jobs work?
Add up to 10 schedules per function as a cron expression or @every 5m, in UTC. Scheduled runs call the function's scheduled handler and count as requests.
How is it 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.
Which languages are supported?
TypeScript, JavaScript, Python, Go and Rust. TypeScript is compiled ahead of time with a strictly typed subset, so handlers take and return strings.
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.