Unit is a general-purpose visual language where programs are graphs of multi-input multi-output finite state machines. A web-based environment lets you compose units with direct manipulation and optional local server hosting.
Overview
Unit combines a visual programming language with an environment built for live, data-flow, reactive, functional, and object-oriented styles. Programs are graphs; each unit behaves as a MIMO finite state machine. The language and editor were developed together so new units can be composed visually with minimal setup.
The programming environment is a web application aimed at kinesthetic editing across input devices, with optional drawing, gesture, and voice inputs described in the vision docs. Unit draws an analogy to Unix pipelines: unit inputs and outputs connect like commands in a shell script, extended into two dimensions. Hosted instances include unit.land for the editor and unit.tools for sharing public units.
Developers clone the TypeScript codebase, install with npm, and can start a local Unit server for development. The same core can be used as a JavaScript library on the web or Node.js to render unit bundles, boot systems, or build static sites from unit graphs.
Key features
- Graph-based visual programs
- Live web composition environment
- MIMO finite state machine units
- Local Unit server for development
- JavaScript library for web and Node
- Unit bundle build to static sites
- Public unit marketplace site
- Multi-paradigm language influences
Use cases
- Visual live coding experiments
- Piping data between interactive units
- Hosting personal unit.land instances
- Embedding unit graphs in web apps