Imported from taslabs-net/homeflare-subnet-calc (
AGENTS.md). Install upstream withnpx skills add taslabs-net/homeflare-subnet-calc. Copyright stays with the author.
subnetcalc
Privacy-first IP subnet calculator. Zero backend: all state is in the browser and the URL. Bun is the toolchain; Alchemy ships the Worker.
TanStack Start (Kumo UI) is the public Worker. Hono + @hono/zod-openapi
serves /api from the same Worker. IP math stays in src/lib.
Live
- Account: Schenanigans Testing
- Worker / Alchemy stack name:
subnetcalc— ⛔ renaming forks the live Worker - Writer:
Cloudflare.Website.Viteinalchemy.run.ts
Do not wrangler deploy. bun run deploy is Alchemy.
State store
Same Cloudflare state store as every other HomeFlare Alchemy project. Credentials
from ~/.alchemy/credentials/default/cloudflare-state-store.json (or
HF_STATE_STORE_URL + HF_STATE_STORE_TOKEN). Do not alchemy provider cloudflare bootstrap here — that can redeploy the shared store Worker.
Traps
- Vite / TanStack Start does not need
disable_nodejs_process_v2(that flag is Astro-only). - Do not add
@astrojs/cloudflare. This is not an Astro app. - UI is Kumo (
@cloudflare/kumo), themed by@homeflare/ui/styles. Not shadcn. Import Kumo per-component, never a barrel. - Wrap the app in
TooltipProvideror Kumo Tooltip throws.
Mode/reservation policy is src/lib/modes.ts. IP math is src/lib/ip-utils.ts
and src/lib/ipv6.ts. Do not copy those into a component.