The entire working system for a wholesale meals provider.
Crately is a 3-in-1 bundle — a Subsequent.js admin panel + buyer
net + REST API, a Flutter buyer app, and a Flutter driver app. Single
provider, many restaurant prospects. Eight AI options ship enabled out of the
field.
Stay demo:
https://crately.devsnack.dev
Demo credentials (password is demopassword for
all):
-
Provider admin (net admin panel) —
[email protected] -
Restaurant proprietor (buyer net + buyer Flutter app) —
[email protected] -
Supply driver (driver Flutter app) —
[email protected]
Demo APKs:
https://drive.google.com/file/d/1so6tMscKR2dTHizTq2BpMnvIUooFdwQy/view?usp=sharing
(restaurant proprietor) ·
https://drive.google.com/file/d/1-IzbfN5J2wYdOijkC4jIkOodQ8RPwJ2n/view?usp=sharing
(supply driver)
Wholesale ordering, B2B-grade
-
Account-level pricing — per-customer SKU costs, tier reductions, customized
overrides - Credit score phrases — NET-15, NET-30, COD, pay as you go; per-account configurable
- Supply cutoff instances per zone, owner-approval threshold for big orders
- Standing orders — recurring weekly patterns, auto-submit with reminder
- Multi-location restaurant chains — chains decide a location at checkout
- High quality credit utilized to invoices (not refunds)
- FIFO/FEFO stock batches with expiry consciousness
5 AI hero options + 3 secondary
-
AI Order Predictor — pre-filled subsequent order from historical past +
seasonality -
AI Recipe → Order Converter — chef pastes a recipe, AI
returns priced elements -
AI High quality Audit — driver images analysed on supply;
flagged gadgets auto-credit -
AI Sensible Replenishment — nightly demand forecast turns into a
draft buy order -
AI Credit score Danger Monitor — flags accounts earlier than they go unhealthy
based mostly on AR + fee patterns -
AI Substitution Engine — picks 3 closest in-stock
alternate options priced for the client -
AI Demand Insights — weekly Sunday digest (prime movers,
anomalies, pricing alternatives) -
AI Description Generator — admin generates product copy
from a number of key phrases
Realtime supply monitoring
Driver streams GPS each 15s. Buyer’s order display screen exhibits a stay Google Map
with the driving force pin transferring — Pusher Channels for sub-second updates, polling
fallback for sleek degradation.
Stripe pay on-line
One-tap “Pay $X on-line” on open invoices. Stripe Checkout opens within the system
browser, returns to the Flutter app through deep hyperlink (crately://),
bill flips to PAID through webhook.
Actual KPI dashboard
At the moment’s orders + income, 7-day chart, AR getting older buckets, AI alerts, prime
accounts this month, current exercise feed — each part pulls from the stay
information, each card deep-links to its element display screen for quick triage.
FCM push notifications
Order standing transitions + Stripe fee success routinely push the best
individual. Tapping a notification deep-links into the app on the best display screen.
Industrial Harvest design system
Materials 3 token set with Deep Forest Inexperienced major + Sage Cream floor.
Change one CSS variable and one Dart variable to rebrand the entire app. Sora +
JetBrains Mono typography. Customized SVG mark + raster pipeline regenerates each
platform icon dimension with one command.
B2B credit score + AR getting older
Invoices issued per order, due-date computed from snapshotted credit score phrases,
5-bucket AR getting older dashboard, statements PDF (React-PDF), funds desk with
Stripe + guide reconciliation, high quality credit utilized to oldest open
bill.
Tech stack
| Layer | Tech |
|---|---|
| Internet framework | Subsequent.js 16 (App Router) + React 19 |
| Database | PostgreSQL through Drizzle ORM |
| Internet auth | Auth.js v5 (Credentials supplier) |
| Cellular auth | HS256 JWT, 30-day TTL |
| Background jobs | Inngest (13 cron + event-triggered capabilities) |
| Cellular | Flutter 3.x + Riverpod 3 + GoRouter + Dio |
| AI suppliers | OpenAI + Google Gemini (dual-keyed, server-only wrapper) |
| Funds | Stripe Checkout + webhook |
| Realtime | Pusher Channels + polling fallback |
| Push | Firebase Cloud Messaging |
| Resend + React E-mail templates | |
| Storage | UploadThing (with local-disk fallback) |
| Fee limiting | Upstash Redis (with in-memory fallback) |
| Maps | Google Maps SDK (iOS + Android + JS) |
| Charts | Recharts |
| React-PDF | |
| Styling | Tailwind v4 + Industrial Harvest M3 tokens |
What’s included
-
Full supply for all three apps (
crately_web/,
crately_app/,crately_driver/) - Drizzle schema + 5 migrations (40+ tables)
-
Industrial Harvest design system (Tailwind + Flutter
ThemeData) -
7 React E-mail templates (order affirmation, bill issued, high quality credit score,
password reset, deserted cart, pre-cutoff, standing-order pre-submit) - 2 React-PDF templates (bill, assertion)
-
SVG model mark + raster pipeline (one command regenerates each platform’s
icon sizes) -
Fast-start HTML + full purchaser documentation HTML + manufacturing deploy information +
screenshot information - 6 months e mail help
- Lifetime updates
Fast setup
- Extract zip,
cd crately_web && pnpm set up -
Create
crately_web/.env.nativewithDATABASE_URL,
AUTH_SECRET,NEXT_PUBLIC_APP_URL pnpm db:migrate && pnpm dev→http://localhost:3000- Register your first admin at
/register, then construct your catalog + buyer accounts through the admin panel -
In separate terminals:
cd crately_app && flutter run
--dart-define=API_BASE=http://localhost:3000
and identical forcrately_driver -
Add Stripe / Pusher / Firebase / Google Maps keys to
.env.nativeas you flip every characteristic on -
Deploy: push to GitHub, import into Vercel, set env vars, achieved —
vercel.jsonhandles the construct command
Necessities
- Node 20+
- pnpm 10+
- Flutter 3.x
- A Postgres URL (Neon free tier works for improvement and small manufacturing)
- A Vercel account (free tier works)
-
Apple Developer Program ($99/yr) + Google Play Console ($25 one-time) for
retailer distribution -
Non-compulsory accounts, all free tier adequate for early demo: Stripe (check),
Pusher Channels (100 conn / 200K msg/day), Firebase (Spark plan), Resend
(100/day), Upstash (10K cmds/day), Google Cloud (Maps $200/month free
credit score), OpenAI or Gemini (your spend)
Assist
E-mail:
[email protected]
WhatsApp:
+855 96 741 3911
Bundled 6 months per CodeCanyon normal. Customized improvement is hourly — identical
e mail.
Internet hosting (Vercel), database (Neon / your alternative), third-party accounts (Stripe,
Pusher, Firebase, Resend, and so on.) are the customer’s accountability. The bundle is
supply code, not a managed SaaS.
Changelog
1.0.0 · preliminary launch
- Three apps (Subsequent.js + 2 Flutter)
- 8 AI options wired in opposition to OpenAI + Gemini twin supplier
-
Stripe + Pusher + Firebase Cloud Messaging + Resend + UploadThing + Upstash
+ Google Maps — all elective, all gracefully no-op when unconfigured - Industrial Harvest design system + customized model mark
- Admin dashboard with actual KPIs, AR getting older, AI alerts, current exercise
- Static advertising and marketing touchdown (edge-cached) + 13 Inngest background jobs

