the collection
a harbor for the things I love to build

Apps and tools I can't stop making, all docked in one place.
See what I've builtthe collection

State machines and actors for Go, ported from XState v5, with typed context and observable snapshots.
Visit projectGo code that keeps track of workflows, asynchronous work or application state has a ready model in XState, which describes exactly this as statecharts and actors, but it is a JavaScript library. A direct port still carries JavaScript habits: values cast at every I/O boundary, and a panic when a configuration from a file or request is invalid.
The author's design notes state the stance: keep XState's statechart semantics, design the API and lifecycle the Go way, and do not rewrite the statechart algorithm from scratch. Typed tasks and error returns sit beside the XState-style calls, and the differences from upstream are recorded.
XState behavior you already know carries over to Go, and a test sends an event and reads the result on the next line. Passing the translated tests does not establish full compatibility with every JavaScript API, React and Vue rendering is out of scope, and you need Go 1.26 or later.
go get github.com/nguyenvanduocit/go-xstate/xstate@latest


An Obsidian plugin that shows websites inside Obsidian, in panes or inline in a note.

A browser-based Mermaid diagram editor with live preview, AI generation and shared editing.

A generator that turns a TypeScript interface into typed Socket.IO RPC code for client and server.