Show HN: Simpler web dev with Htmx, SQLite and TypeScript (plainweb.dev)
i'm building this minimalistic framework mostly for myself. it's really just a project template + a tiny library that adds file based routes to express and persistent task queues.
i wanted something that:
1. is a single long-running process to deploy and manage (thanks sqlite!)
2. has type-safe database queries and type-safe server rendered React-like `.tsx` components
3. addresses 80% of common full-stack concerns like emails, task queues and routing
4. doesn't have a frontend build process
curious to hear what you think!
14 comments
[ 2.5 ms ] story [ 44.5 ms ] thread> 4. doesn't have a frontend build process
Is it entirely server-side and then it's all htmx? Is there a way to also hook client-only TS/components for more complex/interactive stuff? Or is that out of scope entirely?
yes, it's server-side with htmx at the moment. anything client-side that has a build process is entirely out of scope as i think that's a major source of complexity.
i'm considering embracing alpine.js for when htmx is not enough, just need to make sure the alpine directives are type-safe.
i think it's exciting what astro, hono or fresh are doing with islands of interactivity but plainweb tries to be even more minimalistic.
I'm curious about how does that work? TypeScript isn't supported in the browser nor is JSX.
plainweb avoids build processes that bundle js that runs in the browser.
JS is just the language. Avoiding JS on the front end is more about avoiding front end code, state management, mutations, a11y issues, frameworks etc. rather than the JS language itself!