Svelte Commerce
A standalone open-source storefront built with SvelteKit, headless across 26 commerce backends. MIT licensed.
Bilingual (Arabic/English) inventory & finance system for merchants — one transactional posting engine keeps stock, landed cost, ledgers & profit in sync. Next.js 16 · React 19 · TypeScript · Prisma ·
Translation pending
CommerceTypeScript · CSSGitHub @humidalex1-gifOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Bilingual (Arabic/English) inventory & finance system for merchants — one transactional posting engine keeps stock, landed cost, ledgers & profit in sync. Next.js 16 · React 19 · TypeScript · Prisma · NextAuth. Salla & Fast Hub (3PL) integrations.
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗A bilingual (Arabic / English) inventory and financial management system for merchants, where every transaction updates stock, landed cost, ledgers, and profit in one atomic operation.
Built with Next.js 16 (App Router), React 19, TypeScript, Prisma, and NextAuth. Arabic-first and fully right-to-left, with English as a second locale.
Small and mid-size merchants usually run inventory in one tool and finances in another — often spreadsheets — so stock levels, landed costs, cash balances, and profit never reconcile. A sale is recorded in one place, the cost of what was sold in another, and the "real" profit is a guess at month-end.
Tijarah Smart removes the gap: a sale, purchase, stock movement, expense, or payment is posted once, through a single transactional service that updates inventory, account balances, cost, and profit together — and every number stays traceable to the transaction behind it. There are no disconnected pages and no placeholder dashboards.
It's built for real retail / e-commerce operations in the Arabic-speaking market, including Salla and 3PL (Fast Hub / Omniful) integration.
messages/ar.json, messages/en.json).AUTH_SECRET).A modular monolith: a Next.js App Router front end over a set of server-side services, with one transactional posting engine as the single writer of financial state.
flowchart TD
subgraph Client["Browser — Next.js App Router (AR / RTL · EN)"]
UI["React 19 Server + Client Components<br/>next-intl i18n"]
end
subgraph Server["Next.js server"]
SA["Server Actions / Route Handlers<br/>Zod validation"]
AUTH["NextAuth v5<br/>membership re-checked per mutation"]
SVC["Posting engine — src/services/<br/>one atomic transaction + audit log"]
CRYPTO["src/lib/crypto.ts<br/>encrypts stored credentials"]
end
DB[("Prisma 7<br/>SQLite · PostgreSQL-portable")]
SALLA["Salla OAuth API"]
FASTHUB["Fast Hub / Omniful 3PL"]
UI -->|request| SA
SA --> AUTH
SA --> SVC
SVC -->|"inventory · ledgers · cost · profit<br/>(single transaction)"| DB
SVC --> CRYPTO
CRYPTO --> DB
SVC <-->|sync orders / costs| SALLA
SVC <-->|fulfilment| FASTHUB
Design decisions that matter (see docs/decisions.md):
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router), React 19 |
| Language | TypeScript |
| Styling | Tailwind CSS 4 |
| Data | Prisma 7 + better-sqlite3 (PostgreSQL-portable schema) |
| Auth | NextAuth v5 |
| i18n | next-intl (Arabic RTL + English) |
| Validation | Zod |
| Exports | ExcelJS |
| Tests | Vitest + Testing Library |
| Deploy | Caddy (auto-TLS) + systemd |
npm install
cp .env.example .env # then set AUTH_SECRET: openssl rand -base64 48
npm run db:push # apply the Prisma schema to the database
npm run seed # build a demo company (safe to re-run)
npm run dev
The app runs at http://localhost:3000, with locales /ar (default, RTL) and /en.
The seed creates a demo company. Default owner login: [email protected] / demo12345 (other roles are in prisma/seed.ts).
| Command | What it does |
|---|---|
npm run dev | Development server |
npm run build | Production build |
npm test | Full test suite (Vitest) |
npm run lint | ESLint |
npm run db:push | Apply prisma/schema.prisma to the database |
npm run seed | Rebuild the demo company |
Add screenshots here.
| Dashboard (occupancy of cash, stock, profit) | docs/screenshots/dashboard.png |
| New sale (bilingual, RTL) | docs/screenshots/sale.png |
| Inventory / warehouses | docs/screenshots/inventory.png |
| Profit & finance | docs/screenshots/profit.png |
What this project taught me
Roadmap (Stage 1 — the core merchant loop — is complete; later stages are planned)
Status: Stage 1 (register → company setup → products → receive/sell/transfer/count → expenses/payments → accurate profit, cash, and customer/supplier balances) is complete and covered by the test suite.
Released under the MIT License.