Skip to content

Verb

Multi-Protocol Server Framework

Build HTTP, HTTP/2, WebSocket, gRPC, UDP, and TCP servers with the same intuitive API

ts
import { createServer, ServerProtocol } from 'verb';

const server = createServer(ServerProtocol.HTTP);

server.get('/', (req, res) => {
  res.json({ message: 'Hello World!' });
});

server.listen(3000);
console.log('Server running on http://localhost:3000');

Verb

Multi-Protocol Server Framework

Build HTTP, HTTP/2, WebSocket, gRPC, UDP, and TCP servers with the same intuitive API

Built for Bun

Native Bun APIs for maximum performance and modern JavaScript runtime features

🔄

Multi-Protocol Support

HTTP, HTTPS, HTTP/2, WebSocket, gRPC, UDP, TCP - all with the same unified API

🛠️

Runtime Protocol Switching

Switch between protocols dynamically with the Protocol Gateway pattern

📦

TypeScript First

Full type safety out of the box with comprehensive TypeScript definitions

🔐

Secure by Default

Built-in TLS/SSL support for HTTPS, WSS, HTTP/2 Secure, and encrypted TCP/UDP

🚀

Developer Experience

Intuitive API design with middleware support and comprehensive error handling

Built for Bun

Native Bun APIs for maximum performance and modern JavaScript runtime features

🔄

Multi-Protocol Support

HTTP, HTTPS, HTTP/2, WebSocket, gRPC, UDP, TCP - all with the same unified API

🛠️

Runtime Protocol Switching

Switch between protocols dynamically with the Protocol Gateway pattern

📦

TypeScript First

Full type safety out of the box with comprehensive TypeScript definitions

🔐

Secure by Default

Built-in TLS/SSL support for HTTPS, WSS, HTTP/2 Secure, and encrypted TCP/UDP

🚀

Developer Experience

Intuitive API design with middleware support and comprehensive error handling

Proven Performance

Benchmarked against leading frameworks with real-world scenarios

0.48ms
Average Latency
Sub-millisecond response times with zero errors under load
3-6%
Faster than Fastify
Consistently outperforms other Bun frameworks in benchmarks
21-24%
Faster than Express
Significant performance advantage over traditional Node.js frameworks
100%
Type Safety
Complete TypeScript coverage with zero any types

Results from comprehensive benchmarks on Bun 1.0+ with 10,000 requests. View detailed benchmarks →

Quick Start

Get a fullstack Verb application running in 30 seconds:

Create a new project
bunx create-verb my-app
Start developing
cd my-app
bun run dev

Visit http://localhost:3001 to see your app! 🚀

What You Get

  • ⚛️React Frontend with TypeScript and hot reloading
  • 🔥REST API with CRUD examples (users, products)
  • 🛠️Interactive API Explorer at /api-demo
  • Verb's withRoutes pattern using Bun's native routing
  • 📦Zero configuration - everything works out of the box
💡 Tip

Verb is built exclusively for Bun runtime. The create-verb tool downloads the latest boilerplate from verbjs/boilerplate and sets up everything automatically with Bun.

Released under the MIT License.