尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證BorderReady: book UK→EU pallet shipments in plain English and catch booking mistakes before they reach the border (Ops Hackathon, Case 2)
翻譯準備中
正在載入完整 README。
檢視完整 README ↗Book it right, before it reaches the border. Book a pallet shipment from the UK to Germany, France or the Netherlands, and catch mistakes before it leaves. Built for the Ops Hackathon, Case 2 (Shipment Booking & Error Checker).
Live demo: https://borderready-app.vercel.app (public, no login).
Code: https://github.com/lopamudrabareja-ctrl/borderready
All arithmetic and every pass/fail decision is deterministic TypeScript (lib/rules.ts, lib/carriers.ts). The LLM (Google Gemini) is used for only two things:
The booking is one state object. Checks, carrier choice and the chat reply are all recomputed from it on every change.
If Gemini is slow, out of quota or not configured, the chat falls back to a regex extractor ("basic mode") and still works for simple messages. Unclear R-06 items are then flagged "check manually", never silently passed. Calls time out after 15 s in total.
Needs Node.js 20.9 or newer.
npm install
cp .env.example .env.local # then paste your Gemini key into .env.local
npm run dev # http://localhost:3000
Without a key the app still works, with chat in basic mode.
| Name | Required | Notes |
|---|---|---|
GEMINI_API_KEY | for smart chat | Free key from Google AI Studio. Server-side only. |
GEMINI_MODEL | no | Defaults to gemini-3.5-flash-lite (about 1 s per call). gemini-3.8-flash timed out on the free tier in testing. |
This is a demo on Gemini's free tier, so prompts may be used by Google. Don't enter real customer data.
| Command | What it does |
|---|---|
npm test | Vitest: all rules, carriers, Excel parsing, chat flow, LLM wrapper (mocked), junk-data robustness |
npm run build | Production build |
npm run make-fixture | Regenerates fixtures/test_bookings.xlsx from the template |
npm run play-chat | Plays 5 scripted conversations against a running server and prints the booking after each turn |
After make-fixture, copy the file to public/samples/ so Load sample data uses it.
data/rate_card.json fixed carrier options
data/sample_template.xlsx judges' template
lib/rules.ts R-01..R-10, pure functions
lib/prohibited.ts R-06 keyword lists and negation handling
lib/carriers.ts feasibility filter, ranking, balanced score
lib/booking.ts booking state, applyPatch, missing fields, summary
lib/excel.ts SheetJS parser for the Bookings + Items sheets
lib/llm.ts Gemini wrapper: extractPatch, classifyProhibited, retry, timeouts
lib/fallback.ts basic-mode regex extractor
lib/chat.ts one chat turn: apply patch, recompute, build the reply
lib/guidance.ts next steps and scope note (based on GOV.UK export guidance)
app/api/chat/route.ts chat endpoint, rate limited per IP
app/api/classify/route.ts batched R-06 classification for uploads
components/ ResultView (shared by both tabs), ChatPanel, UploadPanel
fixtures/test_bookings.xlsx planted-error workbook
tests/ Vitest suites
Whether the HS code is the correct one (only that it has at least 6 digits), EORI numbers, VAT, licences for controlled goods, whether the buyer can import, proof of origin, export declarations, Incoterms or dangerous-goods paperwork. See GOV.UK: Export goods from the UK.