anolilab/lunora
Type-safe, real-time backend with Vite, Rsbuild and Rspack support, deployed on Cloudflare Workers and Durable Objects. Auth, storage, scheduling and an MCP server for AI agents. Convex-style DX.
What it solves
Lunora tackles the friction of building real-time backends. It gives you a developer experience similar to managed services like Convex, but runs entirely on infrastructure you control — specifically your own Cloudflare account. You don’t pay a SaaS markup or surrender ownership; you get type safety from schema to client, live queries that update across all connected clients automatically, and none of the typical cache-invalidation headaches.
How it works
You define a schema and write queries, mutations, and actions in TypeScript. The dev server (integrated with Vite, or with an optional Rspack plugin) generates client-side types and runs your code on workerd, the same runtime as production. In production, your app is deployed as Cloudflare Workers. Durable Objects hold real-time state, D1 handles SQL, R2 stores blobs, and Queues run background jobs. Clients subscribe over WebSocket, so a mutation pushes updates to every subscriber instantly. The core engine is host-neutral; it talks to a small set of platform contracts, implemented by Cloudflare for production and Node for local dev/test. You can also scale beyond a single Durable Object with .shardBy(key) and use .global() for geo-replicated reads. Add-ons like auth, mail, storage, scheduling, AI agents, and more are available as packages.
Who it’s for
Lunora is aimed at developers who want a type-safe, real-time backend without relying on a proprietary managed service. It’s especially attractive if you’re already using Cloudflare and want to own your infrastructure and costs. The Vite-first workflow suits teams building with Vite, but adapters exist for many frameworks, and the standalone CLI covers other setups.
Highlights
- Runs on your own Cloudflare account: Workers, Durable Objects, D1, R2, Queues, and KV all live in your infra.
- End-to-end type safety: schema, validators, queries, and client hooks share one source of truth, regenerated automatically on save.
- Live queries: clients subscribe over WebSocket; mutations push changes instantly to all subscribers, no cache invalidation.
- Scale beyond a single Durable Object with
.shardBy()and.global()for geo-replicated reads. - Vite-first developer experience: local dev runs on workerd (same runtime as production), with a dev server and codegen.
- Platform neutral core: the reactive engine uses host contracts, so it runs on Cloudflare, Node (dev), and self-hosted (experimental).
- Lunora Studio: a local admin UI for browsing/editing data, running SQL, viewing logs/traces, and getting security/performance advice.
- Many framework adapters: React, Vue, Solid, Svelte, Angular, React Native, etc., plus typed SDKs for Python, Go, Ruby, Rust, Swift, Java, Kotlin, and Dart.
- Built for AI agents: MCP integration exposes tables, functions, logs, and issues to agent clients.
Related
- Project
- Project
- Project
- Project