Skip to content

Colophon

How this site is made

The stack, type, hosting and privacy model behind lucian-dev.com, and every release — generated from the repository when the site is built.

Stack

Read from the packages installed when the page is built, so the versions are the ones serving it. The same list, with more detail, is on /uses.

Framework
Next.js16.4, React18.3, TypeScript5.9
Interface
Chakra UI2.10, Framer Motion10.18, dnd kit6.3, Tiptap3.31
Content
MDX3.1, GFM4.0, Shiki4.5, gray-matter, sharp0.35, OG images0.11, PDFKit0.20
Data
SQLite12.10, Cloudflare R2, MongoDB6.21
Platform
JOSE (JWT)4.15, Nodemailer10.1
Infrastructure
Docker, Node.js22.23, Cloudflare

Type

Set in Geist and Geist Mono by Vercel, released under the SIL Open Font License 1.1 (licence text). Both are self-hosted variable fonts — no font CDN, no third-party request — and the same faces render the social cards. Chinese text falls back to the system’s CJK fonts.

Interface icons are Lucide outline icons, released under the ISC licence (the ones derived from Feather under MIT; licence text). They are inlined as SVG, sized on a 4 px grid; the brand marks are Font Awesome Free brands (CC BY 4.0).

The ORCID iD icons that may appear next to an ORCID iD on the CV, publications and about pages are trademarks of ORCID, Inc., drawn exactly as ORCID provides them and used only as its iD display guidelines allow — in front of the full https://orcid.org/… address, linking to that record: the green iD for an iD the owner confirmed by signing in to ORCID, the outlined iD followed by “(unauthenticated)” for one that was typed in (trademark note). They are not part of this site’s open-source licence.

Hosting

  • Next.js (Pages Router) and React, built into one Docker image and run on a VPS in Tokyo.
  • The container publishes no public port: it is reached only through a Cloudflare Tunnel, and Cloudflare terminates TLS.
  • Content lives in SQLite on the server and is mirrored to Cloudflare R2 off-site; whole-site snapshots (database, uploads, history) are taken on top of that.
  • Pages are server-rendered or regenerated in the background when content changes, and every deploy is health-checked with an automatic rollback.

Self-assembling pages

/now shows what I write there when I have written something. Otherwise it assembles itself from data already on the site: current roles and studies from the public CV (entries hidden from the website never appear), the “currently coding” note from the home page, and the latest post and case study. Its status line gives the date the newest of those sources last changed, and the page regenerates within a minute of a change.

/uses works the same way: my own write-up first when there is one, then the stack above, with the versions this build installed, each time the page is generated.

Privacy & analytics

The site counts visits, and a few actions such as CV downloads, with its own first-party analytics. There are no cookies, no identifiers stored in your browser and no third-party analytics scripts.

  • Each page view records the path, the referring site (host name only), the country from Cloudflare’s country header, a coarse device and browser class, the page language and a visitor ID.
  • The visitor ID is a truncated hash of your IP address and browser user agent combined with a secret salt that is kept only in memory and replaced every day. It cannot be reversed, and the same visitor gets a different ID the next day. Your IP address and user agent are never stored.
  • A few actions are counted as events, each with at most one detail from a fixed list: downloading the CV (its language and format) or printing it (its language), saving the vCard, clicking an e-mail link (the page it was on, never the address), clicking a link to another site (that site’s host name only, never the full address), sending the contact form (only the topic you picked — role, freelance project, collaboration or other — never what you wrote) and reaching the end of a post or case study after scrolling through it (its path). An event also records the day and the visitor ID above, which links a visit to a download on the same day and on no other. CV downloads, vCard saves and sent messages are counted by the server as it answers; the others are sent by a few lines of script on the page.
  • When a search in the ⌘K palette finds nothing, the search text is recorded so I can see what people look for and do not find: lowercased, cut to 40 characters, and only when it contains no @ and fewer than six digits, so e-mail addresses and phone, ID or order numbers are never kept. These searches and their daily totals are deleted after 35 days.
  • If your browser sends Do Not Track (DNT: 1) or Global Privacy Control (Sec-GPC: 1), nothing is recorded — no page views and no events. Bots, automated browsers and my own visits are not counted either.
  • Real-user performance timings (Core Web Vitals: LCP, INP, CLS, FCP, TTFB) are recorded per page with the device class only — no visitor ID. For LCP, INP and CLS they also note which element of the page was involved (named by the site’s own markup, never by its text) and how long each step took.
  • When a page fails with a script error, or your browser blocks or flags something under the content security policy, the site sends itself a report: the error and where in the code it happened (with query strings, e-mail and IP addresses and anything ID-like removed), the page path and the browser family — no visitor ID. Reports are deleted after at most 90 days.
  • The data stays in a separate database file on the server and is never part of the content backups or the R2 mirror. Page views and events — the only records with a visitor ID — are deleted after 35 days; the daily totals counted from them, after at most 400 days.

