在手機上經營您的店鋪。接受 bKash、Nagad 以及貨到付款,零手續費。自動化 Steadfast 與 Pathao 快遞取件。
AI 翻譯
Run your shop from your phone. Accept bKash, Nagad, and Cash on Delivery with zero commission. Automated Steadfast and Pathao courier pickups.
電商TypeScript · HTMLGitHub @neiloy-neil上線中營運者未確認
試用過了嗎? 點一下就好,不需要登入。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證BizTrackBD: multi-tenant ecommerce SaaS for Bangladesh
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
A multi-tenant ecommerce platform built for how Bangladesh actually sells.
Cash on delivery, bKash and Nagad with TrxID checks, Pathao, Steadfast and RedX, fake-order protection, and a store builder that works on a phone.
Global store builders are made for card payments and next-day couriers. A shop in Dhaka lives differently:檢視完整 README ↗A multi-tenant ecommerce platform built for how Bangladesh actually sells. Cash on delivery, bKash and Nagad with TrxID checks, Pathao, Steadfast and RedX, fake-order protection, and a store builder that works on a phone.
Features · Screenshots · Templates · Architecture · Run it · Deploy · Docs
Global store builders are made for card payments and next-day couriers. A shop in Dhaka lives differently:
BizTrackBD starts from those facts. Everything else follows.
Every template is a complete store with its own look, products in English and Bangla, and generated illustrations (no stock-photo licences). Demo stores refuse real orders and rebuild themselves every night.
Four Next.js apps share one codebase and one Postgres database. Every store is a tenant; Postgres itself enforces that one store can never read another's rows.
flowchart LR
V[Visitor<br/>store.biztrack.bd] --> S[Storefront]
O[Owner and staff<br/>admin.biztrack.bd] --> A[Store admin]
P[Platform team<br/>platform.biztrack.bd] --> PL[Platform admin]
N[Prospect<br/>biztrack.bd] --> M[Marketing and signup]
S & A & M --> C[(packages/core<br/>orders, couriers, builder, billing)]
PL --> C
C -->|biztrack_app role<br/>row-level security| DB[(PostgreSQL<br/>Supabase)]
C -->|biztrack_platform role| DB
C --> ST[(Supabase Storage<br/>store media)]
CR[Supabase pg_cron] -->|signed requests| A & PL
C --> X[Steadfast · Pathao · RedX<br/>Brevo · sms.net.bd · Meta · GA4]
| Layer | What it does |
|---|---|
| Tenancy | Every table carries tenantId. Row-level security policies use current_tenant(), set per transaction by withTenant(). The app connects as biztrack_app (no BYPASSRLS); only the platform role sees across stores. An audit script (pnpm audit:rls) proves it. |
| Routing | proxy.ts maps a hostname to a store: *.biztrack.bd subdomains and merchants' own domains. Reserved names cannot be claimed. |
| Order safety | One order service: prices computed server-side, atomic stock reservation, idempotency keys so a double tap makes one order, and a state machine for every status change. |
| Secrets | Each store's courier and payment keys are encrypted with AES-256-GCM, bound to the store and provider, and never sent back to a browser. |
| Builder | Pages are validated JSON (sections), drawn by the same React components on the live store and in the editor's preview, so they cannot drift. Drafts, versions and conflict detection are server-side. |
| Background work | Supabase pg_cron calls protected cron routes: abandoned carts, courier status sync, domain checks, loyalty expiry, billing sweeps, demo-store refresh. |
| Backups | A nightly GitHub Actions job dumps the database, encrypts it, and stores it in Supabase Storage; a restore drill verifies it. |
| App framework | Next.js 16 (App Router, server actions, Turbopack), React 19 |
| Language | TypeScript, strict |
| Database | PostgreSQL 16/17 on Supabase, Prisma 7 with the pg driver adapter, hand-written RLS migrations |
| Auth | Supabase Auth: email codes, passwords, and TOTP two-step for the platform team |
| Monorepo | pnpm workspaces + Turborepo |
| Messaging | Brevo (email), sms.net.bd and Greenweb (SMS) |
| Hosting | Vercel (four projects, Git integration), Supabase, DNS on Vercel |
| Tests | Vitest, Playwright, axe-core accessibility checks |
Needs Node 22, pnpm 10 and a PostgreSQL 16 database.
pnpm install
cp .env.example .env.local # point the database URLs at your Postgres
pnpm db:migrate # schema and row-level security (run as the owner role)
psql "$DIRECT_URL" -v app_pw="'choose-one'" -v platform_pw="'choose-another'" -f scripts/db-roles.sql
pnpm db:seed # a demo store: rongdhonu
node tools/dev-local.mjs # all four apps against the local database
| App | Address | What it is |
|---|---|---|
| Storefront | http://rongdhonu.localhost:3000 | The customer-facing store |
| Store admin | http://localhost:3001 | Orders, products, customers, design (DEV_AUTH=1 signs in a seeded owner) |
| Marketing | http://localhost:3002 | Home, pricing, templates, signup |
| Platform admin | http://localhost:3003 | Plans, payments, stores, audit |
Build the six template demo stores locally, then take their previews:
pnpm --filter @biztrackbd/core exec tsx scripts/demo-stores.ts all
node tools/demo-previews.mjs
pnpm typecheck && pnpm lint # strict types, lint
pnpm test # core, database and media suites (650+ tests)
pnpm build && pnpm check:size # production builds and the size budget
pnpm verify # all of the above plus a dependency audit
pnpm e2e # Playwright at 390 px and 1440 px
pnpm audit:rls # proves tenant isolation on a live database
Four GitHub Actions workflows run the same gates: CI on every push and pull request, E2E on demand, Deploy (database migrations, gated by a repository variable), and a nightly encrypted Backup.
The reference deployment is four Vercel projects (marketing, admin, platform, storefront) in front of one Supabase project, with the domain's DNS on Vercel so store subdomains get a wildcard certificate.
biztrack_app and biztrack_platform logins.node tools/make-vercel-env.mjs then node tools/vercel-load-env.mjs --yes.node tools/supabase-schedule.mjs --admin <url> --platform <url> --yes.pnpm --filter @biztrackbd/core exec tsx scripts/demo-stores.ts all --target supabase.The full, checked walk-through (DNS records, email templates, free-plan limits, what to rotate) is in docs/35-production-setup-biztrack-bd.md.
apps/
storefront/ customer store, checkout, tracking, preview endpoint for the builder
admin/ store admin: orders, catalog, couriers, finance, growth, page builder
platform/ super admin: tenants, plans, payments, audit
marketing/ home, pricing, templates, signup wizard
packages/
core/ all business logic: orders, couriers, billing, builder, loyalty, demo stores
db/ Prisma schema, migrations, RLS, tenant-scoped client, test fixtures
media/ image pipeline (crop, WebP, local or Supabase storage)
ui/ shared page blocks: header, section, KPI row, drawer, save bar, toasts
tools/ deploy, scheduling, secrets, demo previews, UX capture and audits
docs/ 40 specs, plans and runbooks
design/canvas/ the original design canvas (88 artboards) the UI is measured against
.github/ CI, E2E, deploy and backup workflows
The decisions and the reasoning live in docs/. A good order to read them:
| Doc | What it covers |
|---|---|
| 01 Architecture and roadmap | Product decisions, multi-tenant architecture, phased roadmap |
| 05 Decisions log | Confirmed decisions and the open questions |
| 08 Database schema and RLS | The schema, composite indexes, and every RLS policy |
| 27 Order state machine | Order creation, stock reservation, idempotency |
| 32 Security review | Threats considered and how each is handled |
02 UI/UX plan · 06 Theme builder spec · 07 Feature specification · 09 Design canvas guide · 29 Screen index · 36 UX rebuild decisions · 37 UX rebuild plan · 38 Template demo stores · 39 Editable store pages · 40 Store admin screens
10 Courier and payment protocols · 12 Fraud and abuse policy · 26 Loyalty and referrals · 28 COD reconciliation and accounting
04 Integrations and secrets · 13 Edge routing and SSL · 17 Environment variables · 19 Disaster recovery and backups · 34 Release hardening and free-tier plan · 35 Production setup
15 Testing and QA strategy · 33 Codebase against docs · checkup/ (audit reports and the UX gap report)
BizTrackBD is in pilot: the four apps are deployed, the core selling and operations flows are built and tested, and the interface is being rebuilt screen by screen to match the design canvas. Done so far: the admin shell, the page builder, the marketing site, and the first store-admin screens. Next: products, the dashboard, and the platform admin screens.
Some specs in docs/ describe later phases (a public REST API, an app marketplace, a WhatsApp chatbot, an AI copywriter). They are plans, not shipped features.
No open-source licence has been chosen yet. The code is public so it can be read and reviewed; please ask before reusing it.