GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - iGentAI/ferrite-examples: Complete sample applications built on Ferrite that build and test on your own machine

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
apps
apps
 
 
packages
packages
 
 
samples
samples
 
 
sdk
sdk
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 

Repository files navigation

Ferrite examples

Sample applications built on Ferrite, from a one-file page to multi-tenant workspace applications. Most serve people in a browser and AI agents over MCP from the same declared routes. Every application with a Cargo.toml builds and runs its tests on your own machine with nothing but this repository and crates.io; the four Rsx applications are authored source that the released CLI assembles into a project, as each of their READMEs describes.

Agents

Application What it demonstrates
apps/ferrite-durable Ferrite Durable: persistent agent conversations that survive restarts. A browser console sends input, steers an active turn, manages named subagents, shares a conversation and reconnects to its saved transcript, with file tools in a workspace isolated to the owner and conversation, generated scripts on a bounded JavaScript engine, and model requests through the AI Gateway
apps/ferrite-agents The agents application: agents written as functions on agent-sdk, with threads, streaming, subagents and compaction on Ferrite's own stores, served over a JSON API, MCP, ACP and A2A. It runs turns on your own OpenAI key and carries a catalogue of sample agents
apps/demo-agent-desk Agent Desk: a support desk whose tickets are handled by an agent written with agent-sdk, with tool calls arriving as a stream, signed ticket intake, and MCP, ACP and A2A faces. The model is a scripted provider, so the desk runs with no key

Full applications

Application What it demonstrates
apps/ferrite-booking Northlight Yoga, a class booking application: event types, availability windows, slot holds and double-book-safe reservations, served to browsers, plain HTTP clients and MCP agents
apps/acme Ferrite Commerce: an online storefront with variant selection and cart management, ported from Next.js Commerce to Ferrite Alloy, with original product illustrations drawn by a script in the application
apps/next-books NextBooks: a searchable catalogue of over a million books with URL-driven filters and detail pages, ported from vercel-labs/next-books to Ferrite Alloy
apps/dropfeed Drop: a social feed where people post, reply in threads, like, repost, bookmark and follow, with optimistic updates that reconcile with the server, ported from aurorascharff/next16-social-media to Ferrite Alloy
apps/fe-plan-studio Plan Studio: a collaborative Markdown planning application in which each room holds a shared plan with anchored comments, revisions proposed by an agent and reviewed by a person, labelled versions and per-person drafts
apps/beats Beats: a music player with search, favourites, playlists and a now-playing bar that keeps playing across navigation, with a per-browser session behind the demo sign-in, ported from vercel-labs/next-beats to Ferrite Alloy
apps/fe-taskboard Taskboard: a shared kanban board whose HTTP API, MCP tools and browser actions call the same mutation code, with fractional card positions, compare-and-swap writes and replay-safe retries
apps/ferrite-helpdesk Ferrite Relay: a support desk isolated by tenant and requester, with threaded replies, internal notes that never reach a customer on any face, SLA clocks, a signed inbound-email webhook and a hash-chained audit trail
apps/ferrite-evidence-vault Ferrite Ledger: a compliance evidence vault with role separation, content-addressed blob storage, retention locks, legal holds and scheduled deletion, and an HMAC-chained audit trail
apps/fe-docs-site A documentation site with versioned guides, full-text search and an API reference, serving a Markdown twin of every page, llms.txt, an OpenAPI catalogue and MCP tools from one corpus
apps/flow Flow: a shared board on which cards keep fractional ranks, so a drag updates one card and concurrent drags into the same gap both survive; its component tree is adapted from aurorascharff/next16-calendar
apps/huddle Huddle: a document workspace with drafts that save as you type and revision-fenced publishing, so a stale publish is refused while its author's text stays saved; its component tree is adapted from aurorascharff/next16-team-chat
apps/star-swarm Star Swarm: a realtime multiplayer arena over WebSockets, with a Three.js stage for a projector, phones as controllers and an authoritative 30 Hz simulation in one constrained crate
apps/reminders Reminders: lists, due dates, priorities and smart lists as a server-rendered Alloy application with no React, with loaders that cache rows rather than date-derived values and writes that apply once under replay
apps/fe-quotes-api A priced quotes API for agents: API keys across three pricing tiers with monthly quotas, per-caller metering, and a premium endpoint that answers HTTP 402 with x402 payment requirements until the caller pays
apps/ferrite-sql-app Tenant SQL databases as an ordinary application: SQLite compiled to WebAssembly and run on a safe-Rust interpreter, with each database kept in the application's own store

