LinkHash is my experimental web-based code sandbox that lets you write Gleam code and see results instantly.
The Vision
I wanted a way to:
- Try Gleam without installing anything
- Configure Gild projects visually
- Share code snippets with a link
- Experiment with WebAssembly compilation
Current State
LinkHash is highly experimental and very buggy - but that’s part of the fun! It’s a playground for testing ideas about:
- Running Erlang/Gleam in the browser
- Real-time code compilation feedback
- Interactive configuration generation
- WebAssembly toolchain integration
Technology Stack
The project combines:
- Gleam: The functional language for the Erlang VM
- Erlang: Compiled to WebAssembly for browser execution
- Svelte: For the interactive UI
- Astro: Static site generation
- JavaScript: Gluing it all together
Why Gleam?
Gleam is a type-safe, functional language that compiles to Erlang. It has:
- Excellent type inference
- Pattern matching
- Immutable data structures
- The power of the BEAM VM
Using it to configure infrastructure (like Gild) is an interesting experiment in configuration-as-code.
Try It Out
LinkHash is live at linkhash.pages.dev - but remember, it’s experimental! Things might break. That’s okay.
I’m actively working on stability and adding features. If you’re interested in Gleam or WebAssembly, give it a spin and let me know what you think.
More details coming soon as the project matures!