A JavaScript and TypeScript engine that compiles every function to native code ahead of time, using type annotations as guarded optimization hints. No interpreter, no JIT, no deoptimization.
Download the standalone CLI archive for Linux AMD64 or macOS AArch64 from GitHub Releases. Extract it into a working directory and save line-match.ts there from the raw source. Then build the TypeScript program and pass it a pattern and two input lines.
./oseo build line-match.ts -o line-match
printf '서울\n도쿄\n' | DEMO_LABEL=travel ./line-match '도쿄'{"label":"travel","lines":2,"matches":[{"line":2,"text":"도쿄"}]}The standalone CLI includes Node.js and acquires pinned Zig on the first native build. The compiled program runs without Node.js or Zig. See the installation guide for npm, pnpm, and mise installs, or build the CLI from a checkout.
Every function is compiled into a generic path that implements the full language semantics of the current release. Wherever Oseo can generate a cheap runtime guard for a value's kind, type, or shape, it compiles a specialized path alongside. A failed guard branches straight into the generic path, which is already sitting in the binary, compiled, not interpreted. Nothing gets deoptimized because nothing was left uncompiled.
This follows the lineage of Common Lisp implementations like SBCL and of Chez Scheme rather than the interpreter-plus-speculative-JIT design of mainstream JavaScript engines. There is no profiling tier to warm up.
Normally tsc erases type annotations before an engine ever sees the code.
Because Oseo compiles from the original source, it keeps those annotations, and
JSDoc types in plain JavaScript, as optimization hints. Those hints select
which specialized path to generate. Every resulting assumption stays guarded
at runtime, since a : number annotation can be wrong through any, type
assertions, or interop with untyped code. Oseo does not type-check: it reads
annotations at the syntax level and never depends on tsc.
Oseo is early and under active development. It has completed milestone M5, which measured ECMAScript compatibility on top of M4's native module graphs, promises, asynchronous execution, and native event loop. The post-M5 language work then moved the measurement to ECMAScript 2026 with Annex B, as the ECMAScript 2026 language profile records. ROADMAP.md names the plans that continue from there.
Oseo currently supports an explicit language profile rather than the whole of ECMA-262, and it does not yet claim conformance to any edition. Releases publish their supported profile and test262 results instead. Supported native execution targets are Linux on AMD64 and macOS on AArch64, with AArch64 Linux kept as a compile-link and inspection target.
- Using Oseo covers installation, examples, CLI options, and supported features.
- Development covers building the project and the documentation, and links to design and test evidence.
- WHITEPAPER.md explains the motivation and intended scope, and why the design is worth building now.
- DESIGN.md records the architectural constraints and how the compiler, runtime, and backend fit together.
- ROADMAP.md defines the capability milestones and their exit criteria.
- CONTRIBUTING.md covers the development environment, package boundaries, and coding policy.
Report bugs in GitHub issues. Report security vulnerabilities privately using the instructions in SECURITY.md.
Oseo uses mise as the entry point for development tools and repository tasks. The mise setup installs the pinned pnpm release and synchronizes workspace dependencies with a frozen lockfile. See CONTRIBUTING.md for the toolchain rules and dependency skills.
mise install
mise tasks
mise run check
mise run testmise tasks lists the commands available in the current checkout. A command
described in a design or plan document may not exist until its implementation
lands.
Oseo (/o.sʌ/, “OH-suh”) is the Sino-Korean reading of 鼯鼠, the flying squirrel. A flying squirrel moves through the trees like any squirrel, and then spreads the patagium along its sides and glides when the terrain calls for it. Generic execution is always there and always correct; a checked specialization takes the faster route when the ground allows it.
Oseo-authored material is licensed under the GNU General Public License, version 3 or (at your option) any later version, unless otherwise noted. This includes the compiler and CLI. See LICENSE. The Oseo-authored runtime and support incorporated into compiled programs are under the MIT license. Your own code keeps its terms. If you distribute an executable, include the MIT and Unicode notices and any applicable third-party notices. See the license inventory for the notice files and the license terms of each part.