Packages

Sign-in, payments, agents and frameworks in one boundary

Turning working code into a real business on a conventional cloud means assembling half a dozen SaaS vendors and pulling hundreds of transitive dependencies from public registries, and every added feature widens both your monthly bill and your attack surface. On Ferrite, every deployable application depends on a single crate, the Ferrite SDK, so shared product capabilities arrive as signed source packages compiled directly into your application. Your coding agent adds sign-in, Stripe checkout, transactional email, customer-facing AI agents, web frameworks or embedded runtimes with one command each, paid from one prepaid balance and confined to the authority boundary your application already declares.

Why signed source packages

A deployable Ferrite application compiles against one dependency, ferrite-app. Third-party crates, procedural macros and build scripts are rejected before compilation begins. That rule removes public supply-chain compromises at the root: when the Shai-Hulud worm compromised more than 500 packages on npm, applications built on transitive dependency graphs inherited the exposure automatically.

Because an application never pulls external crates at build time, shared subsystems travel as inspectable source mounted inside your project tree. At runtime a package carries zero ambient authority of its own. It runs as ordinary function calls inside your application's single containment boundary, uses only the stores and outbound destinations named in your manifest, and deploys and rolls back atomically with the rest of your code. The security page covers how admission and containment enforce that boundary.

The package catalogue

Every package below is written in safe Rust against ferrite-app alone and verified by SHA-256 digest at installation. The packages are public, with source at github.com/iGentAI/ferrite-packages.

  • auth: OAuth sign-in with Google or GitHub using PKCE over declared egress, store-backed sessions, CSRF protection and safe redirect validation. Roles, membership and record-level access rules stay explicit in your application's own code.
  • payments: Stripe-hosted checkout request builders, cryptographic webhook verification, replay-safe payment recording so duplicate notices never double-credit an order, and an x402 payment gate for paid operations called by AI assistants.
  • messaging: Transactional email and chat notices through providers such as Resend or Postmark, combining pure provider request builders, a safe email renderer and a retry ladder for transient delivery failures.
  • agent-ready: Discovery and execution surfaces for customers' AI assistants generated from the operations your product already declares, covering llms.txt, Markdown page twins with Accept negotiation, OpenAPI catalogues, agent cards, an MCP endpoint, RFC 9457 structured errors, and opt-in Personal Agent Protocol (Poppy 1.0) discovery, per-operation exposure controls, exact-terms approvals, Browser Join and conversations.
  • poppy-oauth: A standalone per-app OAuth 2.1 issuer for Personal Agent Protocol (Poppy 1.0) sign-in, providing RFC 8414 metadata, PAR, PKCE S256, signed JWT client assertions, multi-resource refresh tokens, optional DPoP, immediate revocation and a Connected Personal Agents settings page so every application keeps its own isolated issuer.
  • agent-sdk: A durable agent loop inside your application with tools, hooks, skills, subagents and MCP connections over API, stream and MCP faces. Your product's agent is part of your product: it ships and rolls back with the application, keeps conversations in your application's own store, and reaches only what your manifest allows.
  • alloy: The Rust server half of Ferrite Alloy for products with a React front end, providing routing, tag-invalidated caching, replay-safe actions, document assembly and static asset delivery.
  • rsx: The runtime half of Ferrite Rsx for content-driven products written as .rsx templates, with file-convention routing, escaped-by-default HTML rendering, tag-based caching and live server-pushed regions.
  • mcp: Model Context Protocol support covering wire framing, a stateless client, a resource server and OAuth 2.1, so your application can call external tool servers and expose its own tools to AI assistants.
  • crdt-text: A pure-Rust sequence CRDT for real-time collaborative text editing with server-side validation, convergent merges and compaction, with no separate sync daemon.
  • wasm-runtime: A pure-Rust WebAssembly interpreter compiled inside a constrained application so your product can run portable modules without native JIT compilation or host system calls.
  • qjs-engine: A fuel-limited QuickJS JavaScript engine running on top of wasm-runtime with deterministic host calls for user-authored scripts, formulas or automations inside your application's memory and CPU limits.

One command, verified source

Ask your coding agent to add sign-in, payments or an embedded product agent, and it installs the module with a single command such as ferrite add auth or ferrite add agent-sdk. The CLI resolves any package dependencies, checks every fetched file against its SHA-256 digest in the signed registry index, copies the source into your project and records the version and mount in ferrite-packages.json.

Nothing overwrites local edits without notice and nothing updates behind your back. If a file you modified is in the way, installation stops and names the conflict. Upgrades happen only when you request them, every line of installed source remains readable in your repository for human or automated review, and the platform compiles the composed tree as one safe Rust binary on every deploy.

Built-in agents for your product

Teams adding an AI assistant to their software commonly end up running a second orchestration stack beside their main backend, duplicating authentication, data permissions, deployment pipelines and spend monitoring. With agent-sdk, that assistant compiles directly into the application itself. It invokes the same domain operations your web interface uses, stores conversation state durably alongside customer records, draws inference from your single prepaid balance under its own spend cap, and respects the outbound allowlist declared in your manifest. When a release rolls back, the product and its built-in agent roll back as one unit.

Splitting out a shared service

When a capability grows into a shared internal service that several of your products call, your coding agent can deploy it as its own Ferrite application with its own manifest, isolation boundary and budget ceiling, managed from the same account and dashboard.