Show HN: libmodulor – An opinionated TS library to build multi-platform apps

Initially I started building this for my own projects. The main goal was to define a unified "blueprint" allowing me to develop multi-platform apps using the same code, without code generation. I wanted to be able to develop the same functionality on web, desktop, cli, server, mobile, whatever...

I've been able to achieve this by relying on TypeScript, a 4-layer architecture (UseCase => App => Product => Target) and dependency injection.

This mechanism allows me to use whatever tech stack I want, provided the good adapters are developed. For instance, I have pre-built ones : node express (server), next.js (server), node hono (server in alpha), node parseArgs (CLI), node stricli (CLI), react-web-pure (web with no CSS), react-native (mobile), node mcp server (anthropic MCP in alpha), etc.

The same goes with data storage : Postgres, SQLite, a txt file, whatever.

It also comes with auto testing and auto documentation.

Did I reinvent the wheel ? Probably on some aspects. Is it too much abstraction ? Probably as well. But I like the idea of modularity and portability.

That's why it's not made for everyone, nor all types of projects.

If you like testing new stuff, give it a try and feel free to ping me if needed, I'd love to help.

I'm aware the documentation is not state of the art yet. I wanted to focus on the "Getting Started" Guide to give a quick overview instead of going to deeply into the details.

Best,


Comments URL: https://news.ycombinator.com/item?id=42804961

Points: 15

# Comments: 3

https://github.com/c100k/libmodulor

Created 4h | Jan 23, 2025, 4:40:12 PM


Login to add comment

Other posts in this group

Show HN: I built an active community of trans people online

A year ago I surveyed the internet and noticed there was only one popular space for trans and gender-non-conforming people to meet; Lex.

Lex is not well liked by its users. Its software feels he

Jan 23, 2025, 7:10:23 PM | Hacker news
Show HN: Mixlist

built a web app that uses k-means clustering on artist genres (one or multiple) to automatically organize Spotify liked songs into playlists. clean UI.

you might have to click refresh playlists

Jan 23, 2025, 7:10:13 PM | Hacker news