How t7451/unifyone-netlify-supabase works
UnifyOne is a gig-worker and 1099 finance product with a second, multi-tenant commerce capability. The principal workflow is a worker entering the React app, viewing unified earnings and mileage, and managing tax and money tasks; commerce users also manage stores, products, orders, and customers. The Express/tRPC backend, domain services, and PostgreSQL schema provide the main internal layers, with auth, payments, AI, and MCP integrations alongside them. Some feature links are documented in the README but their implementation was not sampled, so those edges cite the README.
Main entry points: routes.tsx App routes · MoneyManager.tsx Money Manager · schema.ts PostgreSQL schema · server.ts API server
Components 20
User application
- App routes
client/src/app/routes.tsx - Dashboard shell
client/src/components/DashboardLayout.tsx
Gig finance
- GigIQ
client/src/pages/GigHome.tsx - Tax tools
client/src/pages/tools/QuarterlyTaxEstimator.tsx - Money Manager
client/src/pages/MoneyManager.tsx - Financial rules
server/lib/ruleEngine.ts
Commerce platform
- Commerce dashboard
client/src/pages/Dashboard/index.tsx - Products and themes
client/src/pages/Products/index.tsx - Orders and checkout
client/src/pages/Orders/index.tsx - Customers
client/src/pages/Customers.tsx
API and data
- API server
netlify/functions/server.ts - Authentication
server/_core/customAuthRoutes.ts - Domain services
server/db/gigWorker.ts - PostgreSQL schema
drizzle/schema.ts - Payment webhooks
server/payments/stripe/webhooks.ts
Integrations and content
- MCP interface
netlify/functions/mcp.mts - Kai assistant
server/routers/ai/ai.service.ts - Marketing site
apps/unifyone/src/pages/api/waitlist.ts
Other components
- Gig worker
- Commerce user
Connections 22
- Gig worker → App routes: uses app
- Commerce user → App routes: uses app
- App routes → Dashboard shell: renders
client/src/app/routes.tsx - App routes → GigIQ: routes to
- App routes → Tax tools: routes to
- App routes → Money Manager: routes to
- App routes → Commerce dashboard: routes to
client/src/app/routes.tsx - App routes → Products and themes: routes to
client/src/app/routes.tsx - App routes → Orders and checkout: routes to
client/src/app/routes.tsx - App routes → Customers: routes to
client/src/app/routes.tsx - GigIQ → Money Manager: unifies earnings
- GigIQ → Tax tools: supports tax planning
- Money Manager → Financial rules: evaluates rules
- API server → PostgreSQL schema: uses data model
- API server → Authentication: dispatches routes
- Authentication → PostgreSQL schema: reads and writes
server/_core/customAuthRoutes.ts - Financial rules → PostgreSQL schema: reads and writes
server/lib/ruleEngine.ts - Financial rules → Money Manager: credits envelopes
server/lib/ruleEngine.ts - Payment webhooks → PostgreSQL schema: updates records
server/payments/stripe/webhooks.ts - API server → MCP interface: serves endpoint
- MCP interface → Commerce dashboard: exposes commerce data
- Kai assistant → Gig worker: answers questions