Elysia HTTP server factory for the Roastery CMS ecosystem.
barista exposes a Barista factory function that wraps Elysia, serving as the HTTP server entry point for Roastery CMS applications.
bun add @roastery/baristaPeer dependencies (install alongside):
bun add elysiaimport { Barista } from '@roastery/barista';
const app = Barista({ name: 'my-app' })
.get('/', () => 'Hello, world!')
.listen(3000);Barista accepts the same configuration as new Elysia(config) and returns an Elysia instance.
| Tool | Purpose |
|---|---|
| Elysia | HTTP framework for Bun |
| tsup | Bundling to ESM + CJS with .d.ts generation |
| Bun | Runtime, test runner, and package manager |
| Knip | Unused exports and dependency detection |
| Husky + commitlint | Git hooks and conventional commit enforcement |
# Run tests
bun run test:unit
# Run tests with coverage
bun run test:coverage
# Build for distribution
bun run build
# Check for unused exports and dependencies
bun run knip
# Full setup (build + bun link)
bun run setupMIT