[ Anolilab — Lunora Backend framework ]
A type-safe, realtime backend on your own Cloudflare account.
[ Anolilab — Step 1 of 4 ]
Describe the data once.
Next, write plain functions against it
import { defineSchema, defineTable, v } from "@lunora/server";
export default defineSchema({
messages: defineTable({
author: v.string(),
body: v.string(),
ts: v.number(),
}),
});[ Anolilab — Step 2 of 4 ]
Write plain functions against it.
Next, read them from the client
import { mutation, query, v } from "./_generated/server";
export const list = query.query(async ({ ctx }) =>
ctx.db.query("messages").order("desc").take(50));
export const send = mutation
.input({ author: v.string(), body: v.string() })
.mutation(async ({ ctx, args }) => {
await ctx.db.insert("messages", { ...args, ts: Date.now() });
});[ Anolilab — Step 3 of 4 ]
The list stays live.
Last, where all of this runs
import { useQuery, useMutation } from "@lunora/react";
import { api } from "../lunora/_generated/api";
const messages = useQuery(api.messages.list) ?? [];
const send = useMutation(api.messages.send);[ Anolilab — Step 4 of 4 ]
It is your account.
Workers
Your functions run as Workers, in the same runtime locally and in production.
Durable Objects
SQLite-backed state at the edge. Shard by tenant key or replicate reads globally.
D1
Relational storage for everything that outlives a single object.
R2
File and blob storage without egress fees.
Queues
Background work and scheduled jobs, without a second provider.
[ Anolilab ]
Where it sits
| Lunora | Convex | Firebase | Plain Cloudflare | |
|---|---|---|---|---|
| Type-safe end to end | partial | build it yourself | ||
| Realtime subscriptions | build it yourself | |||
| Runs on your own account | ||||
| Scales past one Durable Object | n/a | n/a | build it yourself | |
| Vite-first local development | n/a | n/a | build it yourself |
[ Anolilab ]
Start on the free tier.
pnpm dlx lunorash@alpha init my-appcd my-app && pnpm installpnpm dev
- Stars on GitHub
- 214
- Current release
- v1.0.0-alpha
- Open source
- Apache-2.0
[ Anolilab ]
Build with us
[ Anolilab — Contact ]
Let's talk.
- Quick response.
- If you're ready to create and collaborate, I'd love to hear from you.
- Clear next steps.
- After the consultation, I'll give you a detailed plan.
