Skip to content

Show HN: Trivially Simple Value Toggle

swap.ist
2 points_justinfunk1 comment
On HN

I needed access to a toggling value for an automation. I could have written a local file or use a local data store but I was inspired to make a simple web service instead.

swap.ist gives you URL key that whenever accessed will toggle between true or false.

The use-cases are... at least one, but probably more.

Comments

For anyone who cares about the stack:

1) Node Express Server 2) Using Firebase RTDB to store swap state 3) CloudFlare Tunnel to a web-server I had laying around

index.js is 141 lines, including the HTML for the homepage.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.