Skip to Content
DocsInternalsInternals

Internals

This section describes the internal implementation of the LODE compiler and runtime. Understanding these details is not necessary for using LODE, but is helpful for contributors and for debugging edge cases.

Runtime

LODE is built for the Bun runtime. The fingerprint function uses Bun.CryptoHasher for SHA-256. The CLI shebang is #!/usr/bin/env bun.

Dependencies

LODE has zero runtime dependencies. It uses only:

  • TextEncoder / TextDecoder (Web API, built into all runtimes)
  • DataView (Web API)
  • Bun.CryptoHasher (Bun built-in)
  • structuredClone (Web API)
  • fs.readFileSync (Node/Bun built-in)

Build

LODE is bundled with tsup:

cd packages/lode && bun run build

This produces CommonJS and ESM outputs.

Last updated on