The Alloy ports build from each application's web/package.json. Their web/src/upstream/ directories contain components adapted from the original projects. See NOTICE for the source repositories and licences.

Source packages working together

Each of these starts from the CLI's scaffold and installs its packages with ferrite add.

Application What it demonstrates
apps/demo-market Demo Market: a notebook storefront on ten source packages, with customer password accounts, orders that apply once however often a request is replayed, payment requests, signed webhook events and a messaging outbox
apps/demo-connector-console Connector Console: governed connectors to GitHub and Google behind one server-rendered interface, where you grant a scope, watch what a connector reads, and approve, deny or revert what it asks to write
apps/demo-reading-room Reading Room: a book catalogue with a shared reading list, written with Rsx and the bookshelf catalogue package

TanStack Start

Each of these is a TanStack Start front end served by a Rust port of the Nitro server toolkit, with no Node.js at run time. tools/ferrite-start builds the front end and emits the files the application embeds.

Application What it demonstrates
apps/fe-start-launch A fully prerendered marketing site for Beacon, a fictional launch-page product
apps/fe-start-journal A small journal that shows incremental static regeneration: cached pages that refresh in the background
apps/fe-start-lockbox A private notes application with cookie-session authentication enforced in Rust middleware
apps/fe-start-metrics An operations dashboard: a single-page application over Rust API routes, with a stale-while-revalidate cache rule on the busiest endpoint
apps/fe-start-ticker A live market ticker that pushes quotes to the browser as server-sent events on one open response
apps/fe-start-demo The reference TanStack Start application: each surface of the port on one site, including server functions run on a bounded JavaScript engine

Alloy with a typed React contract

Each of these pairs a constrained Rust crate with a Vite and React bundle under web/, joined by a generated contract: rename a field in Rust and the React build fails.

Application What it demonstrates
apps/alloy-drop The smallest Alloy example: a seeded feed, a detail page and one action. Start here to see how the Rust crate and the React bundle connect
apps/alloy-showcase The Alloy feature tour: one concrete place to see each capability work (redirects, per-route headers, deferred segments, replay-safe actions, draft mode) and one place to trigger each refusal
apps/alloy-crm A sales-lead tracker: a funnel stored as data, per-lead notes and stage history, duplicate detection with a crash-repairable merge, and optimistic concurrency
apps/alloy-inventory Multi-warehouse inventory: SKUs and pack sizes, an immutable movement ledger, oversell prevention, reservations, purchase orders and cycle counts
apps/alloy-ledger A double-entry financial ledger: atomic multi-leg postings, an immutable journal, derived balances, holds, accounting periods and a zero-sum invariant checked on every read
apps/alloy-tracker An issue tracker: projects, a guarded status workflow, comments, and a per-issue audit trail whose actor comes from a server-verified session

Rsx

Server-rendered applications written as .rsx templates beside Rust loaders and actions. Each directory holds authored source only; its README gives the four commands that assemble it with ferrite rsx new.

Application What it demonstrates
apps/rsx-beats A music player: an element that survives navigation, whole-route caching, path invalidation and a favourite toggle that survives retries
apps/rsx-drop A feed: data cached under a tag, a mutation that invalidates it with one counter bump, and the difference between a direct write and a staged effect
apps/rsx-huddle A team chat: a live region that appends incoming events to the page and resumes from a log offset after a reconnect
apps/rsx-flow A calendar: a compare-and-set read-modify-write loop with reported contention, and directional view transitions

MCP Tasks and Events

