~/notes/notes-can-talk-back-now

Notes can talk back now

  • Meta
  • Homelab
  • Security

Until today, notes on this site were a one-way street. I wrote, you read, and if you had thoughts you had to go find the contact form. That is fixed.

What is new

  • Reactions. Under every note there is a row of five: πŸ‘ ❀️ πŸ”₯ 🀯 πŸ˜‚. Tap one to react, tap it again to take it back.
  • Comments. Write something under a note and it shows up right away. I read all of them and answer when I have something useful to say. My replies carry an author badge, so you know it is really me.
  • Share buttons. Copy the link, or send it to X, LinkedIn, WhatsApp, Telegram or email. On most phones there is also a Share button that opens your phone's own share menu.
  • An email when something new goes up. When I publish a note, subscribers get a short email with a button to read it. No weekly filler, no "just checking in".

The catch: subscribers only

Reactions and comments are for people on the email list. If you are not on it and tap a reaction, you land on a short page that starts like this:

$ react --with πŸ”₯
permission denied: subscribers only

Type your email, I send you a 6-digit code, you type it in, and you are back under the note. You stay signed in for 90 days on that device.

Why the gate? Spam bots do not read their email, and a comment section where every name belongs to a real inbox stays a lot more civil. The cost to you is one email.

No passwords, on purpose

There is no account to create and no password to forget. The code is the login.

  • Codes expire after 10 minutes and allow 5 wrong tries.
  • The server never keeps the code itself, only a hash of it. Same for the session that keeps you signed in.
  • Your email is never shown next to your comments. Only the name you choose is.
  • Comments are plain text. Paste HTML in and it shows up as text, not as code that runs.
  • Sign-ups, codes and comments are rate-limited, so nobody can hammer them from a script.
  • Unsubscribing is still one click from any email.

My side got tightened too. The control panel password is stored only as a salted scrypt hash, never as the password itself, and the mail server password is now encrypted on disk.

Still zero dependencies

All of this is plain Node.js and its built-in SQLite, same as before. No new packages, no node_modules, no build step. Shipping it looks like this:

$ git pull && docker compose up -d --build
$ # still the whole deployment

Try it

Scroll down. The reactions are right there. If you are already subscribed, you only need a code once per device.

And if something breaks, well, that is what the comments are for now.

All notes

Get the next write-up by email

New posts and project write-ups, a few times a year. Unsubscribing takes one click.