I wanted a portfolio that is fast, easy to update from my phone, and honest about privacy. No WordPress, no page builder, no framework. Here is how pudar.me is put together.
Content lives in JSON, the site is built from it
Every text on the site (projects, experience, education, skills, SEO) sits in a few JSON files, with an English and a Serbian version of each string. A small Node script turns them into plain HTML for / and /sr/, plus the sitemap, structured data (JSON-LD) and an llms.txt summary for AI assistants.
The result is two static pages. Nothing runs on the server when someone visits.
An admin panel without a backend
I still wanted a WordPress-like way to edit things. The admin panel is a small vanilla JavaScript app that talks to the GitHub API with a fine-grained token:
- every save becomes one commit with all changed files
- Vercel picks up the commit, builds the site and deploys it
- the panel polls a
build.jsonfile and shows when the change is live
No database, no login server, and every change has a full history in Git.
The build refuses to publish broken pages
Before anything goes live, two checks run after the build. If either fails, the deploy stops and the previous version stays online. They check, among other things:
- every link in the content is
https:,mailto:or a local path - no inline scripts or event handlers (the Content Security Policy blocks them anyway)
- every
var(--something)in the CSS is actually defined (an undefined hover colour once made a button invisible) - heading levels never skip, every image has an
alttext - source files never end up in the public folder
Privacy first
- Fonts are self-hosted, so visitors do not talk to Google just to read the page.
- Google Analytics only loads after the visitor clicks "Allow" in a small banner. Without consent there are no analytics cookies at all.
- A cookieless counter still shows me basic visit numbers.
Performance
- images are resized and converted to WebP at build time
- scripts that measure the layout start after the first paint
- the logo went from 34 KB to 7 KB just by serving it at the size it is shown
Lighthouse on mobile: 97–98 performance, 100 accessibility, 100 best practices, 100 SEO.
What I would tell anyone building a portfolio
- Keep content separate from markup, it makes a second language almost free.
- Let the build check your work, it catches the mistakes you stop seeing.
- Measure before optimizing: my biggest win was an oversized logo, not clever code.
You can see the result at pudar.me. I'm a Web / Frontend Developer from Belgrade working with PHP, JavaScript and WordPress. Questions about any of this are welcome in the comments.
Top comments (2)
The admin panel is the cleverest part of this — you rebuilt the WordPress editing experience as a vanilla JS app, a GitHub fine-grained token, and Vercel, with no database and no login server, and every edit is a commit with full history. That is the whole CMS, minus the server.
Two things I would push on. First, the token: if the panel is vanilla JS running in the browser, the fine-grained token lives somewhere the browser can see it. Is the panel page itself behind a gate, or does the token only have access to that one repo so the blast radius is small? Second, the build checks are the most portable idea here — especially the var(--something) check, since an undefined hover colour once made a button invisible, which is exactly the kind of bug you stop seeing. Do those checks run on every Vercel build, including the ones triggered from the panel?
And the question I would ask before trusting the 97–98: Lighthouse is a lab score, so have you got any field data — even rough timings from the cookieless counter — that says real phones see the same thing? The logo going from 34 KB to 7 KB is a great 'measure before optimizing' story, but it makes me wonder what the next biggest asset is now that the logo is fixed.
Thanks, really good questions!
The token: the panel page is public, but it does nothing without a token, and no key is built into the site. You paste a fine-grained token at login. By default it's kept in sessionStorage, so it's gone when the tab closes. It's only remembered if you tick "stay signed in", and it's only ever sent to api.github.com. The token is scoped to this one repo with Contents read/write only, and it expires. The site also has a strict CSP with no inline scripts. So the worst case with a leaked token is a bad commit to one repo, which git history makes easy to spot and revert.
The checks: yes, every build. Vercel runs npm run build, which includes check.js and check-security.js. A commit from the panel is just another push, so it goes through the same gate. If a check fails, the deploy fails and the last good version stays live. I've since added a daily GitHub Action that checks the live site too: headers, redirects, sitemap, SSL and domain expiry, broken links, and a Lighthouse threshold.
Field data: fair point, I don't have any yet. The cookieless counter only counts visits, and the traffic is too low for CrUX, so the 97–98 is lab only. Real-user Web Vitals are next on my list. And the next biggest asset is the display font: the Bricolage Grotesque variable woff2 is about 130 KB, so subsetting it to the weights I actually use is the next "measure, then optimize" step.