Skip to content

mgilangjanuar/buntal

Repository files navigation

Early Development Stage

Buntal JS

Website  ·   Docs  ·   Sponsor ♥

Deploy

Ultra-lightweight type-safe modern full-stack web framework with TypeScript, React and Bun. Create HTTP servers and/or web apps without unnecessary bloatware.

bun create buntal@latest my-app

Warning

NEVER use Buntal JS in production! Unless you are a pufferfish 🐡

Features

  • Blazing Fast: Built on Bun, the fastest JavaScript runtime.
  • HTTP Server: Create type-safe HTTP servers with Bun's native HTTP server.
  • File-based Routing: Define routes using file structure, similar to Next.js.
  • SSR: Server-side rendering for dynamic content.
  • SPA: Single Page Application support with Bun's bundler.
  • More to come!

View more examples here.

Sponsors ❤️

Help us maintain this project by becoming a sponsor!

User avatar: Frianto Moerdowo

Benchmark Test

It runs benchmark/test.sh script, which is a simple bash script to simulate multiple requests to various services and measure their performance.

╔════════════════════════════════════════════════════════════════════════════╗
║                         COMPREHENSIVE RECAP                                ║
║                        (3 Runs Summary)                                    ║
╠════════════════════════════════════════════════════════════════════════════╣
║ Machine: Darwin arm64 | Apple M1 Pro | 16.0 GB                             ║
║ Date: 2025-06-02 20:50:36 WIB                                              ║
║ Requests per service per run: 100                                          ║
║ Number of runs: 3                                                          ║
╚════════════════════════════════════════════════════════════════════════════╝

╔═══════════════╦════════════════════════════════╦═══════════════════════════════════════╗
║   Service     ║      Avg Latency (sec)         ║           RPS (req/sec)               ║
║               ║   Avg   │  Min   │   Max       ║    Avg    │   Min    │     Max        ║
╠═══════════════╬═════════╪════════╪═════════════╬═══════════╪══════════╪════════════════╣
║ py-fastapi    ║  0.0012 │ 0.0011 │  0.0013     ║    835.90 │   796.76 │     877.53     ║
║ node-express  ║  0.0007 │ 0.0007 │  0.0007     ║   1376.42 │  1334.94 │    1418.16     ║
║ go-gin        ║  0.0005 │ 0.0005 │  0.0005     ║   1987.36 │  1865.11 │    2124.18     ║
║ elysia        ║  0.0005 │ 0.0004 │  0.0005     ║   2096.58 │  1985.27 │    2224.20     ║
║ buntal        ║  0.0005 │ 0.0005 │  0.0005     ║   2099.56 │  1993.30 │    2199.35     ║
╚═══════════════╩═════════╪════════╪═════════════╩═══════════╪══════════╪════════════════╝

╔════════════════════════════════════════════════════════════════════════════╗
║                         RANKING (by Average RPS)                           ║
╚════════════════════════════════════════════════════════════════════════════╝

1. buntal          - 2099.56 RPS (average)
2. elysia          - 2096.58 RPS (average)
3. go-gin          - 1987.36 RPS (average)
4. node-express    - 1376.42 RPS (average)
5. py-fastapi      - 835.90 RPS (average)

╔════════════════════════════════════════════════════════════════════════════╗
║                          BENCHMARK COMPLETED                               ║
╚════════════════════════════════════════════════════════════════════════════╝

Note. The result may vary depending on your machine and the version of each service. But, the top 3 services are consistent across multiple runs.

About

Super-lightweight web framework built on Bun

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors 5

Languages