# @valkyrie-language/legion

> Legion 0.0.x Node/Wasm GC seed package (Rust-produced). Not self-hosted.

Latest version **0.0.10** (published 2026-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @valkyrie-language/legion
pnpm add @valkyrie-language/legion
yarn add @valkyrie-language/legion
bun add @valkyrie-language/legion
```

Provides the command `legion`.

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2026-08-28 |
| First published | 2026-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 30.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | galaster |
| Keywords | valkyrie, legion, wasm, wasm-gc, compiler |

## Links

- npm: https://www.npmjs.com/package/@valkyrie-language/legion
- Repository: https://github.com/valkyrie-language/valkyrie.rs
- Homepage: https://github.com/valkyrie-language/valkyrie.rs#readme
- Issues: https://github.com/valkyrie-language/valkyrie.rs/issues
- npm.io page: https://npm.io/package/@valkyrie-language/legion

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.10 (latest) — 2026-08-28

## README

# `@valkyrie-language/legion` 0.0.0

Node 24 / Wasm GC **seed** package for Legion `0.0.x`.

This package is produced by the Rust seed (`valkyrie.rs`). It is **not** a claim of
`self-hosted` or `bootstrap-proven`. Those gates are `0.1.0`.

## Layout

| File | Role |
|:---|:---|
| `bin/legion.mjs` | Published CLI entry (`legion` / `npx @valkyrie-language/legion`) |
| `lib/host.mjs` | Host ABI for Wasm imports (`env.*`) |
| `lib/cli.mjs` | Argv dispatch (`--version` / `--help` / `build`) |
| `legion.wasm` | Wasm GC module (filled by assemble; not committed empty) |
| `run-contracts.txt` | Run contract sidecar from Node emit |
| `provenance.json` | Build provenance (commit, toolchain, digests) |
| `SHA256SUMS` | File digests |

## Install (after assemble / publish)

```bash
pnpm add @valkyrie-language/legion@0.0.0
# or from a local tarball:
pnpm add ./valkyrie-language-legion-0.0.0.tgz
```

```bash
legion --version
legion --help
legion build <project-dir> --target node -o dist/out
```

## Assemble (maintainers)

From `valkyrie.rs` after a Node build that produces `legion.mjs` + `legion.wasm`:

```bash
node scripts/assemble-legion-wasm.mjs --from <path-to-node-artifact-dir>
npm pack ./packages/legion-wasm
```

`--from` must be a repo-relative or absolute path to a directory that already
contains `legion.wasm` (and preferably `run-contracts.txt`). No hardcoded
machine paths.

## Known limits (0.0.0)

- Seed stage only: legal for `source → v1`, not for claiming L2 convergence.
- Full `legion.tools` v1→v2 may still fail; see workspace `内部决策/06-当前卡点.md`.
- Link / install must not read Rust source, Cargo `target/`, or host compiler
  callbacks at runtime.

## License

MIT — see repository `LICENSE.md`.

---
_Source: https://npm.io/package/@valkyrie-language/legion · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
