Skip to content
How it's made

Colophon

How Stack & Skill is made, and the idea behind it: building software takes craftsmanship at every stage, from the first question to the last line. Then the stack, and the rules we hold ourselves to.

Exploded view of Stack & SkillFive layers stacked on a dashed line, from the top: reader, edge cache, Next.js, server logic, PostgreSQL. A request travels down the line: most stop at the edge cache, a few reach the database.0504030201

Exploded view

What a page is made of

Before a craftsman builds a piece, they draw it taken apart: every part in order, numbered, with a list beside it. This is that drawing for Stack & Skill: the five layers a request can pass through.

Watch the dot. Most requests stop at the edge cache and come straight back; only a few go all the way down to the database.

  1. ReaderYour browser. Pages arrive as HTML, so reading needs no JavaScript.
  2. Edge cacheVercel's CDN keeps every page, rebuilt when something is published.
  3. Next.jsReact on the server, in Frankfurt, next to the database.
  4. Server logicsrc/server: articles, reviews, points, and who may do what.
  5. PostgreSQLOn Neon, in Frankfurt: one source of truth, changed only by migrations.

Craftsmanship, not just code

“Code is only the part of software you can see. Craftsmanship is in every stage around it: the question you ask before you start, the tool you choose and why, the name you give a thing, the test that proves it, and how it behaves when it fails at three in the morning.”

Yahia RachekFounder & Editor-in-Chief · Backend Engineer

That is the idea behind Stack & Skill. We want craftsman developers: people who bring craftsmanship to every step of building software, not only to the moment they type. They meet a language, a framework, or a tool with the curiosity of someone who asks why, and the discipline of an engineer who solves the problem in front of them.

Good engineering is part philosophy and part problem solving. It asks what the problem really is, what each option costs, and what we don't know yet. Then it builds something, measures it, and is honest about the result.

You can see it in how articles here are written: the reasoning comes with the code, the versions it was tested with are stated, decisions list the options they turned down, and incidents are told without blame. And you can see it below, in how this site is made.

What it asks of an engineer

  1. Start with the question

    Before a tool or a line of code: what is the problem, who has it, and what would solved look like?

  2. Every stage takes craftsmanship

    A clear name, a careful migration, an honest error message, a test that would catch the bug: none of it is “just code”.

  3. Choose tools with craftsmanship

    For the material and the cut, not for fashion: know what a language, a framework, or a database is good at, and what it costs.

  4. Understand why it works

    A copied answer fixes today's problem. Knowing why it works fixes the next one too.

  5. Name the trade-off

    Every choice gives something up: speed for simplicity, flexibility for clarity. Say what you gave up, then decide.

  6. Show your work

    Write down the reasoning, the options you turned down, and what went wrong, so others can check it and build on it.

From the workshop to the codebase

Woodworkers, smiths, and masons worked out the habits of good work long before software existed. Most of them translate line for line.

In the workshop: “Measure twice, cut once.”
In the codebase: Reproduce the bug and read the logs before you change a line.
In the workshop: “Work with the grain.”
In the codebase: Use a language or a framework the way it was designed, not against it.
In the workshop: “A bad workman blames his tools.”
In the codebase: Suspect your own code before the compiler, the framework, or the database.
In the workshop: “A chain is only as strong as its weakest link.”
In the codebase: A system is only as reliable as its least-tested path.
In the workshop: “Haste makes waste.”
In the codebase: The shortcut you take today is the incident you debug next month.
In the workshop: “Leave the workbench cleaner than you found it.”
In the codebase: Leave the codebase better than you found it: one clear name, one test, one note at a time.

The stack

