Mo

Morsel – an open-source, web-based visual Modelica editor

Hacker News

Morsel – an open-source, web-based visual Modelica editor

Hey HN, I’m excited to share Morsel, a modern, web-based visual editor for Modelica that I've been working on. It's part of the broader ModelScript compilation, analysis, and visualization framework. Modelica is a powerful, object-oriented language for equation-based modeling of complex physical systems (mechanical, electrical, electronic, hydraulic, thermal, control, etc.). However, tooling in the Modelica ecosystem has historically been heavy, proprietary, or desktop-bound. I built Morsel to bring a fast, beautiful, and accessible Modelica modeling experience right to the browser. Key Features ============ - Interactive Diagrams: High-performance visualization of Modelica connections and topologies using AntV X6. - Synchronized Code Editor: Real-time, two-way synchronization between the visual diagram and the underlying Modelica code (powered by Monaco Editor). - Intelligent Properties Panel: Easily edit component parameters, modifiers, and annotations through a responsive UI that directly manipulates the AST. - Library Explorer: Navigate complex Modelica libraries (like the Modelica Standard Library) via an intuitive hierarchical tree view. Under the Hood: ModelScript =========================== Morsel is powered by ModelScript, a custom compilation engine written in TypeScript. ModelScript brings its own modern toolchain to Modelica: - Custom Tree-Sitter Grammar: Fast and precise parsing for editor integrations and tooling. - Semantic Analysis: Full scope and name resolution for complex Modelica hierarchies. - Model Flattening: Translating hierarchical component architectures into flat Differential Algebraic Equations (DAEs). Why I built this ================ I wanted an open-source (AGPL-3.0), modern front-end that could run entirely in the browser (or as a local web app) without sacrificing the power of the Modelica language. It's built on a modern stack (React, React Router, Vite, Tailwind, GitHub Primer) to provide a premium, responsive developer experience. I am still actively developing Morsel and ModelScript and would love your feedback, bug reports, and contributions! GitHub Repo: https://github.com/modelscript/modelscript I'd be happy to answer any questions about the architecture, Modelica parsing, the tree-sitter grammar, or anything else!

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: model, models, visual · Missing: mac, agents, macos
96%96% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: excited, ide, io · Missing: https docs, just released, exist
79%79% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoStrong fit for a featured deal · Strong signals: intuitive · Missing: plus, platform, reviews
56%56% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
43%43% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Op
Open-source web-based code compiler/interpreter81%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Open-source web-based code compiler/interpreter

Hacker News4
Mi
MindMap Your HTML5 with Caocap a Visual Web Builder, Now Open Source77%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MindMap Your HTML5 with Caocap a Visual Web Builder, Now Open Source

Hacker News2
Es
Espial: an open-source, web-based bookmarking server82%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Espial: an open-source, web-based bookmarking server

Hacker News12
Es
Espial — an open-source, web-based bookmarking server82%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Espial — an open-source, web-based bookmarking server

Hacker News33
Pl
PlantUML based collaborative UML editor is now open source79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PlantUML based collaborative UML editor is now open source

Hacker News185
GB
GBS Music – web based, open source Game Boy music editor/tracker69%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GBS Music – web based, open source Game Boy music editor/tracker

Hacker News1
Ur
UrbanFootprint – web-based, open source, scenario planning platform50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

UrbanFootprint – web-based, open source, scenario planning platform

Hacker News3
Op
OpenRDMA-An Open Source FPGA-Based 400G RDMA-Like SmartNIC68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OpenRDMA-An Open Source FPGA-Based 400G RDMA-Like SmartNIC

Hacker News2
Go
Goxel, an open-source 3D voxel editor75%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Goxel, an open-source 3D voxel editor

Hacker News71
Puck
Puck

Open-source visual editor for React

BetaList