testsAndMisc/articles
2025-09-07 22:09:22 +02:00
..
data feat: 14kB articles site 2025-09-07 21:26:55 +02:00
index.html Revert "feat: live reload" 2025-09-07 22:09:22 +02:00
Makefile feat: small articles webpage 2025-09-07 21:46:47 +02:00
README.md feat: 14kB articles site 2025-09-07 21:26:55 +02:00
run_tests.sh feat: 14kB articles site 2025-09-07 21:26:55 +02:00
run.sh Revert "feat: live reload" 2025-09-07 22:09:22 +02:00
server_c.c Revert "feat: live reload" 2025-09-07 22:09:22 +02:00
test_server_api.py feat: small articles webpage 2025-09-07 21:46:47 +02:00
test_site_size.py feat: 14kB articles site 2025-09-07 21:26:55 +02:00

Mini Articles (<=14KB)

  • Single-file site: index.html with inline CSS & JS
  • Features:
    • List of articles with thumbnails (cards)
    • Read view: thumbnail, title, body (supports inline images/videos)
    • Create view: title, thumbnail picker/drag-drop, rich body via contenteditable
    • Drag/drop or choose images/videos anywhere in the body
    • Local persistence via localStorage (no server required)

How to open

  • Open site/index.html in a browser.

Tests

  • pytest includes a test to enforce the 14KB budget for index.html.