Videos in articles are click-to-load. Until you press play, the page shows a still image stored on this site and makes no request to YouTube or Vimeo. Pressing play loads the player from youtube-nocookie.com (YouTube’s privacy-enhanced mode) or player.vimeo.com (with Do Not Track), and their own privacy policies apply from then on.

I sometimes share a version of my CV tailored to one role through a private link (/cv/r/…). Such a link expires, can be withdrawn at any time, and is never listed, indexed or kept in a cache. Opening one adds one to a count on that link and keeps the day of the latest opening — no cookie, visitor ID, address or device detail — and only once the page has really been shown in a browser: link previews in chat apps, mail scanners, Do Not Track and Global Privacy Control are not counted. Private links are not part of the site analytics above.

Messages sent through the contact form are handled separately:

  • What you type — your name, e-mail address, message and any details you add about a role or project — is stored in a private inbox on this server, and may be forwarded to my own mailbox, only so I can reply. It is never shared, published or used for anything else. The form sets no cookie; an unsent draft is kept only in your own browser and cleared when you send it.
  • Messages are deleted automatically after the period stated under the form (12 months unless configured otherwise); a nightly job removes older ones. Full-site backups, which include the inbox, are rotated, and backups older than that period are deleted as well (the newest one is always kept).
  • To have a message deleted sooner, write to the address on the contact page.

I sometimes use AI assistants to help edit this site. They can read what is published and, when I allow it, my own drafts, and they can write drafts. Nothing they write goes public until I approve it. What they read is sent to the AI provider I chose for that task, under that provider’s terms. They have no access to contact messages, visitor analytics or error reports: the code gives them no way to read them, and a test fails if that changes.

Build

This page was generated on from commit e0cf152. The source is on GitHub.

