Skip to content

mario-huang/durian.js

Repository files navigation

Durian.js

English · 日本語 · 中文

What is Durian.js?

I believe that NestJS is the most powerful and efficient API development framework on Node.js.

Durian.js builds on the strengths of NestJS, running on Bun, and is designed with speed in mind — both in development and runtime performance.

Performance Benchmarks

  • Development Speed: durian.js can be up to 16 times faster than NestJS in development.
build start
image image
test test:cov
image image
  • Runtime Performance and Latency: durian.js achieves up to 4 times the throughput of NestJS, handling over 60,000 requests per second compared to NestJS’s 15,000, while also reducing average response times from 0.0033 seconds to 0.0008 seconds.
NestJS durian.js
image image

Getting Started

To create a new Durian.js project, run:

bun create mario-huang/durian.js my-project

This will create a new directory called my-project with the latest Durian.js template. You can then continue using NestJS as usual with Bun's speed advantages.

Migration Guide

This is the best part - no source code modifications needed! To migrate an existing NestJS project:

  1. Backup your current package.json and tsconfig.json
  2. Replace them with the versions from Durian.js
  3. Run bun install to update dependencies

You'll maintain full NestJS compatibility while gaining Bun's performance benefits.

About

Run NestJS on Bun Blazingly Fast

Resources

License

Stars

Watchers

Forks

Packages

No packages published