Ossplate
Scaffold and maintain one Rust-core CLI that ships cleanly through Cargo, npm, and PyPI.
ossplate helps maintainers and agents start and keep a single CLI aligned across Rust, npm, and PyPI.
It gives you a working baseline with:
- one real core CLI
- thin JavaScript and Python wrappers
- release-ready workflows for Cargo, npm, and PyPI
- a scaffold you can create, adopt, and keep in sync
- machine-checkable validation, planning, repair, inspection, and verification commands for agent loops
What It Does
Use ossplate when you want a single command-line tool to exist cleanly in multiple ecosystems without maintaining three separate implementations.
It can:
- create a new scaffolded project
- initialize an existing directory with the expected structure
- validate project identity and metadata
- synchronize the files it owns
- inspect effective repo contracts
- plan publish behavior and local preflight state without mutation
- run the full repo gate as a structured JSON contract
Best Fit
ossplate is optimized for projects with this structure:
- one Rust-core CLI
- thin JavaScript and Python wrappers
- multi-registry distribution through Cargo, npm, and PyPI
- deterministic ownership, validation, and sync contracts
Installed Usage
If ossplate is already installed, lead with the CLI directly:
Then check that everything is aligned:
Source Checkout Usage
If you are working from a source checkout instead of an installed binary, the equivalent commands are:
cargo run --manifest-path core-rs/Cargo.toml -- create <target>to produce a coherent Rust-core baselinecargo run --manifest-path core-rs/Cargo.toml -- validate --jsonto inspect repo health in machine-readable formcargo run --manifest-path core-rs/Cargo.toml -- inspect --jsonto read the effective config, owned files, and derived runtime contractcargo run --manifest-path core-rs/Cargo.toml -- sync --check --jsonor-- sync --plan --jsonto inspect bounded driftcargo run --manifest-path core-rs/Cargo.toml -- sync --jsonto apply bounded repairs with a structured resultcargo run --manifest-path core-rs/Cargo.toml -- publish --plan --jsonto inspect local publish preflight without side effectscargo run --manifest-path core-rs/Cargo.toml -- verify --jsonto run the full repo gate with per-step structured results
When an AI agent is driving repo setup or maintenance from source, that cargo run --manifest-path core-rs/Cargo.toml -- ... form is the direct way to invoke the same CLI surface without installing first.
Quick Start
Then check that everything is aligned:
For a generated-repo-safe operations guide, see docs/agent-operations.md.
Core Commands
The same command surface is available through the Rust binary and the packaged JS/Python wrappers. From a source checkout, prefix the same subcommands with cargo run --manifest-path core-rs/Cargo.toml --.
Why It’s Useful
- You keep one source of truth for CLI behavior.
- You avoid drift between Rust, npm, and PyPI releases.
- You get a real scaffold instead of a fake demo project.
- You can publish with modern registry workflows instead of assembling release plumbing from scratch.
- You give AI agents a deterministic contract for bootstrap, validation, and repair.
Learn More
License
Licensed under the Unlicense.