Intro
Welcome to Stric documentation
Last updated
Welcome to Stric documentation
Last updated
Stric is a Bun-first framework for building high-performance, scalable web applications.
Perfomance: Internally use Radx
, an improved version of @medley/router
with optimizations only for Bun. Stric also composes your final fetch handler to reduce unused code.
Scalability: Stric ensures high performance even under heavy workloads.
Minimal: The basic components like @stricjs/router
and @stricjs/utils
is under 50kB and use no external dependencies.
Customizable: Stric comes with a plugin system, dependencies injection and more optional optimizations for handling requests.
Stric is one of the fastest JS web frameworks. See the full benchmark here.
You need to have Bun installed to run Stric.
For Windows users, you can use WSL or WSL2 to install Bun.
Create a new project and install the router component.
Let's write a simple hello world server.
Start the server using bun index.ts
, open your browser and go to localhost:3000.
You should see the server responds with Hi
.
Just like that, you have created your first app with Stric .