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

Vytvořeno 1mo | 23. 1. 2025 16:40:12


Chcete-li přidat komentář, přihlaste se

Ostatní příspěvky v této skupině

Show HN: Knowledge graph of restaurants and chefs, built using LLMs

Hi HN!

My latest side project is knowledge graph that maps the French culinary network using data extracted from restaurant reviews from LeFooding.com. The project uses LLMs to extract structure

3. 3. 2025 17:20:15 | Hacker news
Ask HN: Freelancer? Seeking freelancer? (March 2025)

Please lead with either SEEKING WORK or SEEKING FREELANCER, your location, and whether remote work is a possibility.

Please only post if you are personally looking to hire a freelancer or work a

3. 3. 2025 17:20:13 | Hacker news
Ask HN: Who is hiring? (March 2025)

Please state the location and include REMOTE for remote work, REMOTE (US) or similar if the country is restricted, and ONSITE when remote work is not an option.

Please only post if you pe

3. 3. 2025 17:20:11 | Hacker news