From 5299bd34eeeb16a79a049c56ca81c68e34d6246e Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 6 Aug 2026 14:36:21 -0400 Subject: [PATCH] feat: add current user to req --- chat-rearchitecture.md | 422 +++++++++++++++++++++++++++++++++++++++++ db.js | 5 + index.js | 20 ++ 3 files changed, 447 insertions(+) create mode 100644 chat-rearchitecture.md diff --git a/chat-rearchitecture.md b/chat-rearchitecture.md new file mode 100644 index 0000000..882beb2 --- /dev/null +++ b/chat-rearchitecture.md @@ -0,0 +1,422 @@ +# Chat Rearchitecture — "AIM 2005" edition + +> Living design doc **and** build log. Section 1–8 is the plan; Section 10 is the +> running notes I update as I build. Keep it honest: record what actually +> happened, not what was supposed to. + +--- + +## 0. Prime directive (read this first) + +**We are building fun interfaces at the expense of security and safety.** This is +a hypermedia playground, not a hardened product. Concretely: + +- **Messages may contain arbitrary HTML/JS and we render it unescaped, forever.** + `<%~ it.content %>` (Eta raw) stays. A message can `