Menu

The only string in our alert email that nobody on our side wrote, and the four characters standing in front of it
📰

The only string in our alert email that nobody on our side wrote, and the four characters standing in front of it

DEV Community: node·Daniel Pertu·19 days ago
#1McPbC2f
#devtonodejs#devto#dev#fafafa#string
Reading 0:00
15s threshold

Notifio watches a rental search page and tells you when something new appears on it. The thing it tells you is the listing's own title, which means there is exactly one string in the whole product that nobody on our side wrote, and we put it in an email.

That string takes a long route. It comes off a page in a browser running on the user's machine, gets written to a file in their app data directory, is posted as JSON to an API route that authenticates with their licence, is interpolated into an HTML document on a server, handed to Resend, and delivered to the user's own inbox. Six hops, four of them places where it is rendered.

Three of those four escape it for free. The interesting one does not.

Four destinations, one of which is hand-built HTML

The on-disk history. A ring buffer of the last 200 finds, written with JSON.stringify , which has no HTML semantics and cannot be confused into any:

/** * How many finds to keep.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.