Bun-first libraries for building fast, modern applications
Multi-protocol server framework
HTTP, WebSocket, gRPC, TCP, UDP — one unified API for all protocols.
bun add @verb-js/verbFunctional database toolkit
Ecto-inspired queries, changesets, and schema management for Bun.sql.
bun add @verb-js/hullAuthentication library
Passwords, JWT, OAuth, and API tokens with Verb middleware integration.
bun add @verb-js/allowSelf-hosted PaaS
Deploy apps, manage databases, and storage on your own infrastructure.
bun add -g @verb-js/hoistS3-compatible storage
Lightweight object storage server. Drop-in replacement for S3, MinIO.
bun add @verb-js/shelvesimport { server } from "verb"
import { connect, from, whereEq, one } from "hull"
import { createAllow, getMiddleware } from "allow"
const repo = connect({ url: process.env.DATABASE_URL })
const allow = createAllow({ secret: process.env.SECRET, strategies: [{ name: "jwt", type: "jwt", config: {} }] })
const { requireAuth } = getMiddleware(allow)
const app = server.http()
app.get("/api/users/:id", requireAuth, async (req, res) => {
const user = await one(repo, whereEq(from(User), "id", req.params.id))
res.json(user)
})
app.listen(3000)