A fast public site
Pages are built by the server, with no heavy frameworks. The browser keeps styles and scripts for a whole year, so repeat visits are almost instant. Two languages and a layout that works well on a phone.
Automation with Node.js · Vilnius
Roman Fedorenko
I write scrapers, bots and scripts that take routine work off your hands.
This site is not built with a website builder: it is a small system written from scratch. This page describes what it is made of and how it works, so a client can see what they would get. It is updated as the development goes on.
Pages are built by the server, with no heavy frameworks. The browser keeps styles and scripts for a whole year, so repeat visits are almost instant. Two languages and a layout that works well on a phone.
Texts, menu, pages and blocks are edited in the private area without a programmer: the form on the left, a preview on the right. Changes go to a draft first and reach the site with one button.
Every publication is saved as a revision that cannot be changed afterwards. Any earlier version can be opened and restored.
A password plus a one-time code from a phone app, roles and permissions for every user, an action log and protection against password guessing.
Updates go out with one command: checks of the site and the database, a data copy before changes and a rollback if anything goes wrong.
The site consists of two separate parts. The public one is open to everyone: it only reads a ready-made snapshot of the pages and never touches the database. The private part (the /admin address) requires a sign-in: it holds the editor, the users and the log, and works with a PostgreSQL database. When you press "Publish", the new version is written to the database and to a snapshot file, and the public part picks it up by itself. If the private part or the database is temporarily unavailable, the site keeps running on the last published version. Why it is built this way: a failure or a break-in on the public part gives no access to the data, and work on the private part cannot take the site down.
Everything in-house, with as few dependencies as possible. The less third-party code, the fewer vulnerabilities, surprise updates and places where something breaks without you knowing. The site and the private part are written with the built-in features of Node.js, with no frameworks. Small steps and checks. Every change passes automated tests (there are hundreds) and a separate code review before it reaches the site. Secure by default. Strict browser rules, separate server and database users with minimal rights, request rate limits, encrypted secrets.
Users in the database, roles, two-factor sign-in, an action log, protection of the private part.
Draft, preview, publishing, revision history and rollback; the public site reads the published snapshot.
Russian and English: separate addresses, a switcher, language chosen by the browser.
Long-term caching of styles in the browser, smooth transitions between pages, menus and windows.
Sign-in, the dashboard and the site editor in Russian and English: each user picks the language and it is remembered.
Uploading images right from the editor. Private areas for clients: projects, estimates, documents. A Telegram bot and background tasks (parsers, reminders).
Need a site or an internal system like this? Describe your task and I will reply with a plan and deadlines.
Write to me