[{"data":1,"prerenderedAt":283},["ShallowReactive",2],{"api:\u002Fapi\u002Fconfig:en":3,"api:\u002Fapi\u002Fprofile:":8,"api:\u002Fapi\u002Fcategories:en":19,"api:\u002Fapi\u002Fprojects\u002Fmd-safe:en":177,"api:\u002Fapi\u002Fnotes:en":231},{"email":4,"lang":5,"name":6,"role":7},"djrciv@gmail.com","en","Ewsirdev","Web developer: websites, landing pages and Go services",{"name":6,"handle":6,"contacts":9,"note":18},{"email":10,"github":12,"telegram":15},{"url":11,"label":4},"mailto:djrciv@gmail.com",{"url":13,"label":14},"https:\u002F\u002Fgithub.com\u002Fewsir247","github.com\u002Fewsir247",{"url":16,"label":17},"https:\u002F\u002Ft.me\u002FEwsirdev","@Ewsirdev","Contacts: Telegram, GitHub, email. This file is the single source of contacts for the site, the contact block, JSON-LD sameAs, security.txt and llms.txt.",[20,49,80,108,144],{"slug":21,"title":22,"blurb":23,"variant":24,"palette":25,"layout":26,"count":27,"preview":28,"stack":44},"landings","Landing pages","One page, one job. Hand-written markup where possible, plus one WebGL experiment.","drop","ice","shots",6,[29,34,39],{"slug":30,"title":31,"shot":32,"hue":33},"landing-studio","Halftone: lighting studio","\u002Fshots\u002Flanding-studio-desktop-sm.webp",212,{"slug":35,"title":36,"shot":37,"hue":38},"landing-saas","Kill Switch: subscription tracker","\u002Fshots\u002Flanding-saas-desktop-sm.webp",182,{"slug":40,"title":41,"shot":42,"hue":43},"landing-event","Small Scale: conference","\u002Fshots\u002Flanding-event-desktop-sm.webp",124,[45,46,47,48],"CSS","HTML","GitHub Actions","JS",{"slug":50,"title":51,"blurb":52,"variant":53,"palette":54,"layout":55,"count":56,"langs":57,"preview":61,"stack":77},"sites","Multi-page sites","Sites with their own structure, routing and forms: from a client project to a set of niche pages.","merge","violet","frames",8,[58],{"lang":59,"count":60},"TypeScript",5,[62,67,72],{"slug":63,"title":64,"shot":65,"hue":66},"legal-multipage-site","Multi-page legal services website","\u002Fshots\u002Flegal-multipage-site-desktop-sm.webp",250,{"slug":68,"title":69,"shot":70,"hue":71},"niche-landings","Catalog of 10 niche demo landing pages","\u002Fshots\u002Fniche-landings-desktop-sm.webp",32,{"slug":73,"title":74,"shot":75,"hue":76},"docs-engine","Sverlo: a documentation generator in Node.js","\u002Fshots\u002Fdocs-engine-desktop-sm.webp",25,[47,59,78,79],"Cloudflare Pages","axe",{"slug":81,"title":82,"blurb":83,"variant":84,"palette":85,"layout":86,"count":27,"langs":87,"preview":90,"stack":105},"apps","Web apps","Apps you use: with a server, auth and e-mail, or offline-first PWAs where the data stays in the browser.","torus","mint","phone",[88],{"lang":59,"count":89},4,[91,96,101],{"slug":92,"title":93,"shot":94,"hue":95},"bad-club-booking-app","Bad Club: seat booking for a gaming coworking space","\u002Fshots\u002Fbad-club-booking-app-desktop-sm.webp",150,{"slug":97,"title":98,"shot":99,"hue":100},"typing-lab","typing-lab: a touch-typing trainer","\u002Fshots\u002Ftyping-lab-desktop-sm.webp",45,{"slug":102,"title":103,"shot":104,"hue":100},"budget-split","budget-split: shared expense tracker","\u002Fshots\u002Fbudget-split-desktop-sm.webp",[59,106,79,107],"Vite","vitest",{"slug":109,"title":110,"blurb":111,"variant":112,"palette":113,"layout":114,"count":115,"langs":116,"preview":125,"stack":141},"backend","Backends","Services with an API, a database and tests: in Go, Rust, Python and TypeScript. A language filter sits inside the section.","crystal","steel","list",24,[117,120,122,124],{"lang":118,"count":119},"Go",12,{"lang":121,"count":89},"Python",{"lang":123,"count":89},"Rust",{"lang":59,"count":89},[126,131,136],{"slug":127,"title":128,"shot":129,"hue":130},"kanban-tasks","Amber: kanban board","\u002Fshots\u002Fkanban-tasks-desktop-sm.webp",344,{"slug":132,"title":133,"shot":134,"hue":135},"link-shortener","Short: link shortener","\u002Fshots\u002Flink-shortener-desktop-sm.webp",111,{"slug":137,"title":138,"shot":139,"hue":140},"booking-slots","Appointment booking","\u002Fshots\u002Fbooking-slots-desktop-sm.webp",65,[142,47,143,118],"Docker","SQLite",{"slug":145,"title":146,"blurb":147,"variant":148,"palette":149,"layout":150,"count":27,"langs":151,"preview":158,"stack":174},"cli","CLI tools","Terminal programs: one binary, clear flags, an exit code you can check in a script.","swarm","champagne","terminal",[152,154,156,157],{"lang":118,"count":153},3,{"lang":121,"count":155},1,{"lang":123,"count":155},{"lang":59,"count":155},[159,164,169],{"slug":160,"title":161,"shot":162,"hue":163},"gitpulse","GitPulse: git repository analytics","\u002Fshots\u002Fgitpulse-desktop-sm.webp",7,{"slug":165,"title":166,"shot":167,"hue":168},"logslice","logslice: log analysis with no dependencies","\u002Fshots\u002Flogslice-desktop-sm.webp",160,{"slug":170,"title":171,"shot":172,"hue":173},"envguard","envguard: a linter and a safe for .env files","\u002Fshots\u002Fenvguard-desktop-sm.webp",35,[47,175,142,176],"CLI","stdlib only",{"slug":178,"title":179,"type":109,"category":109,"lang":59,"live_url":180,"stack":181,"description":187,"highlights":188,"run":193,"hue":194,"og":195,"shots":196,"case":204,"case_lang":5,"prev":225,"next":228},"md-safe","md-safe: a Markdown parser and sanitizer","https:\u002F\u002Fmd-safe.ewsir.space",[59,182,183,184,185,186,107,79,142,47],"Node.js 24","Markdown","XSS","allowlist","fast-check","An API and web demo for safe Markdown-to-HTML rendering in TypeScript. The CommonMark-subset parser is written from scratch and the result always passes an allowlist sanitizer (also own): there is no markdown-it, marked or dompurify in the project. Verification: a corpus of 242 XSS vectors and an independent output checker that does not use the sanitizer code.",[189,190,191,192],"242 XSS vectors (OWASP, PortSwigger, HTML5 Security Cheatsheet) run as HTML and as Markdown in several modes","An independent output checker: a strict template, any extra tag, attribute or scheme counts as a violation","829 tests, including fast-check: the output passes the checker, the sanitizer is idempotent","Heavy inputs (60 thousand \"[\", 100 thousand \"\u003Cb>\") finish in under 3 seconds: parsing is linear","cd md-safe && npm ci && npm run build && npm start",240,"\u002Fog\u002Fen\u002Fmd-safe.jpg",{"desktop":197,"desktop_sm":198,"mobile":199,"dw":200,"dh":201,"mw":202,"mh":203},"\u002Fshots\u002Fmd-safe-desktop.webp","\u002Fshots\u002Fmd-safe-desktop-sm.webp","\u002Fshots\u002Fmd-safe-mobile.webp",1280,800,390,844,{"about":205,"features":208,"run":215,"notes":220},[206,207],"The task: render user Markdown safely without blindly trusting ready-made libraries, and be able to prove XSS does not get through.","The solution: TypeScript, a CommonMark-subset parser and an allowlist sanitizer written from scratch (the sanitizer is about 380 lines). Verification is independent of the implementation: a corpus of 242 vectors and a separate output checker with a strict template.",[209,210,211,212,213,214],"242 XSS vectors from public lists (OWASP XSS Filter Evasion, PortSwigger, HTML5 Security Cheatsheet): scripts, event handlers, scheme obfuscation, data:, mXSS via svg, math, noscript, style","Every vector runs as HTML, as Markdown with sanitizing and with escaping, with allow_data_images and without","The independent checker tests\u002Fsafe.ts does not use the sanitizer code: any extra tag, attribute, scheme or raw \"\u003C\" is a violation","fast-check: on random strings the output passes the checker, the sanitizer is idempotent, plain text is unchanged","829 tests; heavy inputs (60 thousand \"[\", 40 thousand \"*a\", 20 thousand nested \">\", 100 thousand \"\u003Cb>\") finish in under 3 seconds: parsing is linear","Result: 200 requests p50 9 ms, p95 31 ms, about 27 MiB RAM",[216,217,218,219],"git clone \u003Crepository on request> md-safe","cd md-safe","npm ci && npm test","npm run build && npm start   # http:\u002F\u002Flocalhost:8120",[221,222,223,224],"An allowlist and tests do not replace an audit.","The corpus was not run in a real browser in CI: output structure is checked by an independent template.","Rate limits live in process memory.","The project runs on a VPS; the same parser runs in the live scratch-notes app.",{"slug":226,"title":227},"poll-board","poll-board: real-time polls",{"slug":229,"title":230},"qr-svg","qr-svg: QR codes from scratch",[232,239,244,248,253,258,263,268,273,278],{"slug":233,"lang":5,"title":234,"date":235,"summary":236,"project":237,"minutes":238},"csp-no-inline-nuxt","CSP without inline scripts: what had to be switched off in Nuxt","2026-10-30","Why a strict script-src self policy breaks static Nuxt, which three steps made the site compatible, and the build check that keeps it so.","landscape-bureau-nuxt",2,{"slug":240,"lang":5,"title":241,"date":235,"summary":242,"project":243,"minutes":238},"hash-chain-tail-truncation","A hash-chained journal: what it catches and what it does not","How ledger-core builds a SHA-256 chain and checks it through \u002Fv1\u002Fverify, why tampering in the middle shows but tail truncation does not.","ledger-core",{"slug":245,"lang":5,"title":246,"date":235,"summary":247,"project":229,"minutes":238},"qr-from-scratch","A QR code from scratch: Reed-Solomon, masks and proving it right","How a zero-dependency QR encoder in TypeScript is built, and four independent ways to check that the matrix is correct.",{"slug":249,"lang":5,"title":250,"date":235,"summary":251,"project":252,"minutes":238},"sm2-day-boundaries","SM-2 and day boundaries: why the schedule is stored as dates","How flashcards-sm2 and habit-tracker avoid shifts from time zones and daylight saving: dates instead of timestamps and a movable day boundary.","flashcards-sm2",{"slug":254,"lang":5,"title":255,"date":235,"summary":256,"project":257,"minutes":238},"ssrf-after-dns","SSRF in webhooks: checking the address after DNS","Why a webhook delivery service checks the addresses after DNS resolution, not the URL string, and how hook-relay connects to the very address it checked.","hook-relay",{"slug":259,"lang":5,"title":260,"date":235,"summary":261,"project":262,"minutes":238},"token-bucket-integers","A token bucket on integers: what property tests check","How rate-gate computes a token bucket without floats, why milli-tokens, and which three properties the proptest property tests prove.","rate-gate",{"slug":264,"lang":5,"title":265,"date":266,"summary":267,"project":137,"minutes":155},"double-booking","Double booking: a transaction plus a partial UNIQUE index","2026-10-20","How booking-slots protects against two clients booking the same time at once, and how that protection is tested.",{"slug":269,"lang":5,"title":270,"date":266,"summary":271,"project":272,"minutes":238},"lease-and-fencing","Lease and fencing: how a queue neither loses a job nor lets a zombie finish it twice","A worker can crash, stall, or wake up after its job was taken by someone else. How the lease and the lease token in job-queue deal with that on SQLite.","job-queue",{"slug":274,"lang":5,"title":275,"date":266,"summary":276,"project":277,"minutes":238},"p95-nearest-rank","p95 in an uptime monitor: the nearest-rank method and what it does not hide","How uptime-monitor computes p50\u002Fp95 latency and uptime, why the nearest-rank method was chosen, and where those numbers can mislead.","uptime-monitor",{"slug":279,"lang":5,"title":280,"date":266,"summary":281,"project":282,"minutes":238},"websocket-from-scratch","WebSocket on the standard library: what really happens under new WebSocket()","Why realtime-rooms has its own RFC 6455 layer, which protocol violations it checks, and why a library is still the better choice for production.","realtime-rooms",1793371809350]