mojo.js
htmf
mojo.js | htmf | |
---|---|---|
15 | 4 | |
474 | 21 | |
1.1% | - | |
7.9 | 7.6 | |
7 days ago | 5 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mojo.js
-
Nue: A React/Vue/Vite/Astro Alternative
Have you looked at https://mobx-keystone.js.org/ by any chance?
I've been quite enjoying keystone + lit (or react if required) of late and at the very least it feels like solid prior art towards MVC stuff.
Also https://mojojs.org/ for server side.
(I'm not saying "use these" even if I quite enjoy using them myself, but they're my reference points for comparison here)
- Mojo – a new programming language for all AI developers
-
Does node have a Rails-like framework? (that has isn't dead)
Mojo.js
-
Choose boring tools
A final interesting note is that the Mojolicious developer has also recently(-ish) created Mojo.js, which is Mojolicious implemented in Typescript.
-
What's your go-to web framework for new web APIs?
mojo.js, it's a very old school web framework.
-
Mojo.js is a port of Perl's Mojolicious to TypeScript
Express middleware support is on the planned feature list for 2.0 and beyond. Could also be implemented as a 3rd party plugin using the existing hook API though. https://github.com/mojolicious/mojo.js/issues/66
-
Perl on Rails (2007)
Just in case you missed it, Mojolicious is also available for TypeScript now, and the developer experience is pretty close to the Perl original. ;) https://mojojs.org
-
[AskJS] Is MVC "dead"?
Aside from NestJS there is also mojo.js still innovating on the old MVC formula with TypeScript.
- Ask HN: Getting tired of complexity in web development
htmf
-
HTML First – Six principles for building simple, maintainable, web software
I've successfully used this pattern (HTMX hypermedia style) to create an offline-first web app SPA[^1]. One of the pages is pretty dynamic and I wasn't sure if I would need a traditional front end library to work with it. But, nope, hypermedia to the win, it worked fine without a front end framework.
To build it I used my own library called HTMF[^2]. I started out using mpa-enhancer[^3] but found that that pattern is a little to janky sometimes. I think reloading a page every time on every interaction uses too many resources for a browser especially when you use a phone that doesn't have as much power as a laptop.
But overall I find the pattern very easy to use and keeps the complexity down.
I think some of the issues with traditional SPAs is that they have a lot of state and state is nonlinear in complexity. But using templating systems makes the complexity more linear in nature.
Also, I find libraries like React to be overly complex for what it does, see above. The way React works is just odd and counter intuitive. All for problems that are easy to solve. I do think there are places for a React-like library is needed but those are for websites that are inherently highly state-based. But most websites aren't state-based even ones that appear to be state-based at first.
The websites I work on are usually just forms and forms are pretty powerful and can get you a long ways before you need to go outside of that paradigm.
[^1]: https://github.com/jon49/Soccer
[^2]: https://github.com/jon49/htmf
[^3]: https://github.com/jon49/mpa-enhancer
- Things you forgot because of React
- Htmx, WebAssembly, Rust, ServiceWorker Proof of Concept
-
Ask HN: Getting tired of complexity in web development
I wrote a js lib similar to HTMX, which I call HTMF[1]. Unlike HTMX I try to stay as close to the metal of the current semantics as possible. So, all interactions are based off of forms. I also tried to keep the wording similar to HTML/JS semantics. It's pretty small lib but pretty amazing how far I can get with it. These days I mainly build offline-first apps with it. But I built it in such a way that it can easily be a progressive enhancement to an MPA app.
[1]: https://github.com/jon49/htmf
What are some alternatives?
wshook - Easily intercept and modify WebSocket requests and message events.
Soccer - Tracker for players play time
jsynchronous - Jsynchronous.js - Data synchronization for games and real-time web apps.
yew-beyond-hello-world - yew rust tutorial
hono - Web Framework built on Web Standards
submillisecond - A lunatic web framework
nue - The Content First Web Framework
WeightTracker - Back end for saving data for weight tracker.
primate - Polymorphic development platform
MealPlanner - A Meal Planner to figure out what we are going to eat each week. Written with Razor Pages and HTMF. https://meals.jnyman.com/
htmlparser2 - The fast & forgiving HTML and XML parser
mpa-enhancer - Minimalist JavaScript to make your MPA work that much better