Bot conversor Jogo Barato
Use the Telegram bot to forward an offer and convert it
AI summary · website content
BorderReady: book pallet shipments from the UK to Germany, France and the Netherlands, and catch mistakes before they reach the border.
CommerceTypeScript · PythonGitHub @lopamudrabareja-ctrlOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
BorderReady: book UK→EU pallet shipments in plain English and catch booking mistakes before they reach the border (Ops Hackathon, Case 2)
Loading the full README.
Read the full 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.