Changelog

  1. 2.5.0Latest

    The final batch of this round: Chinese versions of the main pages, a rebuilt image viewer, and new tools for the owner — scheduled publishing with review links, a media library, tailored CV versions shared by private link, deeper analytics and a visual editor that keeps everything an article can hold. A final review added contrast, focus and layout fixes across the header and the admin.

    Added

    • Chinese pages: /zh, /zh/about, /zh/work, /zh/blog and /zh/contact show the owner's own Chinese copy and the posts and case studies written in Chinese. A Chinese page exists only while its copy does (never a machine translation or a placeholder), and each English and Chinese pair is linked with hreflang in the pages and the sitemap. The owner writes the Chinese home, about and contact copy in the Home and About editors, which show which Chinese pages are live.
    • Chinese interface: on Chinese pages the header, footer, mobile menu, command palette, theme menu, messages, empty states, the 404 page and the contact form's errors are in Chinese, and the Chinese typesetting of articles (Chinese fonts and punctuation, space between Chinese and Latin text) now covers every Chinese page. The header's language switch leads to the same page in the other language and is hidden when there is none.
    • Image viewer, rebuilt for article images and the home Field Notes: the image grows out of the photo you pressed and flies back into it when closed. On touch screens, swipe between images, drag up or down to close, pinch to zoom up to 4× and pan with momentum, or double-tap to zoom; with a mouse or trackpad, use the wheel or a pinch to zoom at the pointer, click to zoom and drag to pan; the arrow keys, + / − / 0, Home, End and Esc work too. Zooming in loads a sharper copy, a click or double tap stops at the photo's full resolution instead of a blurry upscale, and pinching never leaves the page itself zoomed.
    • Scheduled publishing: a draft, or the saved changes to a live post or case study, can be set to go live at a chosen time and optionally to come down again later, with quick picks and both the site's and the device's time zone shown. The server publishes on time, refreshes the pages, feeds and sitemap, and after a restart catches up on anything it missed, logging what it could not publish and why. Admin → Scheduled & review links shows what is coming, day by day.
    • Review links: a private link that expires after 1 hour to 30 days shows a draft or unpublished changes read-only, exactly as they will look, under a "Preview" bar. Review pages are never cached or indexed and send no referrer, views are counted as a number only, and deleting the item turns its links off.
    • Media library (Admin → Media): every upload in one place, searchable, filterable (no alt text, unused, large, missing sizes) and showing every page that uses each image. Each image gets a default alt text and caption in English and Chinese, offered by a new image picker wherever an image is chosen (the editor, covers, home photos and logos, the avatar, the CV's PDF photo) and filled in with one action on every page that shows the image without one. Replacing a file updates every reference and redirects the old address; deleting is refused while the image is in use and goes to a 30-day trash with Undo.
    • Where each part of the CV shows: any section, entry, field, list or single bullet can be limited to public pages, downloads (PDF, text, JSON, vCard) or private links, so a phone number can stay in the PDF without appearing on the public site. Hidden still wins everywhere; CV Studio sets it from a "Shows on" menu beside each eye.
    • CV variants and private links: named selections of sections and entries in their own order (say, "Machine learning" or "Full-stack"), with a page target checked against the real PDF in both languages, shared by private links that expire after 7 to 365 days and can be extended or revoked. A shared CV is never cached, indexed or recorded by analytics; the owner sees only how often a link was opened and the day of the last open.
    • Analytics to explore: any period from today to the last 12 months (or a custom range), compared with the one before; filters by page, referrer, country, device, browser and language (click any row to add one), kept in the address; a detail view per page; the most common paths to each goal; and CSV export of one table or all of them. An opt-in weekly e-mail digest sums up the previous week. Nothing new about visitors is stored.
    • A visual editor that keeps everything: posts and case studies go between the visual editor and MDX without loss (components, expressions, footnotes and reference links stay exactly as written and can be edited in place), so they no longer force the MDX tab. New blocks for tables (keyboard navigation, column alignment), callouts, videos with their stored poster, and captioned figures at text, wide or full width; blocks move by drag handle or Alt+↑ / ↓, and pasted Markdown arrives formatted. A post's cover can have a focal point, around which its social card is cropped.

    Changed

    • Header: while the owner is signed in, Dashboard and Log out share one menu beside the wordmark, so nothing crowds or shifts when it appears; on wide screens the navigation is centred and stays in the same place on every page; on phones narrower than 375 px the language switch shows only its icon.
    • Article tables honour each column's alignment.
    • The public home, about, CV, publications and Chinese pages load about 2 KiB less JavaScript (gzip), with nothing changed on screen.
    • Admin accessibility: CV Studio and the admin's fields, menus and messages meet WCAG AA contrast in both themes (4.5:1 for text, 3:1 for field edges and icons); keyboard focus always shows the accent ring (some rings were black, invisible in dark mode); focus moves to a sensible control after dialogs and actions; and the editor's small controls are at least 24 px tall.

    Fixed

    • ⌘K opened again while the previous palette is still closing puts the cursor in the search field (typing went nowhere), and focus returns to where it was opened from.
    • When the browser abandons a page transition (a slow sign-in redirect or network), no uncaught error reaches the console or the admin's Errors panel.
    • The rows on the home and about pages (skills, certifications, experience, repositories, activity) now also rise in on a first visit over a cold cache or a slow network.
    • A downloaded CV without an introduction no longer shows two rules in a row under the header.
    • The owner's draft preview bar stays above the footer, and tabbing through the footer never leaves a link hidden under it.

    Security

    • Trailing-slash redirects now carry every security header, so the slash form of a private CV or review link is just as private, uncached and unindexed, and every redirect has the Content-Security-Policy.
    • Review-link and private-CV-link tokens are signed and stored only as hashes in the sign-in database, which a content restore never touches, so a link that was turned off cannot come back.
    • Making or extending a private CV link and deleting an image for good ask the owner to confirm with a recent sign-in.
    • Hidden and audience-limited CV content stays out of every public output (pages, page data, the API, structured data, search, Ask and the files), checked by a leak test across every output and surface.
  2. 2.4.0

    What went live after 2.3.0, in two rounds of work and their reviews: real PDF and machine-readable CVs, publications with ORCID, search that reads Chinese and answers questions with quotes from the site, a narrative about page, richer articles and case studies, a much lighter site and a stronger admin. Security moved to a hash-only Content-Security-Policy, passkeys and per-browser sessions.

    Added

    • Real PDF CVs: /cv.pdf and /cv/zh.pdf are rendered on the server (selectable text, embedded fonts for Latin and Chinese, tagged headings, lists and links) and re-rendered on every CV save, so a download always matches the page; "Download PDF" now downloads the file instead of opening the print dialog. Plain-text and JSON Resume versions in both languages (/cv.txt, /cv.json and their Chinese twins) suit application forms, and every version says when the CV was last updated.
    • Publications: a CV section for papers, preprints and theses, and a /publications page with formatted citations, collapsible abstracts, Copy BibTeX / APA and filters by year and status. Papers also appear in the PDF, text and JSON CVs, in a "Selected Publications" home section, in search and in the CV's skill evidence. Unpublished work always shows its real status, and nothing appears until a public paper exists.
    • ORCID iD: a checksum-validated iD shown the way ORCID's guidelines ask on the CV, /publications and /about, and carried by the CV files, the vCard and the structured data. The owner can connect it through ORCID's own sign-in so it shows as authenticated (a typed-in iD is marked unauthenticated) and import papers from the public ORCID record.
    • Search and Ask: ⌘K search reads Chinese (the Chinese CV included), searches what a question means rather than its question words, links common recruiting terms across English and Chinese (internship ↔ 实习) and marks the matched words. Ask answers a question in English or Chinese only with passages quoted from the site, each linking to and highlighting its spot on the page; it runs entirely in the browser (no AI model, no request), says so when the site has no answer, and can carry the question into the contact form.
    • Home and about: the owner orders and hides the home sections (with a recruiter-first preset) and can add up to four linked highlights under the hero; the Open Source band is compact, with an accessible contribution calendar; the home page's contact is the availability card and a link to /contact. /about becomes a narrative page with a sticky identity rail, an owner-written bio and the full CV sections.
    • Articles and case studies: click-to-load YouTube and Vimeo players (nothing loads from either before play); callouts, footnotes, wide and full-width figures, and galleries laid out by aspect ratio; an "At a glance" outcome with metrics on case studies and uniform covers on /work; an author card with sharing (copy link, the system share sheet, LinkedIn, a WeChat QR code); posts and case studies linked both ways, tag filters on /blog and /work, and an archive of every project at the end of /work.
    • Chinese articles and translations: Chinese posts and case studies get Chinese typesetting and interface words (dates, labels, navigation), and versions of a piece in different languages link to each other with a language switch and hreflang while lists show the piece once. Every published post and case study is also served as Markdown at its address plus .md, and /llms.txt lists the site for language models.
    • The CV for recruiters: GitHub, LinkedIn, live-site and source links in the header and projects; skill evidence that links each skill to the roles, projects and writing that use it; an owner-written right-to-work line; recommendations shown only with each person's permission; and, on the Chinese CV, a job intent (求职意向), a self-assessment and an optional photo in the PDF only. CV Studio's Readiness panel checks dates, weak openings, measurable results, length and missing links in both languages.
    • Contact: choosing a reason reveals a few optional questions (company, a job posting link, a timeline); the form says what is kept and for how long, and messages are deleted automatically after a set period (a year by default).
    • Motion and keyboard: cards morph into the page they open and back; pages fade through instead of overlapping; a thin bar marks a slow navigation; the command palette appears instantly from the keyboard and gathers Theme, CV, Contact and Keyboard shortcuts into nested pages; taps give press feedback without sticky hover; on phones the header tucks away while reading down. Visitors get keyboard shortcuts (J / K through lists, [ / ] between articles, T for the theme, ? for the list), which can be switched off.
    • Look and identity: a System / Light / Dark preference applied before the first paint; a typographic monogram as favicon and app icons; one icon set; a hero that dissolves into the page; a three-column footer with the deployed commit; a mobile menu that follows a swipe; a 404 page with "Did you mean" suggestions; and this page's release timeline.
    • Writing tools: edits to a live post or case study stay unpublished until reviewed against the live version; slugs can change, with every link rewritten and the old address redirecting; previews of the Google result and the LinkedIn, X, WhatsApp, Slack and WeChat cards; word counts, find and replace, focus and typewriter modes; site-wide tag management and a one-click .zip export of all content.
    • Running the site: a content health center (broken links, image and heading issues, one-click safe fixes); cookieless goals such as CV downloads and contact messages, with a Source → CV → Download conversion and the searches that found nothing; an Inbox with folders, search, stars and archive, and replies sent from the admin; an activity log of every admin change; the whole admin reachable from the keyboard; Web Vitals traced to the elements behind them; self-hosted error monitoring, a system health page and a weekly test restore of the newest backup.

    Changed

    • Lighter and faster: shared JavaScript on every page went from about 204 to 167 KiB (gzip) and the preloaded fonts from 138 to 68 KiB. Uploaded images are served as AVIF or WebP at sizes that fit the screen (a 763 KB screenshot now arrives as 21 KB), over a blurred placeholder that shows from the first paint.
    • Pages that stay current: home, /about, the CV pages, /contact and /publications are static pages regenerated right after every save that changes them, and home and /about come back instantly on Back.
    • Plain section headings: the bracketed index labels ("[01] INTRODUCTION", "[POST]") are gone; every section opens with one plain heading.

    Fixed

    • Deleted or unpublished posts, case studies and pages no longer come back after a server restart.
    • A deploy purges the edge cache and keeps the previous week's scripts available, so open tabs and cached copies of old pages keep working; the CDN keeps HTML for five minutes at most.
    • In ⌘K, Enter on a typed title opens that page even while the search index is still loading, instead of switching to Ask.
    • On phones, toasts no longer cover the CV's action bar or the draft preview bar; on touch screens with a keyboard, focus hints come back and "?" lists every shortcut.
    • Several large uploads at once no longer exhaust the server's memory: images are encoded one at a time.

    Security

    • Strict Content-Security-Policy: scripts run only from this origin or by hash, never as inline handlers; sources are tighter, violation reports land in the site's own Errors panel, Trusted Types run in report-only mode, and Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy and a complete Permissions-Policy are sent.
    • Passkeys and sessions: the admin can sign in with a passkey (with recovery codes and an optional passkey-only policy); every signed-in browser is listed and can be signed out on its own, with a sign-in history; restores, deletions and security changes ask "Confirm it's you".
    • Admin pages check whether a session was revoked, so a signed-out browser cannot open them with an old cookie; browsers signed in before sessions existed can now be signed out too, and an unreadable admin record locks the admin instead of reopening revoked sessions.
    • Anonymous reports and failed sign-ins can no longer flood the error monitor or push real entries out of the sign-in history; the sign-in database's files are owner-only from the moment they are created; social cards render only parameters the server signed.
    • Draft or deleted case studies are no longer named in public CV or post data, and the container runs without Linux capabilities, with no-new-privileges and a process limit.
  3. 2.3.0

    A research round across eight directions (UI, motion, reading, recruiter value, admin, performance/SEO/accessibility, advanced features, security and operations) with a live defect sweep of production, followed by the fixes for every confirmed defect that needed no owner input, an adversarial review of those fixes, and the move to Next.js 16.

    Fixed

    • The home page no longer widens past the screen once its lazy sections mount (phones zoomed out to 1439 px); stat labels and accordion titles wrap instead of breaking or truncating.
    • The hero only claims what is current: an ongoing role or study, otherwise no chip (it showed a job that ended in March); location and languages come from the CV in the CV's order. One Person entity on every page, with the real portrait.
    • Real-user Web Vitals are recorded (none were before), and a CLS or INP that grows after a tab switch replaces the earlier value.
    • Admin saves keep frontmatter fields the editors do not show (SEO title, updated date, language, cover alt); article images get their srcset once variants exist; footnotes stay out of the table of contents, are localised in Chinese articles, and highlighted code lines and file names render.
    • Back/Forward run the directional page transition; open menus and dialogs no longer ghost over the next page; sections are visible in the first frame after a client navigation; printing shows every row.
    • Keyboard: focus moves to the new page after navigation and is never hidden under the sticky header (WCAG 2.4.11), focusing the header or the CV action bar no longer scrolls the page, and single-key shortcuts can be switched off (WCAG 2.1.4).
    • English chrome on Chinese pages is marked lang="en"; header glass and form errors meet contrast; light visitors no longer see a repaint; the mono fallback no longer shifts article metadata; dark-theme prints are readable, and only the CV page forces A4 without margins; head tags are unique.
    • Operations: /api/health shows details only to the admin (or a HEALTH_TOKEN), and a malformed session cookie can no longer make admin routes answer 500; deploy backups keep the 10 newest; the IndexNow key is served from the site root; /.well-known/security.txt exists; /colophon and SECURITY.md describe the stack accurately.

    Platform

    • Next.js 15.5.27 → 16.3.8 (Pages Router, React 18.3 unchanged: the Pages Router uses the React in package.json and Next 16 still accepts 18.2+). 16.3.8 carries the same 2026-09-30 security fixes as 15.5.27 (SSG/ISR cache poisoning) and more; Next 15 leaves maintenance LTS on 2026-10-21.
    • Builds stay on webpack: Next 16 defaults to Turbopack, so yarn dev / yarn build (and with them the Dockerfile and CI) run next dev --webpack / next build --webpack. next build no longer runs ESLint (CI lints separately, as before).
    • Next 16 sets "jsx": "react-jsx" in tsconfig.json; the classic import React from 'react' lines that only served JSX are gone (76 files).
    • Still on deprecated-but-supported Edge conventions, kept on purpose: middleware.ts (Next 16 calls it proxy.ts, which cannot run on the Edge runtime) and the Edge /api/og route. next build prints a deprecation notice for each.

    Removed

    • The optional Sentry integration (@sentry/nextjs 8 does not support Next 16, and no DSN was ever configured): the withSentryConfig wrap, the sentry.*.config.ts files, the Sentry parts of instrumentation.ts (it still starts the backup schedule and adds no-transform to HTML), the API wrapper, the error boundary and _error, the NEXT_PUBLIC_SENTRY_* build args, the env docs and the Sentry hosts in the CSP connect-src (now 'self' https://api.github.com). The standalone output no longer ships the SDK or OpenTelemetry (135 MB → 109 MB).
    • Every audit allowlist entry: none is reported any more (Next 16 ships postcss 8.5; the Sentry build plugin was the only path to the others).
  4. 2.2.0

    A research-driven round (benchmarks of leading developer portfolios and CMS admins, live visual/performance/accessibility/SEO audits) on a new platform: Next.js 15.5 and patched dependencies.

    Security

    • Next.js 14.2 → 15.5.27 (Pages Router, React 18): closes the image optimizer RCE/DoS, rewrite SSRF/smuggling and SSG/ISR cache-poisoning advisories. On-request image optimization is disabled (/_next/image → 404); uploads are resized and converted at upload time instead.
    • Tiptap 3.31.3, prosemirror-view 1.42.6, nodemailer 10.0.12, sharp 0.35.5 and resolutions for vulnerable transitive packages; CI audit gate with a reviewed allowlist (build-time tooling only).
    • MDX renders from a server-built tree without eval; the production CSP no longer allows 'unsafe-eval'. Embeds are an allow-list (YouTube, Vimeo, figures).
    • Every server-side fetch of a content- or admin-supplied URL goes through lib/security/safeFetch (public addresses only, DNS pinned, redirects re-checked, size and time limits).
    • Uploaded and imported images lose their EXIF / XMP (GPS, camera serials) — losslessly when no resize or rotation is needed — and images that decode to more than 80 MP are refused with 413.
    • Compiled articles and the feeds only carry safe link and image URLs (javascript: / data: are removed); embeds accept player URLs only.
    • Signing out also ends Draft Mode, and the Draft bar's Exit works without a session.
    • Analytics records article paths only for published slugs and gives each client and network a bounded share of the event budget.
    • The tracked CV seed holds only public content; an old snapshot is no longer tracked.

    Added

    • Typography & motion: real Geist Sans/Mono (two preloads, ~141 KB), balanced headings and tabular figures; circular theme reveal from the toggle; directional page transitions with a pinned header; blur-rise hero headline; cursor-lit card borders and hover-intent lists; scroll-driven experience rail; shared-element photo lightbox; number roll-ups. All transform/opacity only and off under reduced motion.
    • Home: faster hero (pre-baked responsive WebP), Skills from the CV, writing & case-study links, full-width Field Notes, GitHub data rendered in the HTML, indigo contribution graph.
    • Command palette 3.0: loads on demand, searches posts, case studies and CV entries, owner actions (inbox, backup, log out), vCard and booking.
    • Articles: GFM tables/strikethrough, zero-CLS responsive images, refined reading layout, full-content /feed.xml, /work/feed.xml, /feed.json, Draft Mode with an Edit pill.
    • Pages: /cv/zh as a real Chinese page (title, description, JSON-LD), per-entry CV anchors, contact availability card, vCard and QR, /colophon generated from the repository.
    • Authoring: local drafts and conflict-safe saves for every editor, item history and undo-delete, compile-checked publishing with a checklist, side-by-side live preview, slash menu, upload-time WebP variants and safe remote image import.
    • Admin: status hub with "Needs attention", Save and leave dialog, keyboard shortcuts overlay, sortable home cards, CV/home validation, and first-party cookieless Analytics with real-user Web Vitals.
    • Operations: scripts/deploy.sh (bundle-based deploy with backups, health/warm-up gating, smoke test and automatic rollback), scheduled change-aware backups, structured JSON logs with request ids, Playwright + axe browser tests and a performance budget in CI.

    Changed

    • Shared JavaScript 225 → 204 kB (_app 137 → 114 kB): palette, drawer and below-the-fold widgets load on demand; brand icons are inline SVG.
    • docker-compose.override.yml is no longer tracked; copy docker-compose.override.example.yml on a new server.
    • Lint runs through the ESLint CLI over the whole repository.
    • Upload variants keep the original's extension (photo.jpg.w640.webp), so originals with the same stem never share variants.

    Fixed

    • Lists, quotes and the slash menu's list items in the editor (a duplicate prosemirror-model broke wrapping and list splits).
    • A post with an image inside a sentence no longer fails hydration; inline code wraps instead of being clipped on narrow screens.
    • RSS publish times match the JSON Feed and structured data.
    • Keyboard focus no longer dims the other rows of hover lists; the hero name appears at once under reduced motion; the lightbox allows pinch-zoom.
    • The vCard no longer falls back to the built-in name when the owner hides the name fields.
    • scripts/deploy.sh: a live analytics write during the backup no longer aborts the deploy, --force on the same commit recreates the container, and a dropped connection during the build restores the server.
  5. 2.1.0

    Hardening and polish on top of 2.0.0, after two adversarial reviews (81 confirmed findings fixed) and an end-to-end check against a copy of the live content store.

    Added

    • Admin Inbox (/admin/dashboard?tab=inbox, Alt/⌃+5): every contact message is stored with whether it was emailed — readable and answerable (reply-by-email with the original quoted) even when SMTP is not configured. Read/unread, delete, unread badge, keyboard navigation. Site-wide daily and size caps; full-site backups include it and restores merge it without bringing deleted messages back.
    • CV Studio: hidden-items panel (every hidden section/entry/field/bullet in EN and 中, jump-to and one-click Show), A4 CV / Website preview, alignment badges for linked EN↔中 lists, drafts that remember the version they were based on.
    • Admin-only reads with optimistic concurrency: GET /api/admin/cvdata and /api/admin/home return the full documents with a version ETag; saves send If-Match and get 409 instead of silently overwriting newer edits. Public GET /api/cvdata / /api/home always return the pruned view, even to a signed-in admin.
    • Mobile CV reading mode with a sticky Download PDF / EN·中文 / Copy link bar; self-updating /now and /uses built from the public CV, the currently-coding note, the latest writing and the curated stack.
    • Articles: heading anchors, sticky table of contents, reading progress, prev/next and related items; command palette 2.0 (fuzzy ranking, recents, in-page jumps, CV / theme / link actions).
    • On-demand revalidation: saving a post, case study, page, CV or home page refreshes the affected static pages immediately; a boot-time warm-up (scripts/warm-isr.mjs) replaces the image's build-time pages before traffic arrives.
    • Persistent header/footer across navigation, native view transitions, real PWA icons, AA-contrast accent tokens.

    Fixed

    • next build failed with "database is locked" when the store did not exist yet (always the case in the Docker build).
    • Next's res.json() replaced version ETags with a body hash, so every conditional save conflicted (lib/http.ts sendVersionedJson).
    • Editors could load the pruned public CV after a session expired and save it back, deleting hidden content.
    • A full-backup restore was undone on the next boot; public pages kept reading the old database after a restore; failed R2 writes could be reverted by the boot sync (r2_pending now repairs them).
    • Hidden end dates showed as "Present", hidden expiry dates as "No Expiry"; linked hide toggles could hit the wrong 中 entry; "Sync 中 ← EN" dropped 中-only hides; duplicating a hidden entry made it public.
    • Home page layout shift on phones (CLS 0.28–0.48 → none); light-mode dark flash; portals without the site fonts; /cv language not following client navigation; social cards blocked by robots.txt.

    Security

    • Middleware refuses cross-site and non-JSON writes to admin/content APIs.
    • Login: per-(email, IP) lockout plus a real site-wide throughput cap under attack, a signed known-device cookie for the owner, identical responses for unknown e-mail vs wrong password, async scrypt.
    • Logout and password reset revoke every issued session.
    • Client-IP headers trusted only from loopback and the container's default gateway unless TRUSTED_PROXY_IPS is set.
    • Contact form: the sum is issued and verified by the server (HMAC bound to the single-use nonce); JSON-LD escaped against script breakout; one upload-name rule for upload, serving and backups.
  6. 2.0.0

    Added

    • CV visibility at every level. Hide / show any section (separately for the CV/PDF and for the website), any entry (degree, job, project, highlight, certificate…), any field (e.g. Education → GPA, phone, email) and any single bullet or tag. Hidden content is removed server-side from /, /about, /cv and the unauthenticated GET /api/cvdata (lib/cvVisibility.ts, readPublicCvData()).
    • CV Studio rewrite (components/Admin/CVEditorStudio.tsx, components/Admin/cvStudio/*): schema-driven forms for every section (lib/cvSections.ts), per-field eye toggles, collapsible entry cards with drag-and-drop / duplicate / delete-with-undo, bullet editor (Enter = new bullet, Backspace on empty = remove, Alt+↑/↓ = move, multi-line paste), tag input, month pickers with "Present", one undo history for EN + 中 with typing coalesced per field, EN ↔ 中 linked visibility & structure, in-editor "Sync 中 ← EN" (undoable), local draft recovery, overwrite guard when the CV changed elsewhere, live fit-to-width A4 preview with page-break guides, responsive panes.
    • Patents and Languages sections now render on the A4 CV and on /about (patents data existed but was never shown).
    • /cv?lang=zh and /cv?print=1; language-aware dates (Sep 2024 / 2024.09), labels (至今, 预计, 电话, 邮箱) and Chinese name order.
    • Curated, grouped tech stack (/api/stack) instead of a raw dependency dump; copy button on MDX code blocks; real G-then-key navigation shortcuts in the command palette.

    Fixed

    • Studio wrote Awards to competitionAwardsList and Extra Skills to extraSkills (the viewer reads awards / points), so those edits never appeared; missing editors for highlights, related skills, certificate details and patents.
    • Header: menu missing on phones for 7 routes and on all tablets; sticky header never stuck; links did full page reloads; Dashboard / Logout never appeared (httpOnly cookie read from JS); the "last commit" pill wrapped onto three lines beside the full nav.
    • Affiliation logos overflowed the page horizontally on tablets (fixed 160px chips in a 4-column grid).
    • Dashboard mounted every editor at once — the Studio's ⌘S/⌘Z fired on other tabs and editors overwrote each other's saves.
    • Image uploads over ~750 KB failed (1 MB body limit); same-name uploads overwrote each other; PNG logos lost transparency.
    • Home editor could wipe the home page if its load failed; upload callbacks reverted edits made during the upload.
    • Raw JSON editor rewrote every curly quote in CV text on save.
    • Version restore didn't snapshot the current state first; snapshot times were shown in the wrong timezone.
    • Backup restore hung on a corrupt archive; non-atomic DB swap; local snapshot path check could be bypassed.
    • MongoDB backup/restore used stale seed files instead of the live store (restores silently changed nothing); image restore allowed path traversal; connection string returned to the browser and cached in localStorage.
    • MDX frontmatter dates crashed static generation; deleted posts could be resurrected from disk seeds or a stale R2 copy.
    • Floating section nav targeted IDs that didn't exist; hero typewriter leaked timers; a marginTop: 320px hack triggered by any URL containing "edit"; About hero hook-order bug; syntax highlighting colours never applied.
    • Blog/work editors: tags couldn't contain commas/spaces while typing, fields editable before load, "New" could overwrite an existing slug.

    Security

    • Login lockout is now per (account, client IP) with a global breaker, so a stranger can no longer lock the admin out; failures against a wrong email no longer count. Admin email compared case-insensitively.
    • One shared admin-auth helper with the JWT algorithm pinned (HS256).
    • Rate limits keyed per route + IP (one endpoint can't exhaust another's budget), bounded memory, optional TRUSTED_PROXY_IPS.
    • Contact nonces audience-scoped; contact form returns an error when a message could be neither mailed nor stored; mailer no longer logs bodies (reset links); SMTP timeouts.
    • Reset-password validates token / password before consuming the token.
    • Uploads: AVIF brand check, never overwrite, served with a sandboxing CSP; CSP drops unused hCaptcha / Binance hosts; production browser source maps disabled.

    Changed

    • Docker: named volumes for /app/data and /app/public/uploads (admin password changes, history, backups and uploads now survive redeploys); NEXT_PUBLIC_* passed as build args; runtime state excluded from the build context. CI on Node 22. Boot-time R2 sync keeps newer local edits.
    • GitHub proxies: fetch timeouts, shared in-flight requests, short failure caching, CDN cache headers; stats hide instead of showing zeros.
    • Accessibility: skip link + <main> landmark, one h1 per page, labelled icon buttons, accessible carousel (pause / play, keyboard, captions as alt text), combobox semantics in the command palette, prefers-reduced-motion honoured by every animation, AA contrast fixes.
    • Removed 38 unused dependencies (MUI, FontAwesome, Formik, axios, next-auth, i18n stack, styled-components, luxon, …) and ~40 dead files; lint is at zero warnings.

© 2026 lucian-dev.com

Built with Next.js · Set in GeistBuild e0cf152 (opens in a new tab)