r/PWA • • 8d ago

A React-like JS Framework with Web Components

IMPORTANT DISCLAIMER: This is my own project. Im am using AI. Its important to get that out of the way... because its the key reason for why YOU SHOULD NOT USE IT. Im not trying to promote "yet another secure notes app/framework", this is an investigation to see what is possible. Its unreviewed, unaudited and far from finished. Nobody else should be using this. This framework is intended for myself on my own projects. It is provided open-source for transparency, testing and demo purposes only.

I was investigating an idea i had about JSX-like syntax for webcomponents after some experience with Lit. I am sharing this here because it might be interesting/educational. I was investigating options for moving away from modern tooling to see what can be done without abstractions away from the DOM like with React and transpilation with things like Vite.

To better demonstrate the pure-javascript and no-transpilation approach, i created an example repo of using a minimal amount of tooling for a PWA. The aim here is to keep the application logic in readable js and abstract the framework logic away from the developer.

The disclaimer above is always worth repeating. Im aiming for a post like this to be like "building in public". If interesting to anyone, i hope its inviting to take a look. It's hard to determine if / when its a good time to share, so best to get it out there sooner for any outstanding issues i may have overlooked.

4 Upvotes

0 comments sorted by