Under the hood
How Blogovo is built. The model writes, code decides.
The parts behind the blog that writes itself: what runs where, what each piece is built with, and why it won over the obvious alternative.
Spec sheetBlogovo, late 2026
- Backend
- Node.js, Express 5
- App
- Preact, built with Vite
- Data
- Postgres with row-level security
- AI
- Own model router across providers
- Voice
- Kokoro, self-hosted
- Runs on
- Docker Compose, read-only containers
- 22klines of code
- 10backend packages
- 13test suites
- 330+test checks
The whole system on one page.
One backend, one database and a few small helpers that each do a single job. Tap any part to see what it is and why it was chosen, or follow one of three journeys through it.
People
Front door
Web server
One Node.js backend
Data and helpers
Outside services
How a post gets written.
Eight steps from an empty slot on the calendar to a published post. The model only writes. Every score, limit and yes-or-no decision is made by code, so it is the same every time and can say exactly what to fix.
- 1
Code
Plan
Picks the topic, the offer and the reader's problem from the blog's strategy, leaning toward what the blog has written least about.
- 2
AI
Write
The prompt is built from the company profile, one of 16 writer styles, samples of the brand's voice and the strategy. News posts may only use facts from the article.
- 3
Code
Proof check
Ten measures of AI-sounding writing, from overused words to sentences that are all the same length. Over the limit, the draft goes back with the exact evidence, at most twice.
- 4
CodeAI
Length
Under 80% of the target gets an expand pass. Over 120% gets a tighten pass with a word budget for each section.
- 5
Code
Strategy check
Counts mentions of the business, checks the closing link and flags hype words. One fix pass if anything is off.
- 6
CodeAI
Search check
Thirteen checks on the title, description, keyword and links. A suggested fix is kept only if the score goes up.
- 7
Code
Photo and extras
A real photo, social posts and a category. Then it is published, saved as a draft or sent for review, as the owner chose.
- 8
AICode
After publish
Translations, checked section by section for loops, missing parts and the wrong alphabet. Then the spoken summary, the search ping and Telegram.
Proof check score, 0 reads human
Same checker, same numbers, every time.
The stack, and why each part won.
Most choices here are the smaller, plainer option. Fewer moving parts means fewer things to patch, fewer surprise updates and a smaller bill.
| Part | Chosen | Instead of | Why |
|---|---|---|---|
| Backend | Node.js + Express 5 | Next.js, Python | A small surface in the same language as the app, with no server-rendering framework to keep patched. |
| App | Preact + Vite | React, Next.js | The same way of writing components at a fraction of the size. It builds to plain files that nginx serves. |
| Database | Postgres, row-level security | A database per customer, or filtering in code | The database itself keeps customers apart. Every request runs as the person who made it. |
| Sign-in | Supabase Auth + own email flows | Writing auth from scratch | Password storage is not something to invent. Verification and reset emails stay in our hands. |
| Blog pages | HTML rendered once, cached in memory | A headless CMS, a static site generator | Fast and cheap, and one less system. Each blog gets its own RSS, sitemap and structured data. |
| AI output | marked + sanitize-html, DOMPurify | Trusting model output as HTML | Whatever a model returns is treated like text from a stranger, and cleaned before it is shown. |
| AI models | Own router with fallbacks | One provider | Providers rate-limit and run out of credit. A failing model is benched and the next one takes over. Paid models are never swapped without saying so. |
| Quality | A scorer written in code | Another AI as the judge | Free, repeatable and explainable. It can point at the exact sentence that needs work. |
| Voice | Kokoro, self-hosted, one MP3 per post | A paid voice API | No bill per post and the text never leaves our servers. Short summaries keep it quick on a CPU. |
| Photos | Pexels + Pixabay, converted with sharp | AI-generated images | Licensed, real-looking photos with credit shown. No GPU cost and no AI-image look. |
| Site pictures | Headless Chrome on a closed network | A browser inside the backend | The browser cannot reach the internet on its own. It goes through a proxy that refuses private addresses. |
| Review | Telegram bot, long polling | Email links, dashboard only | Owners live on their phones. One tap to approve, and no public webhook to defend. |
| Domains | DNS check, then automatic certificate | Manual setup | The owner adds two records and the rest happens on its own, with retries if a step is slow. |
| Billing | Stripe subscriptions | Billing by hand | Standard, with prorated plan changes and signed webhooks. |
10 backend packages
- express
- express-rate-limit
- pg
- marked
- sanitize-html
- sharp
- undici
- puppeteer-core
- stripe
- lamejs
3 app packages
- preact
- marked
- dompurify
Kept short on purpose. Every package is code someone else can change, so each one has to earn its place.
Keeping customers apart, and keys away.
Many businesses share one system, and each of them hands it a website, a brand and sometimes their own API keys. These are the rules that keep that safe.
- Customers stay apart
- Row-level security on every table. A request runs as the signed-in person, so the database refuses rows that belong to someone else, even if the code asks.
- Default deny for teams
- One server-side table maps each action to a role: viewer, reviewer, editor, manager. Anything not on it is owner-only. Telegram buttons follow the same table.
- Keys are sealed
- The master database key lives only in the small sign-in service. Customers' own API keys and passwords are encrypted with AES-GCM, and only the last few characters ever come back.
- AI output is untrusted
- Everything a model writes is cleaned before it becomes a page. Comments need a captcha checked on the server, are rate-limited, and are held for review when they carry several links.
- No reaching inside
- Every fetch of an outside site checks the address first and refuses private networks. The site-reading browser has no internet except through that check.
- Locked-down containers
- Read-only file systems, no extra Linux privileges, memory and process limits, and internal-only networks for the helpers. Every service is audited against one checklist.
- Private by default
- Page views are counted per page and day, with no cookies and no personal data. Commenters' addresses are stored only as a one-way hash.
- Abuse is expected
- Sign-ups are checked for throwaway email and bursts from one address, and the real visitor address is read correctly behind the proxy so limits can't be dodged.
Every release can be undone.
Each change is a commit, each deploy is a recorded version, and each version keeps its own images, so going back is one command. Tests run against the real system, including a real AI run.
- CommitOne change, one message, in git.
- Secret checkThe release stops if a key or password is about to be shipped.
- Version tagThe deploy is tagged with its commit.
- Exact filesOnly that commit's files reach the server. Local settings there stay untouched.
- Build and checksDatabase migrations, the build and the container security checks.
- Images keptRunning images are tagged with the commit. The last eight are kept for rollback.
Test suites334 checks