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.