wwwwwwwwwwwwwwwwwww
Highlights
What makes Takeout unique
NOTE: this is a placeholder
One
- Platform divergence -
.native.tsx,.ios.tsx,.android.tsx,.web.tsxsuffixes let you share routes but completely diverge UI per platform - Mixed render modes - static (
+ssg.tsx), server-rendered, or client-only pages from the same router - Typed routes -
createRoute()with auto-generatedroutes.d.tsfor full type safety on params and links - Native navigation -
withLayoutContext()wraps react-navigation for native tab bars, headers, and gestures - API routes -
+api.tssuffix with typed endpoints, catch-all patterns - LCP optimization -
experimental_scriptLoading: ‘after-lcp-aggressive’defers JS until after paint
Zero
- Optimistic mutations - data syncs to client, queries run locally, mutations apply instantly
- Server-only permissions -
serverWhere()returns true on client but enforces rules on server - Environment-aware mutations - same mutation code runs optimistically on client, fully on server
- Deferred side effects -
server.asyncTasks.push()runs analytics/notifications after transaction commits - Platform storage - IndexedDB on web, SQLite on native, memory for anonymous users
- Global query builder -
zql.post.where(…)without prop-drilling the Zero instance
Tamagui
- Dual animation drivers - CSS animations for static pages (lighter), spring physics for app pages (smoother)
- Theme-conditional styles -
$theme-darkand$theme-lightprops directly instyled() - Group selectors -
$group-button-hoverfor parent-scoped state without prop drilling - Client-side theme hydration - themes load from CSS variables, not JS bundle
Better Auth
- EdDSA JWT - Ed25519 keys for Zero sync compatibility
- Phone-first signup - generates temp email for phone-only users
- Database hooks - auto-creates public profile and user state on signup
- Invite system - whitelist + invite codes with use limits and expiration
Drizzle
- Public/private schema split - public tables sync via Zero, private stay server-only
- PostgreSQL triggers - denormalized counters maintained at database level
- Custom migration runner - creates Zero’s three databases automatically
SST / Uncloud
- Dual deployment - AWS via SST or any VPS via Uncloud with same codebase
- Zero replication config - Aurora with logical replication, WAL retention tuned for sync
- Rolling deploys - new instances spin up before old ones terminate
- Encrypted config sharing - team can share deployment credentials securely
CI/CD
- Commit-gated native builds -
native:prefix in commit triggers expensive iOS/Android builds - Expo fingerprint caching - JS-only changes skip native rebuild entirely
- Auto OTA deploys - hot updates deploy automatically after CI succeeds on main
Scripts
- Local overrides - your
./scripts/shadows built-in scripts - Parallel runner - color-coded output with CPU-aware concurrency
- AI-assisted sync -
tko syncloads prompt and spawns claude/cursor/aider
Environment
- Single source of truth -
package.jsonenv section generates server exports, CI config, and docker-compose - SST state integration - pull production env vars from deployed AWS resources
Edit this page on GitHub.