BorderReady, 영국에서 독일·프랑스·네덜란으로 팔레트 운송을 예약합니다
BorderReady: book pallet shipments from the UK to Germany, France and the Netherlands, and catch mistakes before they reach the border.
커머스TypeScript · PythonGitHub @lopamudrabareja-ctrl온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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.