Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By isala404MITIn 1 marketplace
Guides writing backend code with the forgelib library, covering queues, key/value storage, blobs, auth helpers, rate limits, scheduling and pub/sub. Forge keeps these primitives inside the backend process, using PostgreSQL as the shared durable store and an embedded PostgreSQL 18 if DATABASE_URL is unset.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Forge is a backend infrastructure library for Rust, Node.js and Bun, Python, and Go. It provides queues, key/value storage, blobs, authentication helpers, rate limits, scheduling, configuration, and pub/sub through one versioned contract.
Most applications need the same backend plumbing:
Each separate service adds another deployment, security boundary, test double, and failure mode.
Forge keeps these primitives inside the backend process. PostgreSQL is the shared durable backend, memory is the process-local test backend, filesystem storage is available for local blob data, and S3-compatible storage handles larger blob workloads. Forge 1.1 is the compatibility baseline; later 1.x releases move in lockstep and reserve breaking changes for 2.0.
Forge owns its public contract, backend implementations, schema and migration validation, bounded payload formats, worker leases, retries, lifecycle, diagnostics, metrics, and trace propagation.
The application owns HTTP or RPC routes, business data, authorization policy, worker handlers, process signals, deployment, MCP transport, and observability export. It also owns every frontend choice: framework, browser transport, WebSocket or SSE client, cache, TanStack Query setup, optimistic state, reconnect behavior, and refetch policy. Forge can encode and publish a bounded server-side invalidation hint, but the application decides whether and how that hint reaches a client.
The exact consistency, durability, ordering, expiry, and retry rules are in the semantics guide. Security-sensitive ownership is in the security guide.
npm install forgelib
Configuration lives in a forge.toml at your project root. init() reads it and instantiates the runtime; string values may reference the environment as ${VAR}:
[postgres]
url = "${DATABASE_URL:-}"
embedded = true
Set DATABASE_URL to use a managed or shared PostgreSQL 18 server. Leave it unset and Forge downloads and runs PostgreSQL 18 for you (data persists in .forge/pg) — built into the Node and Python packages, behind the embedded cargo feature in Rust.
Omit settings you do not need; Forge applies production-safe defaults for the rest.
Development and test startup migrate automatically. Production defaults to validation-only startup: run ForgeClient.migrate() (or the Rust, Python, or Go equivalent) in the deployment job, require every structured report to be applied, then start the application. migration_lock_timeout_secs bounds advisory-lock waiting, and contract/schema-ownership.json lists every Forge-owned object.
import { ForgeClient } from "forgelib";
const forge = await ForgeClient.init(); // instantiates the runtime from ./forge.toml
// auth: argon2 password hashing, sessions, one-time tokens (password reset, magic links)
const hash = await forge.hashPassword(password);
const session = await forge.createSession(userId);
const reset = await forge.createToken(userId, "password-reset", 900); // consumeToken later, once
// rate limit: 20 attempts per minute, keyed by email
const limit = await forge.rateLimitCheck("login", email, 20, 60);
if (!limit.allowed) throw new Error("slow down");
// key/value: TTL cache and atomic counters
await forge.kv<typeof profile>(`user:${userId}`).set(profile, { ttlSeconds: 3600 });
const views = await forge.kvIncr(`views:${userId}`, 1);
// queue: background jobs
await forge.queue<{ to: string }>("emails").enqueue({ to: email });
// pub/sub: fan an event out to subscribers
await forge.topic<{ userId: string }>("user.created").publish({ userId });
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
isala404-forge@cascade-code-general-misc-1 is listed by joshuarweaver/cascade-code-general-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin isala404-forgePlugins from other owners that cover similar ground