@hopak/core
v0.5.0
Published
Hopak.js framework core — models, routing, database, validation, auto-CRUD.
Maintainers
Readme
@hopak/core
The runtime of Hopak.js — the Bun backend framework.
This package is what your application imports. It owns the HTTP server, file-based router, typed database client, model system, validation pipeline, CRUD helpers, and error hierarchy. Everything else in the Hopak ecosystem (cli, auth, testing) sits on top of it.
Hopak is deliberately file-first: endpoints, models, and migrations live as regular TypeScript on disk. The runtime executes what you write — no decorator reflection, no DI container, no code synthesized from flags.
Install
bun add @hopak/coreRequires Bun ≥ 1.3. For a new project, start with the @hopak/cli — it scaffolds the project layout and installs the core for you.
Documentation
Full guides, API reference, and recipes live on the site:
- Quick start — from empty folder to a running REST endpoint
- Models, Routes, CRUD — the primitives
- Database, Migrations — SQLite · Postgres · MySQL
- Validation, Errors, Middleware
- Recipes — 25 worked examples
Author
Volodymyr Press · [email protected]
License
MIT. See LICENSE.
