definy

A simple, purely functional visual programming language

Where it came from, where it is going

Hi, I'm Zundamon!
0:00 / 5:481 / 12 · Title
→ next · ← back · Space play/pause · J/L ±5s · S sound · B music · V Zundamon narration (Japanese) · F full screen
definy

definy

Pure functional language with content-addressed code and structured editing.

definy rethinks software development from first principles. Instead of storing text files with syntax errors and fragile dependency versioning, definy treats syntax trees as first-class cryptographic objects and connects distributed developers through zero-trust event sourcing.

🏛️The 4 Core Pillars of definy

🧩Projectional Editor
1. Structured Editing (No Syntax Errors)

Code is edited directly as an Abstract Syntax Tree (AST), not characters in text. Parenthesis mismatches, typoed keywords, and syntax errors are mathematically impossible.

🔗SHA-256 CAS
2. Content-Addressed Immutability

All functions, types, and values are identified by their cryptographic SHA-256 content hashes. Code once written can never be mutated, broken by dependencies, or lost in downstream breaking changes.

🛡️RFC 8949 + Ed25519
3. Zero-Trust Cryptographic Events

Every commit and account creation is signed with Ed25519 and encoded into RFC 8949 Deterministic CBOR. The client independently verifies proofs in WebAssembly without trusting the server.

⚡WASM Compiler
4. Self-Hosting & Native WebAssembly

definy's compiler, typechecker, and WebAssembly emitter run directly in the browser and Cloudflare Workers. definy is capable of evaluating and compiling its own language constructs natively.

⚖️Traditional Programming vs. definy

DimensionTraditional Ecosystemsdefiny
Code RepresentationFlat text files (.ts, .rs, .py)Cryptographic AST Nodes (ContentHash)
Syntax ErrorsFrequent parse/syntax errors during typingImpossible by design (Structure Editor)
Dependency LockingSemVer string ranges (vulnerabilities & breakage)Exact ContentHash linkage (Never breaks)
Transport ProtocolAd-hoc REST / GraphQL endpointsConnect-RPC (HTTP POST + Protobuf / JSON)
Verification & TrustCentralized package registries (npm, crates.io)Client-side cryptographic verification (Zero-trust)
Execution & RuntimeOS-dependent toolchains & package managersNative WebAssembly JIT (Zero config edge/browser)

⚡Connect-RPC (gRPC) & CAS Integration

definy replaces REST with Connect-RPC over HTTP POST. Every procedure uses deterministic Protobuf and CBOR payloads with content-addressed CAS caching.

POSTEventService
GetEvents

Stream and query deterministic signed events from D1.

POSTEventService
GetProjectBranches

List every branch of every project with its creator and latest commit event.

POSTEventService
SubmitEvent

Submit Ed25519-signed events (module commits or account creation) with verification.

POSTEventService
CheckMissingHashes

Negotiate missing CAS content hashes between client and server before upload.

POSTEventService
UploadContent

Upload raw content bytes addressed by their SHA-256 cryptographic hash.

POSTEventService
GetContent

Retrieve immutable CAS objects (AST trees, Wasm binaries, definitions).

POSTHttpProxyService
Fetch

Send an HTTP request the browser cannot send because of CORS on behalf of an allowed account (used by wasi.io programs).

Ready to dive into definy?
Explore public modules, write expressions in the tree editor, or deploy parts to Cloudflare Workers edge with definy.deploy-to-cloudflare-workers.