Wraith
View SourceA Ghost-style publishing platform in Elixir/Phoenix — with live widgets (tiny shared-state mini-apps readers interact with in real time), a Lua widget studio, one table for everything (DynamoDB, PostgreSQL or Aurora DSQL), and an agent studio: a Kiro agent on a Lambda MicroVM that writes posts, scripts widgets and runs the site with you.
reader ──LiveView──▶ Phoenix ──▶ Wraith.Store ──▶ DynamoDB | PostgreSQL | Aurora DSQL (one table)
│
├─ Wraith.Widgets ── luerl sandbox (Lua) / Elixir modules
│ state per instance, PubSub fan-out
└─ Wraith.Studio ──ACP/WebSocket──▶ Kiro Agent Server (MicroVM)
▲ │ MCP over the bridge
└──── Wraith.Studio.Tools ◀────┘What's in the box
| Area | Where |
|---|---|
| Posts & pages: draft / scheduled / published, slugs, tags, co-authors, revisions, table of contents, related posts, syntax highlighting (Lumis), canonical + OG/Twitter meta, public / members / paid visibility | Wraith.Content, Wraith.Markdown, Wraith.Settings, Wraith.Accounts |
| Images: upload from the editor (feature image, inline at the cursor), avatars; local disk or S3 | Wraith.Uploads, Wraith.Uploads.{Local,S3} |
Members: double opt-in subscribe, magic-link sign-in, account page, newsletter on/off, self-deletion, CSV export/import, tiered paywall with a public preview above <!--members-only-->; Stripe Checkout + customer portal, verified webhook | Wraith.Members, Wraith.Billing, WraithWeb.MemberAuth |
| Mail: welcome, sign-in link, password reset, publish & send newsletters with per-member unsubscribe (Local mailbox in dev, SES in prod) | Wraith.Newsletter, Wraith.Mailer, Wraith.Tokens |
| Comments: members comment and reply (one level), reply notifications by mail, live for everyone on the page, moderation in the admin | Wraith.Comments, WraithWeb.Admin.CommentsLive |
| Staff roles: owner, admin, editor, author, contributor — enforced in every screen and the rail; staff management in Settings | Wraith.Policy |
Embeds: {{embed url "caption"}} → YouTube/Vimeo players, X link cards, Open Graph bookmark cards | Wraith.Embed |
| Publishing: send-on-publish, scheduled unpublish, test mail, word count, bulk actions, per-tag/author RSS, JSON-LD, per-post noindex | Wraith.Content, Wraith.Newsletter |
| Analytics (daily views and unique readers per post, top posts, member growth) and an audit log, on the dashboard | Wraith.Analytics, Wraith.Audit |
Security: encrypted secrets, rate limiting, session expiry, widget HTML sanitiser, /health — see Security notes | Wraith.RateLimit, Wraith.Janitor, Wraith.Vault |
Search: in-memory inverted index over published posts, /search as you type | Wraith.Search |
| Author profiles: avatar, bio, socials, password change, reset by mail | WraithWeb.Admin.{ProfileLive,ResetLive} |
Redirects (exact and /old/*), navigation picker for pages | WraithWeb.Redirects, Settings |
MCP server: every admin action as a tool, posts as resources, at /mcp for any agent — Kiro CLI, Claude, Cursor; the studio agent uses the same registry | Wraith.Tools, WraithWeb.McpController, Wraith.Kiro.MCP |
JSON APIs in Ghost's shape: Content API (read, ?key=), Admin API (Bearer key or session), Ghost-compatible export and import of a Ghost site | WraithWeb.Api.*, Wraith.ApiKeys, Wraith.Ghost |
| Public site: feed, post, tag, author, subscribe, RSS / JSON Feed / sitemap | WraithWeb.Site.*, WraithWeb.FeedController |
| Themes: 18 themes across 6 layouts (editorial, list, grid, magazine, minimal, journal), picked in a swatch gallery in Settings; token skins + shared base/layout CSS, light/dark | WraithWeb.Theme, WraithWeb.Theme.Layout, WraithWeb.Themes, lib/wraith_web/themes/*, priv/static/themes/*.css |
| Admin: setup, login, dashboard, Markdown editor with live preview (widgets live too), posts, tags, members, settings | WraithWeb.Admin.* |
| Widgets: behaviour, Lua sandbox, shared live state, built-ins (counter, poll, reactions, countdown, live visitors) | Wraith.Widgets, Wraith.Widgets.Lua, priv/widgets/*.lua |
| Widget studio: write Lua, click the live preview, versions & rollback | WraithWeb.Admin.WidgetEditorLive |
| Agent studio: Kiro on a MicroVM, transcript streaming, tool calls, permission prompts | Wraith.Studio, Wraith.Studio.Server, Wraith.Studio.Tools, WraithWeb.Admin.StudioLive |
| Kiro runtime (ported from shadow_corp): MicroVM API, ACP client, bridge, MCP | Wraith.Kiro.*, microvm/ |
| Storage: one table; Memory, DynamoDB and SQL (PostgreSQL / Aurora DSQL) adapters | Wraith.Store, Wraith.Store.Keys, Wraith.Store.{Memory,Dynamo,SQL} |