Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
All of your requirements can be met by React or Vue but I would use https://alpinejs.dev
I think what you want is Svelte Kit for dev and then the static export so you can directly open the HTML files. NextJS (probably others, maybe Nuxt?) can do this too but IMO Svelte is the easiest framework to learn.
You might get away with Svelte (not Sveltekit) here since it compiles down to javascript. Another fun framework to try out for this might be https://imba.io/, which also has an option to compile things down to pure HTML, CSS & JS (plus it’s very fun to work with).
The main limiting factor, like someone else said, is that you can't load external JavaScript files from your local file system without serving them. Your best bet would probably be to try and find a CDN source for some minimal Web Components library like Lit or HyperHTML and just write everything in a single HTML file.
Use a vite plugin to generate build as a single file https://github.com/richardtallent/vite-plugin-singlefile