Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/DogPawHat/airspace-tanstack-demo.
Something went wrong. Try again.
Files
README.md
airspace-tanstack-monorepo #
pnpm workspace with:
apps/web— the airspace demo on TanStack Start + TanStack Query (ported fromairspace/examples/nuxt)apps/demo-pds— the reference atproto PDS from the permissioned spaces alpha, copied fromdanielroe/airspacedemo-pds/(commit5f06bd7) and adapted for this workspace (alpha-package pinning lives in the rootpnpm-workspace.yaml; theDockerfileexpects the repo root as its build context)
local dev #
pnpm install
pnpm pds # demo PDS on localhost:2583 (in-memory PLC, throwaway data dir)
PDS_ADMIN_PASSWORD=admin pnpm pds:invite # mint an invite code (the local PDS is invite-only)
apps/web/.env (see .env.example): AIRSPACE_SERVICE, AIRSPACE_INVITE_CODE,
SESSION_PASSWORD (any 32+ char string), and optionally
AIRSPACE_IDENTIFIER/AIRSPACE_PASSWORD for seeding.
pnpm dev # web app, http://localhost:5173
Visitors press Try it to get their own throwaway demo-* account on the PDS,
kept in an encrypted session cookie; Sign out clears it and the server caches.
Other helpers: pnpm pds:invite (mint an invite code, needs PDS_ADMIN_PASSWORD),
pnpm pds:smoke, pnpm pds:reset, pnpm typecheck, pnpm build.
deploy #
deploy #
- Render (both apps):
render.yamlat the repo root is a complete blueprint —render blueprint launch(or git-connect). The web app builds as a plain SSR node bundle (node server.mjs, no Netlify plugin) and the PDS deploys as a Docker service with a 1 GB disk. Mostsync: falsevars must be set in the Render UI — especially the PDSPDS_HOSTNAMEbefore its first boot (it's baked into every account'sdid:plc). Theairspace-pds-resetcron job cleans up throwaway accounts daily. - Netlify (web only) still works: it builds with the Netlify plugin when
NETLIFY=trueis set (the CLI sets it); site settings: build commandvite build, publishdist/client, base directoryapps/web, function at.netlify/v1/functions/server.mjs. - Fly (pds):
fly deploy -c apps/demo-pds/fly.toml --dockerfile apps/demo-pds/Dockerfile .from this repo root. Seeapps/demo-pds/README.mdfor first-time setup (secrets, volume, certs) and the dailyreset.mjsjob.
- TypeScript 76%
- CSS 23%
- Docker 1%