GS

GSL – I wanted to describe the architecture, not just draw it

Hacker News

GSL – I wanted to describe the architecture, not just draw it

I built GSL because I got fed up of building architecture diagrams that couldn't quite capture all of the nuance of the real world. I liked the idea of using a system like Mermaid or PlantUML to represent my systems but there was never really a satisfactory way of describing what was happening. I liked the easy-to-follow syntax of those diagramming tools but they very quickly ran into limitations. When you describe an API gateway component, you can't really say that it belongs in a specific region but also that it belonged in a certain zone of the architecture or which team owns it. And when I described what systems interacted with each other I only had the ability to use a text field to describe all of the metadata about the relationship. Is it HTTPS vs an async lambda invocation? What auth do we need? Something else I wanted was the ability to query the architecture. Surely when you have the full graph of what talks to what, you should be able to pose questions like: * "which customer actions trigger a call to vendor X's API?" * "what will be affected if database Y goes down?" I couldn't really find anything that did that in a way that felt natural. Diagramming tools were either completely visual or too presentation focussed to express what I wanted. Existing graph languages felt too clunky or cumbersome. I struggled to find any that worked with sets and querying in a way that felt right. So one rainy afternoon, I decided to see how far I could get with ChatGPT and some ideas - GSL was born! In the repo there is: * A specification for GSL, a language for defining directed graphs with nodes and edges along with set annotations to declare cross-cutting relationships * A specification for GQL, the companion query language * gsl-query - a CLI tool for executing queries on your GSL models * gsl-diagram - a very primitive tool for turning GSL into Mermaid or PlantUML diagrams * A small VS Code plugin for syntax highlighting * Guides, tutorials, documentation * Rich examples (including some non-tech oriented ones) I think GSL has turned into the language that I was looking for at the beginning of the year. I'm starting to use it in my day job. The guides and documentation have been written to make it easier for agents and LLMs to use and my casual use so far has shown some promise. It's still very much an experiment but I'd like to get other people to take a look and see if it's useful for them too. Have I even made the right assumptions and picked the right abstractions? Have you tried to do something like this yourself? You can begin with the "Getting Started" guide, the specs, or just jump right in to the flagship examples. "Example #3: Architecture Across Boundaries" is fairly close to what I wanted to do originally. https://github.com/dnnrly/gsl-lang

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: started, including · Missing: supports, reddit linkedin, podcasting
91%91% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: agents, agent, model · Missing: mac, macos, cursor
80%80% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: exist, existing, ide · Missing: https docs, excited, just released
76%76% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Strong signals: way · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
40%40% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat, real world · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Cl
CloudGram – Draw architecture diagrams in the browser declaratively65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CloudGram – Draw architecture diagrams in the browser declaratively

Hacker News3
BA
BARE Architecture56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BARE Architecture

Hacker News4
A
A C compiler for the LC3 architecture51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A C compiler for the LC3 architecture

Hacker News2
Mo
Modularity can be achieved by implementing hexagonal architecture30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Modularity can be achieved by implementing hexagonal architecture

Hacker News7
Th
The Obvious Architecture45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The Obvious Architecture

Hacker News19
I
I made a HN for architecture44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a HN for architecture

Hacker News4
Cl
CloudSkew – Draw AWS, Azure, GCP, K8s architecture diagrams57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CloudSkew – Draw AWS, Azure, GCP, K8s architecture diagrams

Hacker News131
Cl
Clouddraw – draw cloud architecture diagrams with ease56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Clouddraw – draw cloud architecture diagrams with ease

Hacker News76
dr
draw with sloths53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

draw with sloths

Hacker News2
Ap
App Architecture32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

App Architecture

Hacker News2