Synaplan
開源 AI 平台,供企業使用:自行託管的 AI 代理、符合 GDPR 的聊天機器人小工具、RAG 知識庫、WhatsApp 與 Outlook AI、MCP、多模型路由。Docker、Kubernetes 或託管於 Germ
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Every order and every return, from checkout to cash, in one place. Relay listens to every FIG storefront (FIG website and app, Women'secret Egypt and Kuwait, Labesny website and app, and figeg.com until the Shopify store launches) and moves each order through the departments that touch it. Every team sees where each order is and who has it right now.
New → Confirming → Finance check → Ready to pick → Picking → Packed → Shipped → Out for delivery → Delivered → Settled
Customer care Finance └──────── Fulfilment ────────┘ └──────── Shipping ────────┘ Finance (courier cash)
Off-track: Cancelled · Returning to origin (refused) → RTO closed
Returns: Requested → Approved → Pickup → In transit → Received → Inspected → Refund pending → Refunded
Built as a web dashboard first. Every screen works at phone width, and /api/* is the base for the mobile app.
npm install
npm run seed # a month of demo trading (stop `npm run dev` first; the embedded DB is single-process)
npm run dev # http://localhost:3400
Signed out, / is the landing page; staff sign in from its header (password, or Google when
GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET are set). Locally, GOOGLE_MOCK=1 puts a stand-in account chooser behind
"Continue with Google": pick any seeded teammate (*@relay.local) to see exactly what that job sees.
An admin can rebuild the demo floor from Rules & SLAs.
Going live: see deploy/README.md (one server: the console, Postgres, HTTPS, nightly backups).
No database to install: locally Relay runs an embedded Postgres (PGlite) in .data/. In production,
set DATABASE_URL to a real Postgres. The same migrations (drizzle/) run on start in both cases.
A job preset plus a level per area, and an optional store scope. For example, the Kuwait team only ever sees Kuwait.
| Area | Levels |
|---|---|
| Orders, Confirmation, Finance, Pick & pack, Shipping, Returns desk | hidden · view · act · manage |
| Customer data | masked · name & city · full contact |
| Money | hidden · totals · payments · refunds |
| Insights, Channels, Team, Rules | hidden · view · edit · manage |
| Command centre (the whole floor: Command centre + Pipeline) | hidden · view |
| Stock, Purchasing, Warehouse work, Merchandising | hidden · view · act · manage |
Pages are need-to-know. PAGES in src/lib/domain/perms.ts says which levels open each page; the
menu, the phone tabs, the palette and every page guard read it, so what is offered and what opens never
differ. Someone without the Command centre lands on their own first page (care on Confirm, the warehouse
on Pick & pack). Team & access → What each job sees lists each job's pages; page-access.test.ts
pins them. A teammate's stored access is only where they differ from their job, so improving a preset
reaches everyone on that job.
Rules that always hold:
Everything is in .env.example, and /channels shows what each store still needs, its webhook
address, and a Check connection button that verifies the token and its scopes.
2025-07, incremental pull plus
signed webhooks. App orders that FIG's Medusa apps push into Shopify are filed under the app channel
and de-duplicated against the direct Medusa feed.RELAY_WRITE_BACK=true): sends fulfilment and tracking to Shopify, marks COD orders
paid when settled, and adds relay:<stage> tags. It never replaces a tag list, and every attempt is
logged on the timeline.Store facts only ever move an order forward. A late webhook can't undo work the floor already did.
npx tsc --noEmit && npm run lint && npm test && npm run build
src/lib/domain/ pure rules: stages & transitions, access, risk, autopilot, SLAs, return policies
src/lib/engine.ts the only path that changes an order or a return (ingest, move, hold, note, return)
src/lib/connectors/ Shopify, Medusa, WooCommerce, Aramex, Lucida (pure mappers + tested)
src/lib/sync.ts pull + courier tracking; /api/webhooks/[platform]/[channel]; /api/cron
src/lib/insights.ts "Relay noticed" src/lib/copilot/ Ask Relay tools
src/app/(console)/ command centre, orders, pipeline, queues, returns, cash, insights, setup
src/seed/ the demo floor (fictional people, real public catalogue)