Software · The company I run

Valour Automotive

A small private workshop in Amsterdam, and the software I wrote to run it: a quote that builds itself from a licence plate, a parts search across about 35 shops, planning, invoices, a deal scanner and the public websites. This page shows how it works inside.

1
server process hosting every app
~35
shops searched for each part
3 : 2 : 1
weights of the three cheapest baskets
5
public sites, one design system

One server, many apps

Every tool runs inside a single Python server on a small PC in the workshop. A tunnel to Cloudflare makes it reachable without opening a port on the router, and a login in front of the private host decides who gets in.

Each app is a module that plugs into that server, so the quoting flow can call the parts search and the planner directly instead of talking over a network.

Public sites
Hub, Care, Detailing, Selections and Performance: static files only, on their own subdomains
Client pages
A quote link and a lift booking page, reached by a private token
Staff and shop iPad
The tools behind a Cloudflare Access login, plus a trimmed work screen
↓
Cloudflare tunnel and Access
Nothing is opened on the router. The private host only answers when the request carries a verified Access token.
↓
Valour Command Server
One Python process (waitress) that hosts every app below. A hosting layer decides per hostname what a request may reach.
↓
Flow
Quoting, booking and the job screen
Parts Finder
Fitting parts and the cheapest basket
Planning
Calendar, lift and conflicts
Invoices and Tax
Pro forma, invoices, BTW figures
Selections
Deal scanner, car finder, stock
Fleet and Manuals
Service log and oil capacity

From a licence plate to a booked job

This is the quoting flow. A request comes in, and everything that can be worked out by the computer is worked out before a person looks at it.

Parts are never bought automatically. The system prepares an order sheet and I place the orders myself.

1
Request

The customer fills in a public form, or I fill it in for them. All it really needs is the plate and what they want done.

2
Car lookup

The plate goes to the RDW, the Dutch vehicle register, which returns make, model, year and engine.

3
Parts search

A background thread asks the Parts Finder for the fitting parts at the best price, while a pro forma draft is built with the labour on the right company.

4
Quote ready

If everything matched, the customer is texted a link. If anything is uncertain, the quote waits in a review queue for me instead.

5
Customer approves

The quote page shows the price and the pro forma PDF and offers free days. The customer picks one and approves.

6
Day locked

The chosen day is written into Planning, which applies the same conflict rules as everything else, and a confirmation text goes out.

7
Order sheet

The parts of the chosen basket are collected per shop, ready for me to order.

8
Job screen

On the iPad in the workshop: the chassis profile, the scan-tool profile, a task list and links to the manual pages.

9
Done and paid

Completing the job corrects the pro forma, shows a payment QR or bank details, and sends the pickup text.

Parts Finder

Finding the right part is the hardest step, because the same car has several part numbers and every shop lists them differently.

It works in four stages: identify the car, find the fitting original part numbers, search those exact numbers everywhere, then choose the cheapest way to buy them.

Stage 1
Fitting part numbers

The plate is looked up at the RDW, then the original part numbers that fit that car are read from one shop and remembered for that plate for 60 days.

Stage 2
About 35 shops

Those exact numbers are searched at webshops, dealers, trade portals and marketplaces. A browser is driven per shop, three at a time, and results are cached for 12 hours.

Stage 3
Basket optimiser

It tries every combination of shops with shipping costs, free-shipping thresholds, discount codes and minimum orders. A local search takes over when there are too many combinations.

Rule
Original parts only

Aftermarket brands are never offered and used parts are skipped. Matching is strict, and the stored list of part numbers cleans itself when a number stops matching.

Prices
All incl. 21% BTW

Every price is converted to include BTW, and the Valour Care company is handled under the small business scheme (KOR).

When it fails
It leaves evidence

If a shop returns nothing, the tool saves the page, a screenshot and the parsed cards so I can see what changed. Shop logins live in browser profiles, so the tool never sees a password.

How the customer price is set

The price is not the single cheapest basket, because that one can vanish an hour later. It is the weighted average of the three cheapest baskets, with weights 3, 2 and 1.

It never goes below the cheapest basket plus a minimum margin, packs are priced per piece actually used, and oil is added as a bulk line.

Oil capacity from the manuals

For the oil line the system asks service manuals. From the plate it finds the right manual entry by make, year, model and engine size, and reads the capacity page.

If several different values exist, or no entry matches, it does not guess. It reports ambiguous or not found and the quote goes to review.

Pro forma, invoices and BTW

Jobs become a pro forma with a number, a PDF, a payment link and a QR code, and the customer is emailed. Payments are polled from Stripe, so no public webhook is needed.

An invoice is issued per company, with the 21% BTW and the margin-scheme parts kept apart.

Rule
No gaps in numbers

A draft has no number. The number is assigned the moment it is issued, so the sequence has no holes.

Rule
Issued means locked

To correct an invoice it is voided, which keeps its number used, and a new one is made. Totals are always computed on the server, never trusted from the browser.

Tax
BTW return helper

A tax module adds up invoices and purchases per quarter and shows them in the layout of the Dutch return, with a margin ledger and a profit overview. It checks figures; it does not file anything.

Planning and the lift

A planning module holds saved clients and plans, applies conflict rules so two jobs never take the same lift at the same time, and has a public booking page for the lift with its own settings.

The quoting flow uses the same module when a customer picks a day, so there is one calendar and one set of rules.

Finding cars to buy

The Selections side finds cars worth buying. A scanner reads Marktplaats, Facebook Marketplace and Troostwijk auctions on a loop, and a car finder searches for one specific model on demand.

Every hit is valued. The valuation compares the car with similar listings on AutoScout24 and Marktplaats, adjusts for mileage and damage, and gives a confidence level and a rating of how easily the car should sell. Good deals trigger a Telegram message.

Stock and the storefront

Cars I have for sale are kept in a private stock admin. Publishing copies only the public fields of cars marked as published into the storefront, together with their photos.

Purchase price, notes, VIN and plate never leave the private side.

Safe by hostname

A request on a public hostname only ever gets that site’s files. No API, no tools, no databases. A locked site is served only through its own Access login. The private host needs Access, and any other hostname arriving through the tunnel is refused.

The workshop iPad gets a trimmed view: jobs, tasks and checkout, but never part prices, margins, supplier costs, invoices or other clients. Each action is stamped with the person who did it.

One look across five sites

The public sites share one design system with a different accent colour each: red for the hub, blue for Care, teal for Detailing, gold for Selections and crimson for Performance.

The Valour Automotive main site
The main site.
The Valour Care site
The Care site, for servicing.

Valour Performance

The Performance site shows project builds in 3D, part by part, each marked fitted, in progress or planned. My own Cayman, Nebula, is the main project there.

Every project is edited in a data file, so adding a build means adding a few lines.

The main build
Nebula
View project →
Next project
Master dashboard
View project →