github VoltAgent/voltagent @voltagent/server-hono@1.0.0

latest releases: @voltagent/server-core@1.0.3, @voltagent/server-hono@1.0.3, @voltagent/core@1.1.1...
18 hours ago

Major Changes

  • a2b492e Thanks @omeraplak! - # Server Hono 1.x — pluggable HTTP server

    Core no longer embeds an HTTP server. Use the Hono provider.

    Full migration guide: Migration Guide

    Basic setup

    import { VoltAgent } from "@voltagent/core";
    import { honoServer } from "@voltagent/server-hono";
    
    new VoltAgent({
      agents: { agent },
      server: honoServer({ port: 3141, enableSwaggerUI: true }),
    });

    Custom routes and auth

    import { honoServer, jwtAuth } from "@voltagent/server-hono";
    
    new VoltAgent({
      agents: { agent },
      server: honoServer({
        configureApp: (app) => {
          app.get("/api/health", (c) => c.json({ status: "ok" }));
        },
        auth: jwtAuth({
          secret: process.env.JWT_SECRET!,
          publicRoutes: ["/health", "/metrics"],
        }),
      }),
    });

Patch Changes

  • Updated dependencies [a2b492e, a2b492e]:
    • @voltagent/core@1.0.0
    • @voltagent/server-core@1.0.0

Don't miss a new voltagent release

NewReleases is sending notifications on new releases.