QuietCrypto QUIETCRYPTO Discretion & Algorithms

Under the hood

How this site is built, without the gloss

Most sites of this kind show a curve and a promise. Here you can read the architecture, the technical choices, what broke and how it was fixed. The figures on this page are measured on production, not estimated.

lines of PHP
60,672
front 7,849, app 22,155, library 30,668
PHP files
249
no framework, no bundled dependency
automated tests
160
unittest suites, run on every engine change
KB compressed
33.7
home page, against 135 KB raw
external resource
0
fonts, icons, charts and QR served by the server
published URLs
48
full sitemap, French and English versions

Three blocks, separated by design

The site, the engine and operations share neither the same language, nor the same rights, nor the same exposure. If one falls, the others keep going.

The website

Apache and PHP 8 in a Docker container, MySQL alongside. The reverse proxy terminates TLS and routes each subdomain.

NPMApachePHP 8MySQL

The engine

Python, separate from the site: it talks to the exchange APIs and is never reachable from the web. The site only reads its results.

PythonHyperliquidBitgetcron

Operations

Daily database backup with off-site copy, health checks, access logs, position alerts.

backuphealthlogs

Six decisions, and what they cost

A technical choice without a trade-off does not exist. Here are the six that structure the project, with their price.

PHP without a framework, on purpose

The site is plain PHP with an in-house library. Not nostalgia: every page loads without a build step, the server has nothing to install, and an outage is diagnosed by reading a file. The cost is duplication, which I reduced by centralising translations, headers, footer and sidebar.

Nothing served by a third party

Tailwind is compiled on the machine, Font Awesome, Chart.js and the QR library are served by the server, and the security policy forbids any external origin. A page cannot break because a CDN moved, and no visit data leaves for a third party.

Two domains, one session

The front site and the app live on two different hosts. The session cookie is issued on the parent domain, otherwise a visitor who signs up from the front site arrives logged out in the app. I found this by testing a sign-up end to end, not by reading the code.

The engine never touches the web

The code that places orders is not reachable from any public address, and it does not use the same keys as the site. A flaw in a page therefore cannot reach the keys able to withdraw funds: the site's keys have no withdrawal right.

Back up before fixing

Every change to a live file leaves a dated copy, and the database is backed up nightly then copied off the machine. That is what allowed restoring 41 broken files in one command, with no loss, the day an automated replacement went wrong.

Measure rather than believe

Test suites are written in unittest and run before every engine change. They caught outdated expectations, a stale budget ceiling and margin computed on the wrong leverage. A failing test is information, not an obstacle to work around.

Three real failures

A project that never broke anything never ran anything. Here are three incidents, the cause, and the rule that came out of it.

41 files broken by an automated replacement

A text replacement meant for translations caught a timezone setting in 41 files. The site stayed up but several pages lost their timezone. Restored from dated copies, then a rule: word-boundary pattern, count occurrences first, syntax check after every touched file.

A missing image on one of the two hosts

The login logo returned 404 in production while the file existed: it was in the front site, not in the app. No visible error, just text where the image should be. Since then the same file is deployed to both roots, and a check compares the two.

A page served by the wrong host

The monitoring page answered from the front site instead of the app, with no sidebar and a dead script. The cause was an over-broad redirect rule in the server configuration. Fixed, then verified by reloading the page with and without a session.

What is still missing

The same figures, read the other way. What I have not done yet, and what I would do first if I started over.

See the thing running

The results page shows the full backtest, the trajectory page shows what a real account becomes, and the markets page shows the tracked pairs and the ones excluded, with the reason.

Results Trajectory Markets tracked
Language: Français · English