65
submitted 16 hours ago* (last edited 15 hours ago) by xoron@programming.dev to c/programming@programming.dev

IMPORTANT DISCLAIMER: This is my own project. I 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 messaging app", this is an example to see what is possible with a related UI framework im working on ( https://github.com/positive-intentions/dim ). Its unreviewed, unaudited and far from finished. This framework is intended for myself on my own projects. It is provided open-source for transparency, testing and demo purposes only. There will be breaking changes.

The key details that set this approach apart:

  • No minification or transpilation
  • No React, NPM or bundler
  • Works from index.html

The architecture is also a bit unique. Module federation has been around for a while but still fairly under-used. Im aiming for something that could be described as like a vanilla JS "decentralized microfrontend architecture", where in this approach, i can abstract complexity into seperate repositories to manage reusble functionality like in the boilerplate example:

To avoid vibecoded cryptography, the aim here is to avoid handling encryption where appropriate. Browsers that support webrtc, will have their own mechanisms for managing encryption (as required by the spec). The keys will not be accessible from app-level JS code. For security best-practice, users should use an OS, browser and network they trust.

To make something complicated at scale, i would need to have an approach for testing out changes in a way thats more isolated/focused. The npm ecosystem is useful because you can have things like storybook, unit-testing and browser automation tools. So i wanted to see what is possible with the pure javascript approach and created runTests.html. Like the main app, the code is just plain javascript and so it can be imported and tested with production statics. The testing functionality here is especially far from finished. This is an important feature to do it properly because it would be doing a lot of heavy lifting as the project improves.

P.S. 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.

all 13 comments
sorted by: hot top new old
[-] einkorn@feddit.org 18 points 12 hours ago
[-] some_designer_dude@lemmy.world 2 points 7 hours ago

React is just HTML and CSS, but with tools that make it suck so much less to build and maintain real things. Remix is even more “pure” web standards wise, I think? It’s a good example of how an orchestrator for all the many standards is still super handy, but also at illuminating just how far the standards have come.

[-] duckduckduck@programming.dev 2 points 6 hours ago

IMO if you're using React and not doing SPA, websockets, or updating the DOM on the fly, then you don't really need React.

I've just completely switched slinging raw html and using nginx' ssi module for templating and dryness.

[-] CookieOfFortune@lemmy.world 1 points 1 hour ago

But even something as simple as CRUD requires at least a templating system.

[-] RickyRigatoni@piefed.zip 8 points 11 hours ago
[-] EloySg@lemmy.zip 6 points 10 hours ago* (last edited 10 hours ago)

So, what we change JavaScript for? Lua? Lisp? WebASM+C++/Rust?

Edit: I'm genuinely curious but the web in this day and age NEEDS a substitute for JavaScript.

[-] duckduckduck@programming.dev 2 points 6 hours ago

Just don't.

If you want to make an application, make an application. But if you want to serve web pages, html is all you need.

[-] tyler@programming.dev 5 points 9 hours ago

You can do so much in just pure css nowadays. Not saying you should. But you can.

[-] EloySg@lemmy.zip 4 points 9 hours ago

That's the whole thing,using just CSS is a bad idea so using a language for Web is necessary

[-] RickyRigatoni@piefed.zip 1 points 8 hours ago* (last edited 8 hours ago)

You ever hear of CSS, boy?

[-] HelloRoot@lemy.lol 1 points 9 hours ago* (last edited 9 hours ago)
[-] aivoton@sopuli.xyz 1 points 10 hours ago

Thanks dude... Now I've got jerpes.

this post was submitted on 27 Nov 2026
65 points (84.2% liked)

Programming

29405 readers
306 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS