Skip to content

roastery-cms/barista

Repository files navigation

@roastery/barista

Elysia HTTP server factory for the Roastery CMS ecosystem.

Checked with Biome

Overview

barista exposes a Barista factory function that wraps Elysia, serving as the HTTP server entry point for Roastery CMS applications.

Installation

bun add @roastery/barista

Peer dependencies (install alongside):

bun add elysia

Usage

import { 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.


Technologies

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

Development

# 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 setup

License

MIT

About

Elysia HTTP server factory for the Roastery CMS ecosystem.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors