HYPERJS.AI

CORE

v0.1.0Hyper core — Bun-first, AI-native API framework runtime.

$ hyper add core

Copies 22 files into src/hyper/core/ and updates hyper.lock.json.

DEPS

FILES

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