@verdict-ai/api
v0.4.0
Published
Verdict REST API (Hono). Runs on Node and Cloudflare Workers.
Maintainers
Readme
@verdict-ai/api
Hono REST API for Node and Cloudflare Workers.
npm install @verdict-ai/api @verdict-ai/coreimport { Engine, MemoryStore } from "@verdict-ai/core";
import { createApp } from "@verdict-ai/api";
const engine = new Engine({ store: new MemoryStore() });
const app = createApp({ engine });
const response = await app.request("/v1/health");
console.log(response.status);
console.log(await response.json());
// Export app.fetch for a compatible HTTP runtime.
// Configure authentication before exposing a public service.
export default app;Requires Node 22 or newer. Documentation. MIT licensed.
