GeezerVison is showing github.com — tavola-romagna/ANALYSIS.md at main · ForliLabs/tavola-romagna
282 lines (231 loc) · 24.2 KB File metadata and controls282 lines (231 loc) · 24.2 KB Copy raw file Download raw file OutlineEdit and raw actions 📊 Tavola Romagna — Repository Analysis & Next-Gen Feature Planning
Generated: July 2025
Repository: tavola-romagna/
Status: Early MVP — pre-launch prototype
Part 1: Core Feature Extraction
Tavola Romagna is a hyperlocal food marketplace web application that connects Romagna-region agricultural producers (farms, bakeries, cheese makers, wine producers, beekeepers) directly with consumers in the Forlì area — enabling curated weekly subscription boxes, single-product orders, and local delivery of artisanal food products.
| # |
Feature |
Description |
Status |
| 1 |
Product Catalog |
Browsable catalog of 18 products across 6 categories (wine, bread/piadina, cheese, fruits/vegetables, oil, honey) with filtering by category and producer |
✅ Built |
| 2 |
Producer Profiles |
Directory of 6 local producers with stories, certifications (Bio, DOP, IGP, De.Co), origin details, and linked products |
✅ Built |
| 3 |
Subscription Boxes (Cassette) |
3 curated box tiers — La Cassetta Romagnola (€29/wk), Cassetta Studente (€15/wk), Wine Club (€39/mo) — with contents listing |
✅ Built |
| 4 |
Shopping Cart |
Client-side cart with quantity controls, subtotal/delivery/total calculation |
✅ Built (in-memory, no persistence) |
| 5 |
Product Purchase Widget |
Quantity selector with estimated total and add-to-cart button on product detail pages |
✅ Built (UI only) |
| 6 |
REST API |
API routes for listing/filtering products (GET /api/products) and creating products (POST /api/products), listing producers (GET /api/producers) |
✅ Built |
| 7 |
Responsive Italian UI |
Fully Italian-language interface with mobile-responsive navigation, emerald/stone color palette, and Geist typography |
✅ Built |
| Layer |
Technology |
Version/Details |
| Framework |
Next.js (App Router) |
16.2.6 (bleeding-edge) |
| Language |
TypeScript |
^5 (strict mode) |
| UI |
React |
19.2.4 |
| Styling |
Tailwind CSS v4 |
With @tailwindcss/postcss, clsx, tailwind-merge, class-variance-authority |
| Icons |
Lucide React |
^1.14.0 |
| ORM |
Prisma |
^7.8.0 (schema defined, SQLite provider, not yet active) |
| Data Layer |
In-Memory Store |
Custom InMemoryStore<T> class with CRUD + filter + seed |
| Build Tool |
Turbopack |
Configured in next.config.ts |
| Linting |
ESLint 9 |
With eslint-config-next (core-web-vitals + typescript) |
| Fonts |
Geist + Geist Mono |
Via next/font/google |
Architecture Patterns:
- App Router with server components by default,
"use client" only for interactive widgets (cart, navbar, product purchase)
- Static data seeded into singleton in-memory stores (global
__tavolaStores__ pattern for HMR safety)
- Presentational component library (hero, features, pricing, dashboard, market-image) shared from a base template
- No authentication, no payment integration, no persistent database in use yet
| Metric |
Value |
| TypeScript/TSX files |
21 |
| Total lines of code |
~2,300 |
| Components |
8 |
| Pages/Routes |
8 (home, products, product detail, producers, producer detail, boxes, cart, + 2 API routes) |
| Product seed data |
18 products |
| Producer seed data |
6 producers |
| Box types |
3 subscription tiers |
- Primary — Forlì-area residents who value food quality, traceability, and supporting local producers (~15,000–25,000 households)
- Secondary — University students (6,000+ at Forlì campus) seeking affordable, quality food alternatives to supermarkets
- Tertiary — Local producers (farms, bakeries, cheese makers) needing a digital sales channel
- Future — Tourists & gifters wanting to ship Romagna products nationally/internationally
- Hyperlocal identity — purpose-built for Romagna, not a generic marketplace; every product, story, and certification is rooted in the territory
- De.Co (Denominazione Comunale) integration — leverages Forlì's municipal quality certification as a co-branding asset
- Subscription box model — recurring revenue via weekly/monthly curated boxes ("La Cassetta Romagnola") — not just a catalog
- Producer storytelling — each producer has origin stories, heritage context, and farm-to-table narrative (not commodity listings)
- Student-specific pricing — dedicated €15 student box tier targeting an underserved segment
- Modern tech stack — Next.js 16 + React 19 + Tailwind v4 positions this for long-term maintainability vs. legacy e-commerce platforms
Part 2: Market Potential Analysis
| Level |
Market Definition |
Estimated Size |
| TAM |
Italian local/organic food e-commerce |
€4.7B and growing 8–12% annually |
| SAM |
Emilia-Romagna local food delivery & e-commerce |
€500M+ |
| SOM Year 1 |
500 Forlì households × €80/month average basket |
€480K GMV → €72K revenue (15% commission) |
| SOM Year 2 |
2,000 households + national shipping |
€2M GMV → €300K revenue |
| Competitor |
Market Position |
Strength |
Weakness |
Tavola Romagna Advantage |
| Cortilia |
Italian farm-to-table leader (Milan/North) |
Brand recognition, logistics infrastructure, VC-funded |
Not present in Romagna; more industrial scale; higher prices |
Hyperlocal Romagna identity; artisan-only producers; lower price points |
| Campagna Amica (Coldiretti) |
National farmer directory |
Institutional trust; large farmer network |
Directory only — no e-commerce, no delivery |
Full transactional marketplace with delivery and subscriptions |
| Too Good To Go |
Anti-food-waste app |
Strong brand; user base; surplus model |
Only surplus/rescue items; no curated marketplace |
Full product range + dedicated food rescue module (future) |
| Conad/Coop Online |
Supermarket delivery |
Massive distribution; convenience |
Zero local/artisan differentiation; no producer stories |
Curated local products; traceability; community connection |
| Local Saturday markets |
Traditional direct sales |
Trust; authenticity; face-to-face |
Weather-dependent; cash-only; limited hours (Saturday mornings) |
Available 24/7; delivery; digital payments; rain or shine |
| Metric |
Status |
| Git commits |
Initial commit (no history yet — freshly scaffolded) |
| Stars/Forks |
N/A — private/local repository |
| Contributors |
Solo founder |
| Live deployment |
None — pre-launch prototype |
| Real producers onboarded |
0 (seed data represents target producers) |
| Real users |
0 |
- No persistent data layer — cart state is lost on refresh; no user accounts; no order history
- No payment processing — cannot complete a purchase (no Stripe, no checkout flow)
- No authentication — producers cannot manage their own listings; no user accounts
- No real delivery logistics — no order management, routing, or scheduling system
- Chicken-and-egg problem — needs producers to attract consumers and vice versa
- Food commerce regulations — Italian food e-commerce requires specific legal compliance (HACCP, labeling)
- Producer tech literacy — many small Romagna producers may struggle with digital onboarding
- Student market — 6,000+ university students represent an immediately addressable, price-sensitive, digitally native segment
- Corporate gifting — Christmas/holiday Romagna food boxes for B2B corporate gifts (high-margin seasonal revenue)
- National wine/oil shipping — non-perishable products can ship anywhere in Italy, unlocking a much larger market
- Cross-sell with tourism — partnership with Visit Romagna for tourist food boxes and "take Romagna home" experiences
- WhatsApp ordering — low-tech ordering channel for non-digital-native customers and producers
- De.Co municipal partnership — official collaboration with Forlì's municipal certification program for credibility and promotion
Part 3: Next-Gen Feature Proposals
| # |
Feature Name |
Description |
Why Implement |
Complexity |
Impact |
| 1 |
Stripe Connect Checkout |
End-to-end payment flow with Stripe Connect enabling marketplace payouts directly to producer bank accounts, supporting card payments, Apple Pay, and installment options. |
Without payments, no revenue is possible. This is the single most critical missing piece to move from prototype to business. |
High |
10 |
| 2 |
User Authentication & Accounts |
NextAuth.js-based auth system with email/password and Google OAuth, supporting consumer accounts (order history, saved addresses, preferences) and producer accounts (listing management, earnings dashboard). |
Required for personalization, order tracking, producer self-service, and repeat purchases — foundational for all other features. |
High |
9 |
| 3 |
Order Management System |
Complete order lifecycle: placement → producer notification → preparation → pickup/delivery → completion, with status tracking, email/WhatsApp notifications, and a producer dashboard for incoming orders. |
Connects the purchase flow to real-world fulfillment; without this, even with payments, orders cannot be managed or tracked. |
High |
9 |
| 4 |
Persistent Database Migration |
Migrate from in-memory stores to Prisma + PostgreSQL (or SQLite for MVP) with proper schemas for users, orders, products, producers, cart items, subscriptions, and reviews. |
In-memory data is lost on every restart. A real database is prerequisite for all stateful features (auth, orders, cart persistence, analytics). |
Medium |
9 |
| 5 |
Subscription & Recurring Orders |
Automated weekly/monthly box subscriptions with Stripe recurring billing, delivery scheduling, box customization preferences, skip/pause functionality, and renewal reminders. |
Subscription boxes are the core value proposition and revenue driver. Recurring revenue is far more valuable than one-time sales for a marketplace. |
High |
8 |
| 6 |
Producer Self-Service Portal |
Authenticated dashboard where producers can add/edit products, set availability and seasonal pricing, upload photos, view orders, track earnings, manage delivery windows, and update their profile story. |
Reduces operational overhead from manual producer management; enables scaling beyond 6 producers; gives producers ownership and engagement. |
Medium |
8 |
| 7 |
Delivery Zone & Logistics Engine |
Address-based delivery zone validation (Forlì + surrounding comuni), delivery time slot selection, route optimization for Saturday deliveries, pickup point management, and national shipping integration for non-perishables. |
Logistics is the operational backbone; clear delivery zones set customer expectations and enable feasible fulfillment without overcommitting. |
High |
7 |
| 8 |
Product Reviews & Ratings |
Verified-purchase review system with star ratings, text reviews, photo uploads, and producer response capability, aggregated into product and producer scores. |
Social proof drives conversion in food marketplaces; reviews build trust in producer quality and differentiate from anonymous supermarket alternatives. |
Medium |
7 |
| 9 |
Seasonal Calendar & Availability |
Dynamic product availability tied to harvest seasons, with a visual "what's fresh this week" calendar, automated seasonal product rotation, and out-of-season pre-order/notification system. |
Romagna's food identity is deeply seasonal; showing what's genuinely available now builds authenticity and reduces customer frustration from ordering unavailable items. |
Low |
7 |
| 10 |
Food Rescue & Surplus Module |
Producers list surplus, imperfect, or near-expiry products at 40–60% discount with "last chance" alerts and countdown timers, including a partnership API for Too Good To Go integration. |
Addresses food waste (SDG12 alignment), qualifies for EU green funding, opens an additional revenue stream, and appeals to price-sensitive students. |
Medium |
6 |
Scoring Methodology:
- User Impact (40%): Does it solve a real pain point or enable a core workflow?
- Market Differentiation (30%): Does it create competitive moat?
- Adoption Potential (20%): Will it attract new users or expand use cases?
- Technical Leverage (10%): Does it enable future features?
Part 4: Implementation Roadmap
Feature 1: Stripe Connect Checkout
- Effort Estimate: 3–4 person-weeks
- Prerequisites: User accounts (can start with guest checkout), product data in persistent DB
- Implementation Phases:
- Stripe Connect onboarding flow — Producer account linking, KYC, payout configuration — Week 1
- Checkout API & cart persistence — Server-side cart validation, Stripe PaymentIntent creation, order confirmation — Week 2
- Payment UI & webhook handling — Embedded checkout form, payment status webhooks, receipt emails, error handling — Week 3–4
- Success Metrics: First successful payment processed; payment completion rate > 85%; producer payout within 7 days
- Risks & Mitigations: Stripe Connect onboarding complexity for non-tech producers → provide guided onboarding wizard with Italian instructions; Italian VAT/fiscal compliance → consult commercialista for invoicing requirements
Feature 2: User Authentication & Accounts
- Effort Estimate: 2–3 person-weeks
- Prerequisites: Persistent database
- Implementation Phases:
- Auth infrastructure — NextAuth.js setup with email + Google providers, session management, middleware — Week 1
- Consumer profiles — Registration, login, profile page, saved addresses, order history view — Week 2
- Producer auth & roles — Role-based access, producer registration flow, admin approval — Week 3
- Success Metrics: Registration-to-first-order conversion > 30%; < 5% auth error rate; producer onboarding < 10 minutes
- Risks & Mitigations: GDPR compliance for Italian users → implement data export/deletion; cookie consent banner; privacy policy in Italian
Feature 3: Order Management System
- Effort Estimate: 3–4 person-weeks
- Prerequisites: Authentication, payments, persistent database
- Implementation Phases:
- Order data model & creation — Order schema, status machine (placed → confirmed → preparing → ready → delivered), API routes — Week 1
- Producer notification & dashboard — Email/WhatsApp alerts for new orders, producer order list with accept/reject/fulfill actions — Week 2–3
- Consumer order tracking — Order history page, real-time status updates, delivery confirmation, reorder functionality — Week 4
- Success Metrics: Order-to-delivery < 48 hours; producer order acceptance rate > 90%; customer reorder rate > 40%
- Risks & Mitigations: Producer response time → set 4-hour confirmation window with auto-cancel; notification fatigue → daily digest option
Feature 4: Persistent Database Migration
- Effort Estimate: 1–2 person-weeks
- Prerequisites: None (foundational)
- Implementation Phases:
- Schema design — Prisma schema for users, producers, products, orders, cart_items, subscriptions, reviews — Week 1
- Migration & seeding — Migrate existing in-memory seed data, create seed scripts, update all data access to Prisma queries — Week 1–2
- Infrastructure — PostgreSQL setup (Railway/Supabase/Neon), connection pooling, environment configuration — Week 2
- Success Metrics: Zero data loss on restart; query response < 100ms for catalog operations; successful migration of all 18 products + 6 producers
- Risks & Mitigations: Schema evolution pain → use Prisma migrations from day one; hosting cost → start with free-tier Neon or SQLite for MVP
Feature 5: Subscription & Recurring Orders
- Effort Estimate: 3–4 person-weeks
- Prerequisites: Stripe Connect, authentication, order management
- Implementation Phases:
- Subscription data model — Plans, billing cycles, preferences (allergies, dislikes), skip/pause states — Week 1
- Stripe Billing integration — Recurring payments, proration, failed payment retry, cancellation — Week 2
- Box curation & fulfillment — Weekly box composition tool, producer allocation, delivery scheduling, renewal notifications — Week 3–4
- Success Metrics: Subscription retention > 70% at 3 months; average subscription lifetime > 6 months; box satisfaction rating > 4.2/5
- Risks & Mitigations: Churn from box dissatisfaction → allow customization preferences; seasonal variety fatigue → rotate surprise items and seasonal specials
Feature 6: Producer Self-Service Portal
- Effort Estimate: 2–3 person-weeks
- Prerequisites: Authentication (producer roles), persistent database
- Implementation Phases:
- Dashboard shell & product CRUD — Protected
/dashboard/producer routes, product add/edit/delete, photo upload — Week 1
- Inventory & availability — Stock levels, seasonal toggles, pricing management, delivery window configuration — Week 2
- Earnings & analytics — Sales reports, payout history, order analytics, customer feedback view — Week 3
- Success Metrics: Producer self-service rate > 80% (vs. admin-assisted); average product listing time < 5 minutes; producer satisfaction survey > 4/5
- Risks & Mitigations: Producer tech barriers → provide video tutorials in Italian; WhatsApp-based fallback for product updates
Feature 7: Delivery Zone & Logistics Engine
- Effort Estimate: 3–4 person-weeks
- Prerequisites: Order management, persistent database
- Implementation Phases:
- Zone definition & validation — GeoJSON delivery zones for Forlì area, address autocomplete (Google Places), zone-based pricing — Week 1
- Time slot management — Available delivery windows per zone, capacity limits, Saturday morning routes — Week 2
- Pickup points & national shipping — Pickup location directory, Poste Italiane / BRT shipping integration for non-perishables — Week 3–4
- Success Metrics: Delivery zone coverage > 90% of Forlì urban area; on-time delivery rate > 95%; pickup point utilization > 60%
- Risks & Mitigations: Address validation complexity in Italian addresses → use Google Places API with Italian locale; cold chain for perishables → start with pickup points only for dairy/fresh items
Feature 8: Product Reviews & Ratings
- Effort Estimate: 1–2 person-weeks
- Prerequisites: Authentication, order management (for verified purchase badge)
- Implementation Phases:
- Review data model & submission — Schema, star rating + text + photo upload, verified purchase linking — Week 1
- Display & moderation — Review aggregation on product/producer pages, producer response capability, basic spam filtering — Week 2
- Success Metrics: Review submission rate > 15% of completed orders; average rating > 4.0/5; producer response rate > 50%
- Risks & Mitigations: Fake reviews → restrict to verified purchases; negative review management → give producers response capability before public display
Feature 9: Seasonal Calendar & Availability
- Effort Estimate: 1 person-week
- Prerequisites: Persistent database (for availability flags)
- Implementation Phases:
- Availability model — Month-based availability ranges per product, seasonal badges, "in season now" filtering — Days 1–3
- Calendar UI & notifications — Visual seasonal calendar component, "notify me when available" email signup — Days 4–5
- Homepage integration — "Fresh this week" dynamic section on homepage, seasonal box content rotation — Days 6–7
- Success Metrics: Reduction in orders for unavailable items to < 2%; seasonal page engagement > 3 min avg session; notification signup > 500 emails in first season
- Risks & Mitigations: Accuracy of seasonal data → let producers manage their own availability windows; over-notification → limit to 1 seasonal alert per week
Feature 10: Food Rescue & Surplus Module
- Effort Estimate: 2 person-weeks
- Prerequisites: Producer portal, order management
- Implementation Phases:
- Surplus listing flow — Quick-list interface for producers to mark items as surplus with discount %, expiry countdown, quantity limits — Week 1
- Consumer discovery & alerts — "Last chance" section on homepage, push/email notifications for subscribers, countdown timers — Week 2
- Success Metrics: > 10% of listed products sold via rescue channel; food waste reduction measurable per producer; student segment adoption > 25%
- Risks & Mitigations: Quality perception issues with "rescue" branding → frame as "perfectly good, surplus harvest" not "seconds"; low supply → make it an optional, opportunistic feature
Part 5: Executive Summary
┌─────────────────────────────────────────────────────────┐
│ PROJECT VIABILITY SCORECARD │
├─────────────────────────────────────────────────────────┤
│ Current Market Fit: [6/10] ██████░░░░ │
│ Growth Potential: [9/10] █████████░ │
│ Technical Foundation: [7/10] ███████░░░ │
│ Community Health: [2/10] ██░░░░░░░░ │
│ Competitive Position: [7/10] ███████░░░ │
├─────────────────────────────────────────────────────────┤
│ OVERALL SCORE: [6/10] ██████░░░░ │
└─────────────────────────────────────────────────────────┘
Score Justification:
- Current Market Fit (6): The problem is real and well-documented — Romagna produces world-class food with virtually no digital direct-to-consumer channel. However, the product is a UI prototype with no transactional capability yet.
- Growth Potential (9): The TAM (€4.7B Italian local food e-commerce) is massive and growing. The hyperlocal-first strategy is sound: prove in Forlì, expand to Romagna corridor, then nationally with shippable products. Subscription boxes provide predictable recurring revenue.
- Technical Foundation (7): Bleeding-edge stack (Next.js 16, React 19, Tailwind v4) is modern and maintainable. Clean component architecture, proper TypeScript typing, and sensible data modeling. Prisma is integrated but not yet active — the migration path is clear.
- Community Health (2): Solo founder, no commits, no external contributors, no deployment, no users. This is expected for a pre-launch idea but represents the biggest risk factor.
- Competitive Position (7): No direct competitor in Romagna. Cortilia is the nearest analog but operates in Milan/North Italy. The De.Co municipal certification partnership and hyperlocal identity create genuine differentiation that national platforms cannot replicate.
Bottom Line: Tavola Romagna addresses a validated market gap with strong regional identity and clear differentiation, but it is currently a well-designed UI prototype — not a business. The single most important next step is to implement the persistent database + Stripe Connect checkout pipeline (Features 4 → 1), then onboard 5 real producers with real products to validate demand with actual transactions before building anything else. The subscription box model is the revenue engine — get one paying subscriber before scaling the platform.
|