@celestia-island/lagrange
v0.1.2
Published
Scaffold a lagrange documentation site — fetches the prebuilt binary from GitHub Releases and runs `lagrange init`.
Maintainers
Readme
@celestia-island/lagrange
Scaffold a new lagrange documentation site with one command.
npx @celestia-island/lagrange my-docsThis downloads the prebuilt lagrange binary from GitHub Releases (no Rust toolchain needed) and runs lagrange init in the target directory, generating lagrange.toml + docs/en/ skeleton.
Usage
# Basic — creates ./my-docs with defaults
npx @celestia-island/lagrange my-docs
# With a title and native comments
npx @celestia-island/lagrange my-docs --title "My Project" --comments native
# GitHub Discussions comments
npx @celestia-island/lagrange my-docs --comments github-discussionsThen:
cd my-docs
lagrange build --src . --out _siteHow it works
postinstall(install.js): detects the platform, downloads the matchinglagrange-v<ver>-<target>.tar.gzfrom the latest GitHub Release, extracts the binary tobin/.index.js: spawnslagrange initwith forwarded args.
No bundled binary — the package stays tiny; the ~5MB binary is fetched on demand.
Alternatives
If you have Rust:
cargo install lagrange-library
cargo binstall lagrange-library # prebuilt binary, same as this npm package
lagrange init --dir my-docs