Skip to content
PluginStats

@intentface/latch-server weekly downloads statistics

By intentface (10 listings) · npm · AI SDKs

The mountable Latch HTTP surface — one framework-agnostic Web handler (chat, approvals, lists, MCP connection OAuth). Hono adapter in the /hono subpath, Node (Express, Fastify, NestJS) in /node.

View on npm Outdated · Nov 8, 2026

@intentface/latch-server has 183 recorded weekly downloads on npm, a decrease of 35.1% over the past 30 days, ranking #2520 of 3,247 tracked listings.

Weekly downloads
183
Official API · Dec 5, 2026
7-day growth
+8.3%
+14 weekly downloads
30-day growth
-35.1%
-99 weekly downloads
90-day growth
—
Insufficient history
Rank
#2520
▼ 110 in 7 days

About @intentface/latch-server

@intentface/latch-server

The mountable HTTP surface for a Latch runtime — one framework-agnostic Web handler you mount at a single route in any Web-standard host (TanStack Start, Next, Bun, Deno, serverless). Express, Fastify and NestJS mount it through toNodeHandler from @intentface/latch-server/node.

What it does

createLatchHandler({ runtime, connections, resolvePrincipal }) returns a (Request) => Response handler that exposes the runtime over HTTP:

  • POST /agents/:agent/:id — run a chat turn (streams UIMessage SSE).
  • POST /agents/:agent/:id/approvals — submit HITL approval decisions (resumes the turn).
  • POST /agents/:agent/:id/tool-result — return a client-handled tool result (e.g. ask_question).
  • GET /agents/:agent/:id/history, GET /chats, GET /runs — projections for the UI.
  • GET/POST/DELETE /schedules, GET /schedules/:id, POST /schedules/:id/run-now — manage scheduled agents; GET/POST /cron/run — the host-guarded tick (a bearer token or x-latch-cron-secret, so Vercel Cron can call it).
  • GET /connections, …/:name/authorize, …/:name/callback, …/:name/disconnect, …/test — generic MCP connection OAuth + status.

resolvePrincipal(request) turns a request into your Principal (bring-your-own auth). A Hono adapter is exported from the /hono subpath.

OAuth callback identity

The connection callback is the one route that does NOT authenticate via resolvePrincipal. An IdP redirect arrives at a moment you don't control, so a degraded session there must never decide where credentials land. Instead, authorize pins the resolved principal into the OAuth flow state, and the callback rebuilds it from that pin:

createLatchHandler<Principal>({
  runtime, connections, resolvePrincipal,
  // Validate/re-hydrate the pinned identity on the callback (e.g. re-check
  // org membership). Null → 401. Default: trust the pin as-is.
  reconstructPrincipal: async (identity) => validateMembership(identity),
  oauthFlowMaxAgeMs: 30 * 60_000, // authorize → callback TTL (the default)
});

The callback does not resume a waiting turn — the browser must not sit on a blank page for a whole run. Resuming is the client's job after the redirect: find the pending connect_<name> approval in the chat's history, submit it to POST /agents/:agent/:id/approvals, and read the continuation stream that returns. Two details are easy to miss: the continuation reuses the last assistant message's id and streams only its new parts, so seed your stream reader with a clone of that message or the answer renders as a second, half-empty one; and mirror the decision locally first, or the approval card stays on screen for the whole run. Reconcile against server history at the end.

A callback whose pin is older than oauthFlowMaxAgeMs redirects with ?error=flow_expired (the user just re-runs connect). The pin is tamper-evident — the full state string is exact-matched against the copy the flow stored at start() — and principals are IDs-only by contract (see @intentface/latch-core's principal.ts), so nothing sensitive rides in the URL.

Scheduling over HTTP

POST /schedules takes everything runtime.schedule() does, so the mounted handler is not a reduced version of the contract:

{
  "agent": "briefer", "cron": "0 8 * * 1-5", "timezone": "Europe/Helsinki",
  "prompt": "morning brief",
  // Opaque to core — only your `runSchedule` hook reads it (a Slack thread, a DM).
  "delivery": { "kind": "slack", "appId": "A1", "channel": "C1" },
  // "skip" (default) = don't fire onto a predecessor still waiting on a human;
  // "fire" = always fire. An unknown value is a 400, never a silent default.
  "onParked": "fire"
}

POST /schedules/:id/run-now arms a schedule for the next tick rather than firing it inline — it then goes through the ordinary runDue path (same claim, same occurrence consume, same delivery), so "run now" cannot drift from what the cron actually does. GET /runs deliberately omits each run's identity (the serialized principal): it is durable server state and a type you are invited to extend, so it never enters a browser payload — read it server-side via runtime.listRuns if you need it.

Usage

import { createLatchHandler } from "@intentface/latch-server";

const handler = createLatchHandler<Principal>({
  runtime, connections,
  resolvePrincipal: (req) => getPrincipalFromHeaders(req.headers),
});
// mount at /api/latch/* — every Latch operation flows through this one handler.

Where it fits

The HTTP tier over @intentface/latch-core. The routes are a convenience over the real contract — the Runtime operations — which you can still call directly from your own routes or non-HTTP triggers (cron, queues, chat channels).

Description from the npm listing.

  • ai
  • ai-sdk
  • agents
  • llm
  • http
  • hono
  • webhooks
  • express

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@intentface/latch-server weekly downloads on npm, last 90 days: 183 weekly downloads as of Dec 5, 2026.@intentface/latch-serverWeekly downloads on npm · Last 90 days183downloads / week02004006008001K1.2K1.4K1.6KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@intentface/latch-server weekly downloads on npm, last 90 days: 183 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@intentface/latch-server weekly downloads growth on npm: +8.3% over 7 days, -35.1% over 30 days, 90-day growth unavailable.@intentface/latch-serverWeekly downloads growth on npm183downloads / week now7-day growth+14 weekly downloads+8.3%30-day growth-99 weekly downloads-35.1%90-day growth+183 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@intentface/latch-server weekly downloads growth on npm: +8.3% over 7 days, -35.1% over 30 days, 90-day growth unavailable.

Ranking history

@intentface/latch-server npm ranking history: currently #2520 (by weekly downloads).@intentface/latch-servernpm ranking · by weekly downloads · Last 90 days#2520current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 24 observations · Updated Dec 5, 2026pluginstats.com
@intentface/latch-server npm ranking history: currently #2520 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 126, #20 (overall #2,520)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 16, #7 (overall #307)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for @intentface/latch-server
Date (UTC)Weekly downloadsChange vs. previous
183-7
190-22
212-9
221+66
155+5
150-40
190+21
169-1
170+28
142+23
119-14
133+12
121+16
105—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@intentface/latch-server. First seen Oct 16, 2026; last successful collection Nov 8, 2026. See the methodology.