Menu

1 / 2

I never expected this response ~robot-toast

DEV Community·Pratham Kumar·6 months ago
#ESE0sD0k
#javascript#webdev#opensource#npm#toast
Reading 0:00
15s threshold

It started with an SSO project.

I was building an IDP server — the kind that handles authentication across connected domains. I wanted a Google-like widget, the one that shows up and says " Hey, you switched accounts " or " Welcome back, Pratham. " Clean. Branded. Satisfying.

So I built a toast that shipped via a script tag directly from my IDP server . It worked. But it was rigid, tightly coupled to my server, and offered almost zero flexibility for anything outside that one use case.

That bothered me.

So I asked myself — what if the toast could live anywhere, independent of my server? What if any project could use it?

That's when I found out you can just... make your own npm package. I set a target of one night. And in that one night, [email protected] was born.

I have no idea why I made them robots. It just felt right.

I built a playground to see how it looked from the outside. Posted it on Reddit, LinkedIn, sent it to some friends. People had opinions. Good ones, bad ones, weird ones.…

Continue reading — create a free account

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