2.6 The Soil and The Storm
“When we try to pick out anything by itself, we find it hitched to everything else in the Universe.” — John Muir
A garden is not merely the flowers visible above the soil; it is the vast, unseen network of mycelium and roots that sustain them. In the digital world, the internet provides a harsh climate—a chaotic weather system of traffic spikes, malicious bots, and unpredictable latency. To survive, a garden must not fight the storm; it must be built into the very landscape.
This is why the Standard Garden does not live on a single server. It lives in the soil of the internet itself.
The Edge: Growing Everywhere at Once
We do not host the garden in one physical location. Instead, we scatter its seeds across Cloudflare’s global edge network. When a reader in Tokyo asks for a note, the garden blooms in Tokyo. When a writer in Montreal publishes an annual, the roots anchor in Montreal.
This organic scaling means the garden can support ten or ten thousand wanderers simultaneously without a single server sweating. The load is distributed naturally, like water absorbing into a vast forest floor.
Weathering the Storm (Security)
A thriving ecosystem requires boundaries to prevent invasive species from overwhelming the native flora.
The Permeable Membrane (Authentication):
We do not use rigid passwords—passwords are friction, unnatural walls that wear down the mind. Instead, we use the natural keys of Passkeys and Magic Links. The authentication layer (Better-Auth) acts as a permeable membrane. It dynamically shapes itself to every single request, ensuring that a session in one node never contaminates the soil of another.
Deep Roots (D1 & Kysely):
Our data—the compost and the perennials—rests in a distributed SQLite database (D1). When the garden queries the soil, it does so with absolute precision. The roots (Kysely queries) only draw exactly what nutrients are needed, wasting nothing. Because the connections are created dynamically upon each rainfall (each HTTP request), there is no stagnant water, no memory leaks, and no global state to be poisoned.
The Harmony of Chaos and Order
Here lies the beautiful contradiction of the Garden. To allow the utmost chaos and organic growth above ground—writers publishing thoughts, linking ideas, and letting them compost—the underground must be governed by unbreakable laws.
We write the most rigid, sterile, and mathematical architectural code so that you never have to think about it. You just plant your seed, and the network ensures it grows. The framework is the hard, cold bedrock; the Garden is the wild, living moss that grows upon it.