Svelte Commerce
SvelteKit으로 만든 독립형 오픈소스 스토어프론트, 26개 상거래 백엔드와 헤드리스 연동, MIT 라이선스
다국어(아랍어·영어) 재고·재무 시스템으로, 하나의 트랜잭션 엔진이 재고, 원가, 원장·이익을 동기화한다
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 ·
커머스TypeScript · CSSGitHub @humidalex1-gif온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
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.