Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Conversational shipment booking & pre-flight error checker (Next.js, Neon, Gemini)
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗This is a booking-preparation and pre-flight checking demo. It does not book carriers, schedule pickups, contact anyone, or give customs / dangerous-goods compliance guarantees. A "ready to submit" booking is a prepared draft that the seller submits to a carrier themselves.
UK sellers shipping pallets to Germany, France or the Netherlands (GBP) can:
Bookings and Items sheets (the case template) and get every
booking checked against the ten-rule rulebook, with the exact reason and fix for each failure.Both modes share one deterministic engine: R-01 … R-10 with Red/Amber severity, carrier eligibility by route and kg/pallet, priority ranking (Cheapest / Fastest / Most reliable / Balanced), status, dates and next steps. Gemini is used only to turn a chat message into typed patch operations — never for arithmetic, rule verdicts, carrier choice or dates.
/chat/[bookingId], delete with confirmation, mobile drawer.Next.js 16.4 (App Router, Node runtime) · React 19.3 · TypeScript 5.9 (strict) · Tailwind CSS 4.3 ·
Zod 4.6 · ExcelJS 4.4 · @google/genai 2.31 (default model gemini-3.5-flash) · Drizzle ORM 0.45 +
Drizzle Kit 0.31 · pg 8.23 + @vercel/functions attachDatabasePool · Neon PostgreSQL 17 ·
Vitest 5 · Playwright 1.64. UI components are hand-built on native <dialog> (accessible modal/drawer)
following DESIGN.md.
npm install
cp .env.example .env.local # then fill in DATABASE_URL, DATABASE_URL_UNPOOLED, GEMINI_API_KEY
npm run db:migrate && npm run db:seed && npm run db:verify
npm run dev
Open http://localhost:3000. Without GEMINI_API_KEY, chat returns a clear "AI unavailable" message and the
Edit booking form still works; Excel upload never needs AI.
NEXT_PUBLIC_)| Name | Used for |
|---|---|
DATABASE_URL | Neon pooled connection string (app runtime) |
DATABASE_URL_UNPOOLED | Neon direct connection string (migrations and seeds only) |
GEMINI_API_KEY | Gemini API key (chat extraction only) |
GEMINI_MODEL | Optional; default gemini-3.5-flash (verified 2026-10-25; gemini-2.5-flash is closed to new API users) |
GEMINI_THINKING | Optional; low (default), minimal or medium model thinking for extraction |
SESSION_TTL_DAYS | Optional; anonymous session lifetime, default 7 |
SHIPMENTOS_FAKE_AI | Tests only: 1 swaps Gemini for a deterministic extractor. Ignored on Vercel. |
| Script | What it does |
|---|---|
npm run lint / npm run typecheck | ESLint; route typegen + tsc --noEmit (strict) |
npm run test | Vitest unit + integration (integration uses the Neon dev branch from .env.local) |
npm run test:e2e | Playwright against next start (run npm run build first) |
npm run build | Production build |
npm run db:generate | Generate a new versioned migration from lib/db/schema.ts |
npm run db:migrate | Apply committed migrations in drizzle/ over the direct URL |
npm run db:seed | Idempotently seed the 9 carrier options and 10 rule definitions, then verify parity |
npm run db:verify | Print seeded reference rows and check them against the checked-in fixture |
npm run fixtures | Regenerate the synthetic test workbooks in tests/fixtures/ |
RUN_LIVE_AI=1 npx vitest run tests/integration/gemini-live.test.ts | Opt-in test against the real Gemini API |
npx tsx --conditions=react-server scripts/eval-extractor.ts | Prints the real model's patches for the demo phrases |
Dedicated project shipmentos (curly-feather-54563708, AWS us-east-1, Postgres 17):
| Branch | Use |
|---|---|
production (default) | Production app only. Migrations/seeds run explicitly with npm run db:migrate / db:seed using the production direct URL; only safe smoke tests touch it. |
dev | Local development and all automated tests (destructive fixtures allowed). |
Migrations are never run automatically at runtime. Schema details: docs/DB_SCHEMA.md.
gh CLI
(scopes repo, workflow) created the public repo and every push.dev branch and issued connection strings.docs/DEPLOYMENT.md).docs/PRD.md · docs/ASSUMPTIONS.md (every inferred decision, with its source) · docs/TEST_MATRIX.md ·
docs/DB_SCHEMA.md · docs/DEPLOYMENT.md · DESIGN.md (design system)