Synaplan
開源 AI 平台,供企業使用:自行託管的 AI 代理、符合 GDPR 的聊天機器人小工具、RAG 知識庫、WhatsApp 與 Outlook AI、MCP、多模型路由。Docker、Kubernetes 或託管於 Germ
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Kivvi ERP — AI-first ERP for Swiss SMEs, business on autopilot
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗The ERP that knows things have a history.
The operating system for the circular economy. Built for businesses that sell used, donated, and refurbished goods — refurbishers, Brockenhäuser, repair workshops, vintage shops.
Live demo · Product brief · Docs · Architecture
Every generic ERP assumes you buy new and sell new. A Brockenhaus volunteer accepting a box of donated kitchenware, an IT refurbisher logging fifty laptops from a corporate donor, a repair café tracking spare parts across twenty bikes — none of that fits a "purchase → sell" data model. So secondhand businesses run on spreadsheets and 25-year-old desktop ERPs, and the operational drag keeps them from scaling their impact.
Kivvi handles intake, condition grading, repair workflows, flexible pricing, and impact reporting natively, with the Swiss compliance layer (QR-bills, VAT, KMU Kontenrahmen, CAMT bank import) and an AI command bar that understands secondhand workflows.
Open source. Self-hostable. Built in Switzerland.
Full positioning in PRODUCT.md.
| Module | What it does |
|---|---|
| Intake | Accept donations, trade-ins, consignment. Condition grading. Donation receipts. |
| Inventory | Mixed model: bulk quantities and per-item tracking with status (intake → testing → repair → ready_for_sale → sold). |
| Repair workflow | Per-item repair log, parts consumption, labour tracking, condition gates before sale. |
| Sales documents | Unified document model — Angebot, Auftrag, Lieferschein, Rechnung, Gutschrift, Mahnung. Convert by changing one field. |
| Swiss QR-bills | Generated automatically. Legally compliant since 2022. |
| Accounting | 139-account KMU Kontenrahmen, journal entries auto-generated, balance sheet + P&L + VAT report. |
| Banking | CAMT.053/054 import, automatic payment matching via QR reference. |
| Impact reporting | Devices saved, kg diverted from landfill, CO2 avoided. Auto-generated annual Vereinsbericht. |
| AI command bar | Cmd+K. "50 laptops donated by UBS" → intake created. Same domain functions the UI uses. |
| Self-service migration | CSV import with auto-detection (kivitendo profiles included). |
A pnpm monorepo. Domain logic is the source of truth — the UI, the public REST API, and the AI tools all delegate to the same functions in packages/core.
kivvi/
├── apps/
│ └── web/ # Next.js 14 App Router, Server Actions, server components
├── packages/
│ ├── database/ # Drizzle ORM schema — THE source of truth
│ ├── core/ # Domain logic (pure functions, one tx per business op)
│ │ └── src/domain/
│ │ ├── documents.ts # Unified document model (quote → invoice → credit note)
│ │ ├── inventory-items.ts # Per-item lifecycle, condition, repair
│ │ ├── accounting.ts # Journal entries, balance sheet, P&L, VAT
│ │ ├── banking.ts # CAMT import, payment matching
│ │ ├── impact.ts # CO2, devices saved, donation receipts
│ │ └── ...
│ └── ai/ # AI providers + tool registry (Groq / xAI / OpenRouter / Ollama / Anthropic)
└── docs/ # Deployment, self-hosting, audit reports, OpenAPI
Data flow. Server Action → domain function (transactional) → Drizzle → Postgres → revalidatePath → UI. The AI command bar calls the same domain functions through tool definitions, so every AI action is auditable in aiActionAudit.
Engineering contract in AGENTS.md.
| Layer | Technology | Why this one |
|---|---|---|
| Framework | Next.js 14 (App Router) | Server Components + Server Actions = fewer moving parts |
| Language | TypeScript (strict) | Types derived from Drizzle schema ($inferSelect) — single source of truth |
| Database | PostgreSQL + Drizzle ORM | Full SQL control, best TS inference, no codegen |
| Money | decimal.js | 0.1 + 0.2 !== 0.3 in IEEE 754; financial software cannot use floats |
| Auth | NextAuth.js v5 | Credentials provider, JWT strategy |
| AI | Groq · xAI · OpenRouter · Ollama · Anthropic | Configurable per company; free-tier chain first, Anthropic opt-in (paid) |
| UI | Tailwind + shadcn/ui + Radix | CSS variables as the only design SSOT; semantic tokens everywhere |
| Validation | Zod | Schema = SSOT for validation and types |
| Hosting | Self-hosted (Docker · any Linux VPS) | Runs on our own Hetzner box behind Caddy; portable to any host |
# 1. Clone
git clone https://github.com/bitbaum/kivvi.git && cd kivvi
# 2. Install
pnpm install
# 3. Start Postgres
docker compose up -d postgres
# 4. Env
cp .env.example .env.local
# edit DATABASE_URL, NEXTAUTH_SECRET, and an AI key
# 5. Schema + seed
pnpm --filter @kivvi/database db:push
# 6. Run
pnpm dev
Open http://localhost:3000. The onboarding wizard creates your company, seeds the 139-account Swiss KMU Kontenrahmen, and offers a kivitendo CSV import if you're migrating.
.env.localDATABASE_URL="postgresql://kivvi:kivvi_dev@localhost:5432/kivvi"
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="$(openssl rand -base64 32)"
# Pick one AI provider (or none — the app runs without AI)
GROQ_API_KEY="gsk_..." # free tier, tried first
# OPENROUTER_API_KEY="sk-or-..."
# OLLAMA_BASE_URL="http://localhost:11434"
Companies that can't send data to a third-party LLM can run Kivvi end-to-end on their own hardware with Ollama:
docker compose --profile ai up -d ollama
docker exec -it kivvi-ollama-1 ollama pull qwen2.5:32b
# then set OLLAMA_BASE_URL in .env.local
Same AI tools, same UX, zero data egress.
Six ground truths, applied ruthlessly. Full reasoning in AGENTS.md.
Practical consequences:
db.transaction().companyId (multi-tenant isolation is a security invariant, not a feature).decimal.js, rounded at line-item level (Swiss standard).apps/web/app/globals.css — no hex colors in components.Shipped:
Next (open issues track these):
PRs welcome. See CONTRIBUTING.md for the loop.
git checkout -b feat/your-change
pnpm install && pnpm dev
# … make changes …
pnpm lint && pnpm type-check && pnpm test
# open a PR; CI runs lint + type-check + 1,300+ tests + production build
Found a vulnerability? See SECURITY.md. Do not open a public issue for security reports.
Kivvi is built by bitbaum in Zürich for secondhand shops that want their software to fit their workflow, not the other way around.
If you run a Brockenhaus, refurbishing workshop, or vintage shop and your ERP is fighting you, get in touch.
MIT — see LICENSE. Use it, fork it, sell it, embed it.
Every item that passes through your hands deserves to be tracked, valued, and given its best possible future.