Bun, Elysia and Biome!
Highly abstracted API development template.
- Bun for native TypeScript support and speed.
- Elysia is designed for humans and feels mnemonic.
- Biome provides both formatting and linting in one unified package.
Sensible defaults are prioritized.
# Develope
bun dev
# Release
bun build-bundle
# Start (post-release)
bun start
# Compile (bundles the Bun runtime DLL along with the code in an executable)
bun build-binary
# Typecheck
bun typecheck
# Format
bun format
# Lint
bun lintThe format command will format almost everything in the project, but Biome is set so it will ignore
anything that's in .gitignore and any file larger than 2MB which is double the default!
It will also organize your imports, if you don't like this, you can easily change this by modifying
biome.json.
Linting is using the recommended settings but is strict on unused variables and imports!
Install Bun then just:
git clone https://github.com/abchll/beb
cd beb
bun install && bun dev
Note
You could modify biome.json by adding "formatter.useEditorConfig": true to
use an .editorconfig for formatting rules if you are into that.
I heard Zod is cool!