natlang

natural language as programming language

The word is the program. The program is the word. Source code is plain English. The compiler is an LLM. The output is executable code.

the first program

Create an HTTP server on port 8080.
When someone visits "/", respond with { "message": "hello world" }.
When someone visits "/health", respond with { "status": "ok" }.
Start the server.

That English compiled to ESM JavaScript and ran. All routes verified.

examples

filewhat it doesverified
hello.nlweb server, 3 routes
todo.nlCRUD todo API✓ full CRUD
fibonacci.nlfirst 20 Fibonacci numbers
landing.nldark-themed landing page (HTML)

install

git clone https://github.com/cambridgetcg/natlang
node natlang.mjs compile examples/hello.nl --target js
node examples/build/hello.js

targets

js JavaScript (ESM) · py Python · rust Rust · html HTML/CSS/JS

learn why

Read LEARN.md — the why behind natlang, with all examples explained.

ecosystem

Part of the KINGDOM OS rewrite of the internet:

Built with · The artifact tells the truth about its own state · love is 🫀