stack.md
framework
Next.js 16 (App Router), React 19, TypeScript# pages render on the server; most need no JavaScript to read
hosting
Vercel, functions in Frankfurt (fra1)# next to the database, close to European readers
database
PostgreSQL on Neon (Frankfurt), Prisma 7# one source of truth, schema changes as migrations
accounts
Better Auth: email and password, GitHub, Google# sessions in our own database
security
Cloudflare Turnstile, Upstash Redis rate limits, two-factor sign-in# bots stopped at the forms; every editorial action checked on the server
articles
Markdown → unified (remark, rehype), sanitized# no MDX: an article can never run code
code
Shiki through rehype-pretty-code, on the server# highlighted HTML, no highlighter shipped to you
math
KaTeX, on the server# formulas arrive as HTML and MathML
styles
Tailwind CSS 4, light and dark themes# one set of design tokens, AA contrast in both
fonts
Newsreader, IBM Plex Sans, JetBrains Mono# self-hosted by next/font: no font requests to Google
images
Vercel Blob, re-encoded to WebP by sharp# at most 2000px wide, and a photo's location is stripped
email
Resend, with a daily budget# newsletter and account email; sign-in links always get through
tests
Vitest: unit tests and a real PostgreSQL suite# lint, types, and tests pass before anything ships
monitoring
A smoke test every three hours, alerts by email# we hear about a problem before readers do
backups
A nightly encrypted copy of the database# kept two weeks, away from where it runs

The rules

  1. Reading needs nothing

    Articles are HTML from the server. Highlighting, math, sidenotes, and the incident timeline are done before the page reaches you, and the sidenotes open with a checkbox, not a script. JavaScript adds likes, bookmarks, and search; the text never waits for it.

  2. Static first, fresh enough

    Pages are cached at the edge and rebuilt when something is published, or at most an hour later. A reader's request rarely touches the database.

  3. Nothing executable in an article

    Every article goes through GitHub's sanitization rules: scripts, event handlers, iframes, inline styles, and javascript: links are removed. A strict Content-Security-Policy allows scripts only from this site and two services we trust: Vercel's analytics and Cloudflare's bot check.

  4. Yours to take elsewhere

    Every article is available as Markdown (add .md to its address). The RSS feed carries the full text of recent articles, /llms.txt indexes the site for tools, and printing an article gives you clean pages with every link spelled out.

  5. Keyboard and screen readers

    Press ? for shortcuts (j/k move through lists, / searches). Every control has a visible focus ring and a name, and motion stops when your system asks it to.

  6. Measured, in public

    The footer shows what the page you're on cost to load, measured by your own browser: bytes, requests, and seconds. If a change makes it heavier, you'll see it there before we do.

Want to use these blocks in your own article? Start at Write for us.

The audit

Google PageSpeed Insights on the home page, on a phone and on a computer, 1 November 2026.

PageSpeed Insights scores, mobile and desktop
CategoryMobileDesktop
Performance100100
Accessibility100100
Best practices100100
SEO100100
Agentic navigation3/33/3

Agentic navigation: AI agents can read the page and use it.

desktop run: measured, and its share of the score

  • FCPFirst Contentful Paint0.3 s+10/10
  • LCPLargest Contentful Paint0.7 s+25/25
  • TBTTotal Blocking Time20 ms+30/30
  • CLSCumulative Layout Shift0+25/25
  • SISpeed Index0.5 s+10/10

Scores move a little from run to run. Run it yourself.

How it's protected

Bots
Cloudflare Turnstile checks sign-up, sign-in, password reset, the newsletter, pitches, and the contact form, invisibly for people.
Floods
Rate limits are shared by every server through Upstash Redis, the sensitive ones backed by PostgreSQL, on top of Vercel's DDoS protection.
Editors' accounts
Two-factor authentication is required for editors and admins, every admin action is checked on the server, and each one is kept in an audit log.
The database
Every query is parameterized through Prisma: no SQL is ever built from what a visitor typed.
Uploads
An image must be the type it claims, byte for byte; it's re-encoded and stripped of its metadata, and each member has a quota.
Email
A daily budget keeps room for confirm-address and password-reset emails, whatever else is sent.
Data
An encrypted backup every night, kept two weeks away from the database; a live article is never deleted in one step.
Watching
The site is tested every three hours; an outage, a run of errors, or a store filling up emails the people who run it.

Keyboard shortcuts

Reading

Next article (older)
j
Previous article (newer)
k
Next section of the article
]
Previous section
[
Read mode on an article (Esc to leave)
r

Search

Search articles or paste an error
/orCtrl K

Go to

Home
gthenh
All articles
gthena
Topics
gthent
Reading list
gthenr
Leaderboard
gthenl

Help

Show these shortcuts
?

Loading search…