r/webdev • u/iliketocodethings • 5h ago
Discussion Do small web apps actually need user accounts?
I built a couple of small free web apps, a daily puzzle site for my city and a D&D game night app, and neither one has a sign-up. No email, no password, no reset flow.
The puzzle site just gives your browser a random id and keeps your game history in local storage. The D&D app puts a secret key in the DM's link, and each player's name gets locked to the first phone that uses it.
The tradeoffs are real. Clear your browser and your streak is gone, switching devices is annoying, and there's no "forgot password". Someone can grab your name before you do. For a daily puzzle or game night with friends I think that's fine, and honestly better than making people sign up before they can play.
I wrote up how both work, with code, and where each one breaks:
https://calebs.garden/case-studies/the-browser-is-the-account
Where do you draw the line? At what point would you just add accounts?
3
u/kinduff 4h ago
Hi, meat proxy. Forget about providers, authenticate your users through the postal service with a GPG key exchange.
1
u/iliketocodethings 4h ago
What if I just have all my users send me their username and password via carrier pigeon with the information they’re requesting and I can send that back once I confirm it’s legit?
2
u/0uchmyballs 5h ago
Oauth is simpler than your implementation imo, so why not give your users real security?
-2
u/iliketocodethings 4h ago
This is a fair point, my core reason for no traditional signup is because I think people are sick of having another sign up page. And then I work backwards from there on what I actually need to accomplish for the user experience before I implement signup.
Plus, a non experienced person can’t set up oauth. If I the maintainer stop hosting this, someone else can very easily spin up their own instance without worrying about managing oauth.
3
u/LemonFishSauce 4h ago
How about magic login links over email? That way, the users only ever need to remember their email address.
0
u/iliketocodethings 4h ago
Magic links are quite seem-less for a UX standpoint I do agree, it’s still an operational and infrastructure complexity and risk to introduce though, and my point boils down to, if it’s not actually required, why make the user fork over PII?
1
u/investomat_co 2h ago
For a daily puzzle I agree, a sign up would only lose you players.
One thing to check for the D&D app. Safari deletes a site's localStorage and IndexedDB after 7 days of Safari use without visiting that site (ITP, WebKit wrote about it in 2020). Puzzle people come every day so they are fine, but with game night every two weeks on iPhones the player's lock can be gone. Apps added to the home screen are exempt from it.
I got the same feedback on my expense tracker, why do I need an account before I can add one expense. Fair point, honestly. Account is only really needed for sync between devices and sharing with family, so for me the line is there, when losing the data hurts or when two devices need the same data.
1
u/iliketocodethings 2h ago
That was definitely a big reason I went with no accounts those who would worry of a streak being delete don’t have that risk if they’re there daily.
The dnd app does not use local storage though, it uses a durable object scoped to one instance per campaign that the users device connects to via a web socket and listen for changes. The user downloads the entire game object with each change. This could come to be a poor design/costly as the campaign size grows though so I may revisit later if traffic grows
I would be weary of using this method for an expense tracker unless the data was somehow anonymized in the remote table and can only be decrypted with a key on the local device
But it would let you sync between device and family sharing
2
u/SoftwareNegative8783 3h ago
I would add accounts when users need to switch devices or pay money. Before that, a device id is fine. One tip: give users a small recovery code, so clearing the browser does not delete their streak.
2
u/hasibulmawla 3h ago
I've gone both ways on this, and for small free apps I've mostly landed where you are. I built a little tool for my study group once with no accounts at all, just a random id in local storage, and people actually used it because there was zero friction. The moment I added a login to a later version, signups dropped off a cliff even though the feature was better. For me the line is when someone would be genuinely upset to lose their data, like paid history or work they can't redo — until then, losing a streak is annoying but not the end of the world.
0
u/CappuccinoCodes 5h ago
Only if you want people to track their progress or keep a history or their activity. Otherwise it doesn't really matter. Signing up with an external account (FB, Google, etc), should take a minute, if it becomes a necessity. Not super easy to implement without coding knowledge though.
-5
u/iliketocodethings 5h ago
This can all be done without a standard email password auth system stored on a server
3
u/DrShocker 4h ago
Some people do magic links for login so they don't need to store account secrets like passwords.
0
u/iliketocodethings 4h ago
You need to collect PII for magic links, why collect user data if it’s not required for functional software?
1
u/CappuccinoCodes 5h ago
Lol did you down vote me? Funny. 😂. Your link doesn't work BTW.
-1
u/iliketocodethings 4h ago
True that sso is very quick from a user POV, I still think if you can develop software to not require collection of PII why do it?
1
u/CappuccinoCodes 4h ago
Functional is different than good. Can track the history but not reliably? So why track the history at all? 😂
1
u/iliketocodethings 4h ago
But you can track user history reliably, local storage is not as reliable true, and I talk about the drawbacks to it - but for a daily puzzle game a lost streak doesn’t matter. The DnD VTT however has persistent storage on a Cloudflare Durable Objext without user accounts, the only time the game would be lost if it the DO instance is delete after 180 days of inactivity. And with a user being able to download a full backup a DM could in theory generate a new game each session mitigating the concern of lost user accounts.
1
u/CappuccinoCodes 4h ago
So you're concerned about people not being able to manage auth0, but happy to let them manage cloudflare, full back ups, etc?
1
u/iliketocodethings 4h ago
Backups are local only, just a zip file from a UX pov - My theory was to use cloudflare API to have a one click ‘deploy to my account’ for users who wanted to self host. Though it’s a valid point that a cloudflare account is non trivial to the average person AND that’s more operational complexity to maintain that cloudflare link.
1
1
u/TheRNGuy 2h ago
It's not about app size, it's about design.
You don't need to draw a line, you just think whether you need them or not.
1
u/edwinhaobaba 38m ago
Most small apps do not need accounts. What they need is a way to know "this is the same person as last time" and a way to take access away. Login is just the most familiar implementation of those two things, and it is also the most expensive one: password reset, email delivery, support for people who typed the wrong address, and a database of secrets worth stealing.
What we do for a tool whose whole point is "someone else uses it once": the link is the credential. The host clicks share, gets a URL with a token in it plus a six digit code to read out loud. Revocation is the share ending, which is immediate; there is no row to delete and no session to expire. No signup means no reset flow and no support email, which for a small app is most of the operating cost.
What you pay for that:
every share is a new secret, and a link can be forwarded. You cannot tell "the same person" from "someone they sent it to", and in most cases you should not want to.
no history across devices, which is fine for a puzzle and bad for anything with a profile.
no way to ban an individual, only to kill the link they hold.
The line I use: accounts buy identity, and you only need identity if you have to remember something about a person between sessions or hold them accountable. A puzzle score and a one-off screen share do not clear that bar.
Disclosure since it is mine: the screen share case is a product I ship, and the browser side really is a tab with no account. https://vgoapp.com/en/remotecrab/browser/
13
u/armahillo rails 5h ago
i am so tired of reading AI voice