
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
@neeter/server
Advanced tools
A Hono server toolkit that puts a browser UI on the Claude Agent SDK. Manages multi-turn sessions, translates SDK messages into named SSE events, and handles tool-approval permissions — so your React client gets a clean event stream out of the box.
Part of the neeter toolkit.
pnpm add @neeter/server
Peer dependencies:
{
"@anthropic-ai/claude-agent-sdk": ">=0.2.0",
"hono": ">=4.0.0"
}
import { Hono } from "hono";
import { serve } from "@hono/node-server";
import {
createAgentRouter,
SessionManager,
MessageTranslator,
} from "@neeter/server";
const sessions = new SessionManager(() => ({
context: {},
model: "claude-sonnet-4-5-20250929",
systemPrompt: "You are a helpful assistant.",
maxTurns: 50,
}));
const translator = new MessageTranslator();
const app = new Hono();
app.route("/", createAgentRouter({ sessions, translator }));
serve({ fetch: app.fetch, port: 3000 });
This gives you eight endpoints:
| Method | Path | Description |
|---|---|---|
POST | /api/sessions | Create a session |
POST | /api/sessions/resume | Resume or fork a session by SDK session ID |
GET | /api/sessions/history | List previous sessions |
GET | /api/sessions/replay/:sdkSessionId | Load persisted events for UI replay |
POST | /api/sessions/:id/messages | Send a message |
GET | /api/sessions/:id/events | SSE event stream |
POST | /api/sessions/:id/permissions | Respond to a permission request |
POST | /api/sessions/:id/abort | Abort the current turn |
SessionManager + PushChannel let users send messages at any time, even while the agent is running.MessageTranslator reshapes the SDK's flat message stream into text_delta, tool_start, tool_call, tool_result, and more.onToolResult lets you inspect what the agent did and emit structured custom events.bypassPermissions, default, acceptEdits, or plan — with browser-side approval via PermissionGate.thinking: { type: "enabled", budgetTokens: N } to stream chain-of-thought reasoning.SessionManager.resume(). Opt into persistence with createJsonSessionStore for history and event replay that survive server restarts.createSandboxHook restricts file operations to a directory.| Example | Description |
|---|---|
| basic-chat | Minimal server + client setup |
| live-preview | Per-session sandboxes, custom events, abort |
See the neeter README for full API reference, session context examples, and permission configuration.
MIT
FAQs
Hono server toolkit for building chat UIs on top of the Claude Agent SDK
The npm package @neeter/server receives a total of 35 weekly downloads. As such, @neeter/server popularity was classified as not popular.
We found that @neeter/server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.