Historical implementation note: this article explains the portfolio’s original static blog. Since 26 October 2026, the live notebook uses MongoDB and a private editor. The original design remains useful for understanding when a simpler file-based blog is enough. A personal blog does not automatically need a database, an admin dashboard, and a collection of services. If the main task is publishing writing for people to read, a file-based site can be a comfortable starting point. The interesting part is deciding what needs to happen when an article is written and what needs to happen when somebody opens it.
Separate writing from reading
Writing is an occasional activity. Reading can happen many times, from many places, at any hour. Treating those as separate workflows makes the architecture easier to reason about. The author changes a local content file, the build generates a page, and the visitor receives the finished result. There is no need to ask a custom database for the same article on every visit.
The authoring format can be plain Markdown, MDX with components, or structured local content. The choice depends on how much control the writing needs. A short essay may only need headings and paragraphs. A technical walkthrough may benefit from code blocks, figures, and reusable presentation components. Start with a format that feels comfortable to maintain.
Keep the publishing loop small
A useful workflow has a few clear stages: write, preview, review, and publish through a new build. The preview matters because a content file can look perfectly sensible while producing a cramped mobile page. Check the heading hierarchy, paragraph rhythm, image captions, and any code that needs horizontal scrolling. Writing is part of the interface.
A static export in Next.js generates HTML and associated assets during the build. Routes for articles need to be known at that time. This suits a notebook whose posts live with the project source. Adding a new post means updating that source and rebuilding; it does not mean maintaining a runtime publishing service.

Spend the effort on the reading page
The reading experience deserves more attention than a complicated dashboard. Give the text a comfortable width. Make section headings useful enough to scan. Include images because they explain or support an idea, with descriptive alternative text and captions that tell the reader what to notice. A decorative cover is fine too, as long as it does not pretend to be evidence.
Word counts and estimated reading time can help set expectations. Keep the estimate simple and acknowledge what it is: an estimate. A reader studying a code example may take longer than someone skimming a short reflection. The numbers should guide a decision, not imply that everyone reads at the same speed.
For technical posts, code should be readable on narrow screens. It can scroll within its own block rather than making the whole page wider. A table of contents can offer direct links to longer sections. These are modest features, but they make the notebook much easier to use.
Add features when the writing needs them
Tags and categories can come from post metadata. Search can use a small index shipped to the browser. A feed can be generated alongside the pages. These ideas do not automatically require a custom backend; the content already exists during the build. The tradeoff is that updates become visible after another deployment.
Comments, subscriptions, and a private editing dashboard are different requirements. They introduce user input, storage, access control, or an external service. Those can be useful, but they should be added because the publishing workflow needs them. A notebook does not become more personal just because its architecture becomes more complicated.
The small version leaves room to learn what the blog actually wants to become. Publish a few useful pieces, notice what is difficult to maintain, and improve that part. The first milestone is a page worth reading. The dashboard can wait until it has a real job.
What changed when this portfolio outgrew file publishing
On 26 October 2026, this site moved to MongoDB-backed articles, cached server-rendered pages and a password-protected studio. Article images now upload to Vercel Blob. The earlier sections describe the original static approach; they are not instructions for publishing on the current site.
The reason to change was editorial convenience: a new article or image should not require a source-code deployment. That introduced responsibilities the static version did not have, including database access, input validation, authentication, backups and cache refresh behavior. The browser still receives readable article HTML; moving storage does not require shipping every article body to the client.
Choose the smallest publishing system that fits the work
File publishing works well when the author is comfortable with Git and changes are infrequent. A database and private editor become useful when publishing frequency or editing needs make rebuilds awkward. Neither architecture guarantees rankings. Both need stable URLs, useful content and correct metadata.
For this site, direct database edits use request-driven cache regeneration: an old cached page may be served once while it refreshes. Studio saves additionally invalidate affected paths. Verify the public article, archive and sitemap after publishing rather than assuming a successful database write means every visitor already sees the change.
| Concern | Original static approach | Current approach |
|---|---|---|
| Article source | Versioned content files | MongoDB published records |
| Publishing | Build and deploy | Private studio or Compass |
| Images | Deployed assets | Uploaded public Blob files |
| Refresh | New deployment | Invalidation and request-driven caching |
| Operational work | Build pipeline | Authentication, database, backups and cache checks |



