B4N1Lang | The Sovereign Language

B4N1Lang

One language. Server and browser. No runtime dependencies.

What it is

B4N1Lang is a compiled language for full-stack applications. You write one .bl file and the compiler produces a self-contained server binary and a browser module from the same source. What you deploy is the program — no interpreter, no container recipe, no dependency tree to install.

The language in 60 seconds

self Hello ()
    .(name = "world")
    .(n = 3)
    .("hello ".concat(name).concat(" ").concat(str(n)))

Entities (self), maps, lists, conditionals, and jewels — native modifiers resolved to their own artifact. The .(expr) bubble is the block's output: what the entity returns. Everything flows through bubbles. The jewels catalogue

One source, every target

The compiler lowers your program to an internal representation, then emits it for each target: a native server binary for deployment, a WebAssembly module for the browser. Same source, same semantics, no rewrite.

b4n1 compile app.bl app
b4n1 compile --mode wasm app.bl app.wasm

Numbers

  • Browser module, hello world: 704 bytes
  • This very site runs on B4N1Lang: 33,000+ posts, 108 languages

⬇ offline playground · ▶ notebook in your browser — run cells that chain in your browser, or export them as a .ipynb that installs everything and runs on Google Colab (free community Colab works; add your own secrets if you want them).