Overview
Freightly is a delivery network that does not exist. It is a portfolio demo: the sellers, couriers, parcels and customers are made up.
What it shows is real: the whole life of a parcel. A seller creates a shipment, a courier moves it from “placed” to “in transit” to “out for delivery”, and the customer follows it on a public page. At the door the courier needs the customer’s 6-digit delivery code, so a parcel can’t be marked delivered by mistake.

Try it yourself
Both login pages have a “Try as the demo seller / courier” button: one click and you are in. Play the seller, create a shipment, copy its delivery code, then switch to the courier and deliver it.
Every night all data goes back to the samples, so one visitor can’t break the demo for the next. The demo accounts can’t be renamed or changed, and there are spam limits (for example 10 new shipments an hour per visitor).

Sellers, couriers and customers
- Sellers create shipments, see them by status and follow each one step by step
- Couriers get the shipments for the zip codes they serve, and move each one forward. They can only move it forward, never back
- Customers need no account. They get emails with a tracking link, the delivery code and, at the end, a link to rate the delivery from 1 to 5 stars
- In the demo the customer emails are not sent. The seller sees them on a “Customer Emails” page instead, code included, so a visitor can play every part




Tech Stack
- FastAPI (Python 3.14) for the API, with SQLModel and PostgreSQL, and database changes kept as Alembic migrations
- React 19 with React Router 8 and Tailwind CSS for the pages, built into plain files, so there is no Node server to run
- A typed contract: the pages’ API client is generated from the API’s OpenAPI description, so both sides agree on every field
- Logins in an httpOnly cookie (a cookie the page’s own scripts can’t read), never in browser storage. Changing a password ends every older login
- Docker on my own server: the API, the pages and the database each in a sealed-off box with a memory cap; the database is on a private network
- GitHub Actions: every push runs 68 tests, builds both parts, tries them together and goes live in about 5 minutes
The rebuild (November 2026)
The first version (FlowShip, 2026) was a backend only, on Vercel with a hosted Postgres, Redis (Upstash) and SMS through Twilio. I rebuilt it with Claude Code (an AI coding assistant): I set the plan and checked every change.
- A new name, Freightly, and one repository instead of two (both histories kept)
- Outside services: 4 → 1 (Brevo, only for account emails, with a hard daily cap)
- A safety pass: every old hole closed, each with its own test. Logins now carry a role, only the owner can cancel a shipment, delivery codes are random and work once, emails are unique, and “forgot password” never tells which emails have an account
- Spam limits on logins, sign-ups, new shipments and emails, so the demo is safe to leave open to the public
- The missing pages: public tracking, star ratings, the seller’s customer emails and the one-click demo logins
- Strict browser safety headers (CSP and HSTS); nothing loads from other sites
Outcome
- A complete delivery app that anyone can try in one click, as either side
- Safe to leave open to the public: locked demo accounts, spam limits and a nightly reset
- One server, one outside service, tested and deployed by itself on every push
- Honest content: made-up sellers, couriers and customers, and the login pages say it is a demo