Build notes
DevDeck is a static site with no framework, no build server and no tracking. This page documents how it is put together, so the code can be read and changed by someone else.
1. Data pipeline
tools.json is the only source of truth. build.py checks it, then writes data.js. The check rejects duplicate ids, unknown pricing or category ids, missing fields, broken rank order and anything that looks like markup inside listing text. A bad edit fails the build instead of shipping a broken card.
python3 build.py
# ok 13 tools, 7 categories -> data.js
2. Front end
Plain HTML, CSS and JavaScript. The browser gets one HTML file, one stylesheet, one generated data file and one script. There is no runtime dependency, so the page also works from a local folder.
- Rendering builds DOM nodes with
document.createElementand sets text withtextContent. No data string is ever parsed as HTML. - State lives in one object: query, pricing, category, sort, layout, compare list, stack list, theme.
- Compare, stack and theme persist in
localStorage, wrapped in try/catch so private mode cannot break the page. - Views are hash routes:
#/for the index,#/tool/<id>for a detail sheet,#/notesfor this page. The back button works.
3. Accessibility
- Skip link, landmarks, real headings in order.
- Result count is an
aria-liveregion, so filtering is announced. - Dialogs use
role="dialog",aria-modal, focus trap, Escape to close, and focus returned to the button that opened them. - Every control is reachable by keyboard; visible focus ring; the layout survives at 200% zoom.
prefers-reduced-motionturns off transitions.
4. Security choices
- A Content-Security-Policy meta tag allows only same-origin scripts, styles and images. No inline handlers, no third-party requests.
- Search input is treated as text. It filters, it is never inserted as markup.
- No account, no cookie, no analytics: there is nothing to leak.
- The "Before you install" notes treat each tool as a permission decision, which is the same habit a security review uses.
5. What each course module contributed
| Course | Used here |
|---|---|
| Responsive Web Design (freeCodeCamp) | Semantic HTML, Flexbox rail and toolbar, CSS Grid card layout, media queries, focus and contrast rules, reduced motion. |
| JavaScript Essentials 1 (Cisco) | Arrays and objects for the catalogue, map/filter/sort for search, event delegation, form and keyboard events, JSON, error handling, modules by file. |
| Introduction to Cybersecurity (Cisco) | Least privilege in the install notes, input handling, CSP, no third-party scripts, and the reminder that a tool's access is the real cost. |
| Python Essentials 1 (Cisco) | build.py: dictionaries and lists, loops, functions, exceptions, file I/O, and a schema check that fails loudly. |
6. Honest limits
- Listing text comes from four screenshots taken on 29 Nov 2026. Vendors change their listings; re-check before you rely on a pricing label.
- The "use when" and "before you install" lines are my reading, not vendor claims.
- Nothing here is connected to Slack. No install, no OAuth, no workspace access.