Skip to content

merthanmerter/burt

Repository files navigation

bun-react-trpc-template

This template is designed to help you build fullstack apps powered by Bun, React, and tRPC, with a unique twist: you can compile the entire app into a single binary, making it ideal for self-contained deployments.

Ideal for:

  • Internal tools and dashboards
  • Intranet or local network services
  • Client-side deployments without external dependencies
  • Kiosk apps, embedded systems, or air-gapped environments

No need for Node.js, complex runtime environments, or even internet access — just run the binary.

Check out a real-world usage: Burt Stack

Features

  • Bun - The fastest JavaScript runtime
  • React - The most popular frontend library
  • tRPC - The most popular backend framework
  • Tanstack Router - The most popular router library
  • Tanstack Query - The most popular data fetching library
  • Tanstack Form - The most popular form library
  • Shadcn - The most popular UI library
  • Tailwind - The most popular CSS framework
  • Zod - The most popular validation library

Usage

To install dependencies:

make install

To start a development server:

make dev

To build for production:

make build

To start the production server:

make start

To compile to a standalone binary:

make compile
make run

Example deployment:

# copy the binary to the server
scp bin/linux/index user@your-server:/usr/local/bin/burt

# /etc/systemd/system/burt.service
[Unit]
Description=Burt Stack Service
After=network.target

[Service]
ExecStart=/usr/local/bin/burt
Restart=always
User=youruser
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target

# reload systemd to apply the new service
sudo systemctl daemon-reload
sudo systemctl enable --now burt
sudo systemctl status burt

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published