Bun-native TypeScript framework · MIT

The Fastest Way to Build
with Bun

A batteries-included TypeScript framework for building scalable APIs, Web3 platforms, and backend services with confidence.

$ bunx @bejibun/cli your-project
terminal
$ bunx @bejibun/cli your-project
✔ Pulling starter kit.
✔ Installing dependencies.
✔ Setup environment.
ℹ Update 1 file: .env
Success! Project initialization completed.
 
$ bun dev
🚀 Server running at http://localhost:3000

01

Built for Web3 builders

x402 payments shipped, wallet/RPC/contract SDK on the way. Designed for dApp backends from day one.

02

Laravel developer experience

Controllers, models, migrations, validators, and an ace CLI. Every pattern you already know — in TypeScript.

03

Fast by default

Bun runtime under everything: <10ms cold starts, 5x faster builds, built for high-throughput APIs.

01 — Web3 · Blockchain Native

Built for the on-chain economy.

Blockchain isn't a plugin here. x402 payments shipped, a full wallet/RPC/contract SDK is on the way — your dApp backend, first-class from line one.

@bejibun/web3 — Wallet
import {WalletService} from "@bejibun/web3";

const wallet = new WalletService();

// Connect wallet
const address = await wallet.connect({
    provider: "metamask"
});

// Sign message
const signature = await wallet.sign(
    "Welcome to Bejibun!"
);
$BJBN · Solana CACQhbNnCGKfDaKXt8uE61i5DrBYJV7NPsCDD9vQgypump

02 — Developer Experience

Build features, not boilerplate.

Routing & Middleware

Groups, prefixes, guards, and resource routes for API-heavy dApps.

Controllers & Validation

Parse, validate, and respond with VineJS-powered validators, request helpers, and database-aware rules.

Eloquent-style ORM

Objection.js + Knex with soft deletes, query builders, migrations, seeders, and multi-database support.

Real-time & Background Jobs

WebSockets, queues, delayed jobs, retries, and cron-style task scheduling built into the framework.

CLI & Scaffolding

Generate controllers, models, validators, migrations, seeders, commands, and more with "bun ace".

Storage & Utilities

Multi-disk storage, caching, logging, CORS, maintenance mode, and production-ready helpers.

API Documentation

Swagger/OpenAPI generation with decorators and automatic endpoint discovery.

Bun-Native Performance

Built from the ground up for Bun with fast startup times, minimal overhead, and TypeScript-first development.

Grouping, prefixes, middleware chaining, and Laravel-style resource routes.

routes/api/test.ts
import Router from "@bejibun/core/facades/Router";
import YourController from "@/app/controllers/YourController";
import TestMiddleware from "@/app/middlewares/TestMiddleware";

export default Router.prefix("test")
    .middleware(new TestMiddleware())
    .group([
        Router.get("get", "TestController@get"),
        Router.get("detail/:id", "TestController@detail"),
        Router.post("add", "TestController@add"),
        Router.post("edit", "TestController@edit"),
        Router.delete("delete/:id", "TestController@delete"),
        Router.get("restore/:id", "TestController@restore"),

        Router.resource("path", YourController),
        Router.resource("path", YourController, {
            only: ["index", "store"] // "index" | "store" | "show" | "update" | "destroy"
        }),
        Router.resource("path", YourController, {
            except: ["index", "store"] // "index" | "store" | "show" | "update" | "destroy"
        })
    ]);

03 — Performance

Fast where it counts.

Bejibun runs on Bun — ideal for DeFi protocols, NFT marketplaces, and any API where latency is a feature.

<0ms

Cold start

Bun's native runtime and bundler — no JIT warm-up tax.

0x

Faster builds

Compared to traditional Node.js runtimes.

0%

TypeScript

Native TS execution. No transpile step, no config.

High

Throughput

Concurrent requests with minimal overhead for real-time Web3.

Quickstart

Zero to API in four steps.

Read the full documentation →
01

Install Bun

Bejibun runs on the Bun runtime.

bash
curl -fsSL https://bun.sh/install | bash
02

Create a project

Scaffold a new Bejibun app with the CLI.

bash
bunx @bejibun/cli your-project
cd your-project
03

Run the dev server

Cold starts in under 10ms.

bash
bun dev
04

Build & Ship

Production mode, one command away.

bash
bun start

Roadmap

Where Bejibun is heading.

Q4 2025

Shipped

Framework foundation & core infrastructure.

Installation CLICore frameworkCommandRouterRate limiter@bejibun/cors@bejibun/redis@bejibun/cache@bejibun/x402Storage: LocalCoinGecko listing

Q1 2026

Shipped

Platform growth & essential services.

Website Phase 1Storage: S3Queue: Job dispatchQueue: Worker

Q2 2026

In progress

Scalability, scheduling & storage expansion.

Scheduler / cronRoute list (Swagger)WebSocketUnit testWebsite Phase 2HTTP clientDatabase transactionCache: MemcachedStorage: Disk managementStorage: ArchiveStorage: Cross disks

Q3 2026

Planned

Testing, real-time features & database expansion.

MySQL supportMongoDB supportModel relationsCoinMarketCap listing

Q4 2026

Planned

Performance optimization & ecosystem maturity.

Mail serviceOwn ORM (Bun SQL)AuthenticationSEOToken utilityCEX listing

Ready to build at
Bun speed?

Start your next backend project with a framework designed for performance, productivity, and scale.

$ bunx @bejibun/cli your-project