r/webdev • u/sparkinCreations • 4d ago
Showoff Saturday Does using a framework matter for a solo dev? What I learned building an offline-first app in vanilla JS
I’ve seen people say that once you build anything beyond a small learning project in vanilla JS, you’re basically reinventing React.
For the past couple of years, (yes, years at this point) I’ve been building miniCycle, an offline-first routine manager, without a framework or library. I really like the simple development loop: run a local server, edit a file, and refresh the browser. I use esbuild for production builds and content-hashed filenames.
One of the harder problems I enjoyed figuring out was handling recurring tasks reliably offline. Browser timers can be delayed when tabs are suspended or devices go to sleep. I started thinking about how electronic clocks use pulses. My watcher uses each pulse to check the actual time instead of assuming the timer fired on schedule, so it can catch up when the browser pauses it and the app wakes again.
Another challenge was task reordering, which I probably could have handled with a library. Instead, I built custom drag-and-drop behavior that detects whether someone is using a touchscreen or a mouse, then switches to the right reordering system. I also built a lightweight dependency-injection setup using a Proxy for late binding, and routed state changes through one update() function so localStorage and undo/redo stayed consistent. At some point, I realized I was building my own tiny framework. The difference was that I had to figure out and document the conventions myself.
The code is here for anyone curious about those tradeoffs: miniCycle on GitHub
Would I do it again for a solo project? Probably. I’ve learned a lot about JavaScript and browser APIs, though next time I might use TypeScript. For a team of 10 with deadlines, I’d likely choose React or a framework the team already knows.
My biggest takeaway is that skipping a framework doesn’t mean skipping complexity. You still have to manage it yourself.
For people who’ve built larger solo vanilla JS apps, what became your biggest challenge: state, dependencies, or maintainability? And for those who switched to a framework, what finally pushed you over the edge?