How mysthade/smartgarden works
Smart Garden is a garden-planning and gardening diary product. The main workflow is account access, organizing gardens into zones, placing and managing plants, recording care and outcomes, then reviewing dashboard and analytics summaries. The web app also documents a visual zone editor with autosave, drag-and-drop, and undo/redo. The README establishes the product capabilities; sampled source confirms selected controller-to-service calls and auth/storage behavior, but not all service-to-database wiring, so uncertain links are omitted.
Main entry points: api.ts API access · prisma PostgreSQL data · (app) Web experience · (auth) Sign-in UI
Components 21
Web client
- Web experience
apps/web/src/app/(app) - API access
apps/web/src/lib/api.ts - Sign-in UI
apps/web/src/app/(auth) - Zone editor
apps/web/src/features/zone-editor - Garden map
apps/web/src/features/garden-map
Garden planning
- Gardens and zones
apps/api/src/gardens - Plant catalog
apps/api/src/plants
Garden records
- Journal
apps/api/src/journal - Harvests
apps/api/src/harvests - Plant problems
apps/api/src/problems - Care activities
apps/api/src/care-activities - Tasks
apps/api/src/tasks - Photo attachments
apps/api/src/attachments - Dashboard
apps/api/src/dashboard - Analytics
apps/api/src/analytics
API and integrations
- Authentication
apps/api/src/auth - Profile
apps/api/src/profile - PostgreSQL data
apps/api/src/prisma - S3-compatible storage
apps/api/src/storage/storage.service.ts - Email delivery
apps/api/src/mail
Other components
- Gardener
Connections 29
- Gardener → Web experience: uses
- Gardener → Sign-in UI: signs in
- Web experience → API access: requests data
- Sign-in UI → API access: authenticates
- API access → Authentication: calls API
- API access → Profile: calls API
- API access → Gardens and zones: calls API
- API access → Plant catalog: calls API
- API access → Journal: calls API
- API access → Harvests: calls API
- API access → Plant problems: calls API
- API access → Care activities: calls API
- API access → Tasks: calls API
- API access → Photo attachments: calls API
- API access → Dashboard: calls API
- API access → Analytics: calls API
- Zone editor → API access: saves layout
- Garden map → API access: saves map
- Authentication → Email delivery: sends email
- Photo attachments → S3-compatible storage: stores files
- Gardens and zones → PostgreSQL data: persists data
- Plant catalog → PostgreSQL data: persists data
- Journal → PostgreSQL data: persists data
- Harvests → PostgreSQL data: persists data
- Plant problems → PostgreSQL data: persists data
- Care activities → PostgreSQL data: persists data
- Tasks → PostgreSQL data: persists data
- Dashboard → PostgreSQL data: reads summaries
- Analytics → PostgreSQL data: reads metrics