Getting Started

Install the packages with your preferred package manager, align engine versions with the monorepo, and boot a minimal HTTP listener with orveth or @orveth/server.

Requirements

RequirementDetails
Node.js>=20.10.0 (see root package.json engines).
TypeScriptVersion 5.x with strict mode enabled is the expected consumer posture.
pnpmpnpm@9.15.4 is pinned via packageManager for reproducible workspace installs.

Installation

Published artifacts use the @orveth/* scope. Add only the packages your service needs, or install the unscoped orveth meta-package to depend on every published module at once (larger install graph).

pnpm

terminal
pnpm add @orveth/server

npm

terminal
npm install @orveth/server

Meta-package (all modules)

terminal
pnpm add orveth
# or: npm install orveth

Import from orveth the same symbols you would from @orveth/server, @orveth/http, and the other scoped entrypoints.

Yarn (Berry or Classic)

terminal
yarn add @orveth/server

Minimal HTTP service

Route handlers receive a RequestContext. Return ctx.ok() or ctx.json() for concise handlers, or await when you prefer explicit async flow. listen resolves with Node's http.Server once the socket is bound.

src/main.ts
import { Orveth } from "orveth";

const app = new Orveth();

app.get("/health", (ctx) => ctx.ok({ status: "ok" }));

const server = await app.listen(Number(process.env.PORT ?? 3000));
// Options form: await app.listen({ port: 3000, hostname: "127.0.0.1" });
void server;

Working inside the monorepo

  1. Run pnpm install at the repository root.
  2. Build libraries with pnpm build before packaging or linking downstream consumers.
  3. Run pnpm test and pnpm lint prior to submitting changes.

Next steps

Editor and tooling tips

  • Enable TypeScript project references or solution-style navigation for faster cross-package jumps.
  • Use the published exports map for auto-imports; avoid deep relative paths into packages/*/src.
  • Consult package-level README files for focused notes not duplicated in this documentation site.