CORE
v0.1.0 — Hyper core — Bun-first, AI-native API framework runtime.
Copies 22 files into src/hyper/core/ and updates hyper.lock.json.
DEPS
- registry: none
FILES
- core/adapters/bun.ts
- core/app.ts
- core/decorate.ts
- core/env.ts
- core/error.ts
- core/example.ts
- core/file.ts
- core/group.ts
- core/hash.ts
- core/hyper.ts
- core/index.ts
- core/infer.ts
- core/middleware.ts
- core/projection.ts
- core/request.ts
- core/resource.ts
- core/response.ts
- core/route.ts
- core/router.ts
- core/security.ts
- core/standard-schema.ts
- core/types.ts
README
@hyper/core
Hyper core — the only hard dependency across the Hyper ecosystem. Zero runtime dependencies. Bun-native.
Install
Components are installed as source into your repo, not pulled from npm:
bunx hyper add core
Wires the alias @hyper/core to src/hyper/core/ (configurable in hyper.config.json). See hyperjs.ai for the full registry.
Usage
import { Hyper, ok } from "@hyper/core"
export default new Hyper()
.get("/", () => ok({ hello: "world" }))
.listen(3000)
Compose sub-apps, plugins, middleware, or raw Route values through a single polymorphic .use():
import { Hyper } from "@hyper/core"
import users from "./routes/users.ts"
export default new Hyper()
.use(users) // honors sub-app's own prefix
.use("/v1", users) // or re-prefix explicitly
.listen(3000)
CLI tools (hyper openapi, hyper routes, hyper bench, hyper dev) set HYPER_SKIP_LISTEN=1 before importing, so the same file serves as both server entrypoint and introspection manifest.
Docs
See the main README and docs/ for guides, security defaults, and integration recipes.
License
MIT
MANIFEST
- /r/core.json — latest
- /r/core@0.1.0.json — immutable