Skip to content
Source
Sign inSign up
samwillis/neon-glow-demo

samwillis/neon-glow-demo

README.md

Neon Glow

A mobile-first creative playground for making, playing, sharing, and remixing small interactive apps and games through chat, built on Neon.

Product direction

  • Make fun, silly, personal things to share with friends.
  • Build and remix through a chat interface with a playable preview.
  • Support desktop and mobile web, plus a native iOS and Android builder.
  • Design generated apps for phones while preserving open-ended creative range.
  • Keep creation, sharing, and remixing at the centre of the experience.

Backend model

  • A dedicated App project runs the platform backend and creation orchestrator. All editing is coordinated here through authenticated APIs.
  • Each original creation gets its own Neon project.
  • Each remix gets a branch within the original creation's Neon project.
  • A remix can itself be remixed by branching from its branch.
  • The App project maintains ownership, conversations, and the registry mapping creations to their Neon projects and branches.
  • Neon Functions are the intended home for the agent loop and backend APIs.
  • Every app is iterated on its existing branch. Only an explicit fork creates a child branch; edits, previews, undo, retries, and recovery never do.
  • Share links identify the app and open its latest working version. Compatible updates preserve pet/score progress; forks evolve independently with fresh state.
  • Coding Functions run in a separate sandbox project containing no app data and use scoped App APIs. Branch database credentials stay in the trusted API. A stable bootstrap loads centrally published agent packages. Sandbox uploads use staging; trusted promotion protects final immutable artifacts.
  • Use Neon's database, Auth, Object Storage, AI Gateway, and Realtime where they support the experience.

Status

The first implementation includes a responsive web builder, an Expo native builder, a hosted API and Pi coding agent, sharing, revision history, persistent state, and Neon-project/branch provisioning for originals and remixes. This is a development build for Databricks email addresses and explicitly invited testers. See implementation and checks for what is working, remaining limits, and deployment instructions.

Run it

Use Node 24 or 26 and pnpm 10.32.1. With the existing ignored .env.local:

pnpm install
pnpm dev

Open http://localhost:3000, sign in with the code emailed by Neon Auth, and ask for a silly mobile game. Play it, send a change, share the link, and remix it from another account. When hosted workers are configured, pnpm dev starts the web frontend against the hosted Neon API.

For native development, run pnpm dev:mobile. Use pnpm --filter @glow/mobile ios or pnpm --filter @glow/mobile android to build the native shell. The mobile API URL is configured in its ignored .env.local. Native device interaction and platform distribution still need human validation.

pnpm typecheck, pnpm test, and pnpm build check the workspace. The native bundles can be checked with pnpm --filter @glow/mobile export.

Planning

  • Design specifications: reviewed experience, visual direction, TanStack Start/Base UI/CSS Modules web UI, native UI, and shared TanStack DB state with Neon Realtime.
  • Interface sketches: ASCII layouts for desktop web, mobile web, and native, including building, playing, sharing, and remixing.
  • Build plan: experience, web/native architecture, Neon project fleet, Realtime sync, releases, data ownership, and implementation order.
  • Agent runtime: coding-engine options, file tools, workspaces, durable execution, validation, repair, and recovery.
  • Agent skills: official Neon skills in Pi, the Glow backend guide, scoped resource loading, and centralized delivery without Neon MCP.
  • Coding sandbox: branch execution boundary, scoped App APIs, and centrally published agent packages with stable bootstrap Functions.
  • Gameplay state: versioned reads/writes, concurrency, idempotency, and progress preservation across updates and older clients.

The first usable slice includes web and native creation, sharing, a real Neon branch remix, and a reply. Invited-group testing follows before broader rollout.

Validation

  • Pi on Neon results: passed live model generation, file editing, compilation, and source/session restoration across two Functions, using Neon AI Gateway, Postgres, and private Object Storage.
  • Repeatable runtime spike: implementation, deployment, and validation commands.