Application What it demonstrates
apps/mcp-task-demo Durable MCP Tasks: asynchronous text analysis that survives restarts, with owner-isolated task state, an approval step by elicitation and Events polling
apps/mcp-event-emitter An MCP Events source: bounded per-capability history exposed by polling, idempotent emits, revocation, and forwarding to an external publisher
apps/mcp-event-receiver An MCP Events consumer: push and signed webhook subscriptions to an external source, with each event, its cursor and its effect committed in one write
apps/ferrite-mcp-hub An MCP server with its own OAuth 2.1 authorization server in one application: client registration, a consent page, PKCE and rotating refresh tokens in front of tools, an interactive MCP App, a durable task with an approval step, events and a skill
samples/mcp-tasks A Node.js command-line client for MCP Tasks: start a tool call as a task, save a receipt, then wait for, inspect, answer or cancel it from a later process
samples/mcp-events Two Node.js clients for MCP Events: one follows an event from the command line, the other receives signed webhook deliveries into a durable inbox

Starter

Application What it demonstrates
apps/page-app The one-file starter a coding agent adapts for a small page such as a poll or a sign-up sheet: a form, stored counts and nothing else

Each application declares one crate dependency, ferrite-app, resolved from the local sdk/ tree (the same crates the ferrite CLI writes into every new project). Shared backend subsystems arrive as source packages under src/, while packages/alloy-next supplies shared frontend code and packages/bookshelf holds the Rust catalogue contract shared by apps/next-books and tools/catalog-import. tools/catalog-import is NextBooks' standalone catalogue importer, and tools/mcp-skills provides the skill-catalogue builder used by apps/ferrite-booking/scripts to regenerate src/workflow_skills.rs.

The SDK source comes from ferrite-sdk at 1e9af1d. Maintainers can run bash tools/check-sdk.sh to compare the bundled workspace and crates with that commit.

The MCP browser clients in packages/mcp/browser come from ferrite-packages at 762685e. The application directories include the source packages they use. Where present, ferrite-packages.lock.json records the package versions, mount names and file hashes.

Build and test

cd apps/ferrite-booking
cargo test --locked                           # run the application's suite on the local Forge harness
ferrite check && ferrite test && ferrite dev  # verify and serve locally with the released CLI

An Rsx application has no manifest of its own in this repository: follow the commands in its README, which scaffold a project with ferrite rsx new and copy the authored source into it.

Build a frontend bundle with npm --prefix apps/<app>/web run build.

Before you deploy a copy

Keep the explicit store workload blocks in ferrite.json. For small stores, leave hot_set_gib: 0 so the platform uses its compact default cache (64 MiB). Setting hot_set_gib: 1 reserves 1 GiB of RAM per store replica regardless of data size; raise it only when measured traffic warrants a larger cache, and keep volume_mib large enough to hold it. Choose a positive record_size_kb representative of your records rather than inflating volume_mib to work around a cache-size check. For a brand-new application, one store with key prefixes is usually enough when access and durability needs match; in these examples the cache store also backs rate limits and cached responses, so check callers before consolidating it.

Before deploying, check the projected cost for your replica count from the application directory:

ferrite cost --instances 1

Replace 1 with your target instance count. The estimate reflects the target cluster's published prices; it is a projection rather than an invoice or spending cap.

Licence and contributions

MIT; see LICENSE. Upstream ports retain their licences and notices; see NOTICE, apps/next-books/web/src/upstream/ for the NextBooks port, and the web/src/upstream/LICENSE file of apps/dropfeed, apps/beats and apps/huddle for those three. Every npm package bundled into a packed frontend (src/site_assets.rs) is listed with its licence text in that application's web/THIRD-PARTY-NOTICES.txt. This repository accepts issues and does not accept outside pull requests; see CONTRIBUTING.md. Report a security problem to [email protected], as SECURITY.md describes. The hosted Ferrite platform is proprietary and not open source.

This repository is a scrubbed public snapshot prepared by the Ferrite team and carries no private development history.

About

Complete sample applications built on Ferrite that build and test on your own machine

ferrite.cloud/examples

Topics

examplesferritemcprust

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.