Packages

Thirty packages, each one plain Lumen with tests, imported straight from a URL: no package manager, no install step, no lockfile. Those marked FFI link a C library and build on the native target (some also ship a wasm archive for the browser).

Using a package

Import an export straight from the package's URL and build as usual. The source is fetched over HTTPS at compile time and compiled in.

import greet from "https://lumen-lang.org/package/std-contrib/hello/hello.ts";

console.log(greet("world"));   // Hello, world!

lumen-lang.org/package/std-contrib/<name>/<name>.ts redirects to the package's repository, and the raw GitHub URL works too. Each package's page has its API, the decisions inside it and how it is tested; the FFI packages document their local build there.

markdown is fast

The pure-Lumen markdown renderer outpaces the popular Node.js Markdown libraries. Rendering a typical ~3 KB document in a tight loop — renders per second, higher is better:

Rendererrenders / sec
markdown (this package)6,775
markdown-it2,020
marked1,064

About 3.4× faster than markdown-it and 6.4× faster than marked on the same document.

Contributing

One package per directory, statically typed, tested, current-language features only, with an entry in the catalog. The community page has the short version and links to CONTRIBUTING.