@open-harness/server
v1.0.0-alpha.3
Published
--- lastUpdated: "2026-01-11T10:45:35.208Z" lastCommit: "7c119005269c88d906afffaea1ab3b283a07056f" lastCommitDate: "2026-01-11T07:21:34Z" --- # @open-harness/server
Readme
lastUpdated: "2026-01-11T10:45:35.208Z" lastCommit: "7c119005269c88d906afffaea1ab3b283a07056f" lastCommitDate: "2026-01-11T07:21:34Z"
@open-harness/server
Server utilities for Open Harness.
Status: Minimal Package
Most v0.2.0 server code was deleted as part of the v0.3.0 migration. This package now provides only essential middleware utilities.
Current Exports
import { createHealthRoute, corsMiddleware, errorHandler } from "@open-harness/server";createHealthRoute()
Creates a Hono health check route:
import { Hono } from "hono";
import { createHealthRoute } from "@open-harness/server";
const app = new Hono();
app.route("/health", createHealthRoute());
// GET /health returns { status: "ok" }corsMiddleware
CORS middleware for Hono:
import { corsMiddleware } from "@open-harness/server";
app.use("*", corsMiddleware);errorHandler
Error handling middleware:
import { errorHandler } from "@open-harness/server";
app.onError(errorHandler);Building v0.3.0 Servers
For v0.3.0, build custom Hono routes that consume Harness signals:
import { Hono } from "hono";
import { ClaudeHarness, createSignal } from "@open-harness/core";
const app = new Hono();
app.post("/chat", async (c) => {
const harness = new ClaudeHarness();
const input = await c.req.json();
const signals: Signal[] = [];
for await (const signal of harness.run(input, { signal: c.req.raw.signal })) {
signals.push(signal);
}
return c.json({ signals });
});Deleted Exports (v0.2.0)
The following were removed in v0.3.0:
createChatRoute,createCommandsRoute,createEventsRoute- Old API routescreateLocalAIKitTransport,WebSocketTransport- Old transportscreateWorkflow,runFlow,registerStandardNodes- Old workflow utilities- Claude agent/node types - Use
ClaudeHarnessfrom @open-harness/core
See Also
- @open-harness/core - Harnesses and signals
- Hono documentation - Web framework
