| Package | File | Publication |
|---|---|---|
| badwords-py | pyproject.toml, python/pyproject.toml | PyPI |
| badwords-core | rust/badwords-core/Cargo.toml | crates.io |
| badwords-wasm | rust/badwords-wasm/Cargo.toml, pkg/ | npm |
| @badwords/languages | js/languages/package.json | npm |
-
make test— all tests pass -
make bench— benchmarks run -
make build— Python wheel builds -
make wasmandmake wasm-nodejs— WASM builds -
make lang-packages— language packages generated -
make ml-package— ML model (quantized) → badwords-ml-model.zip for GitHub Release
PyPI rejects linux_x86_64 wheels. Build in manylinux container:
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin build --release -o dist
twine upload dist/badwords_py-*.whlOr use GitHub Actions: .github/workflows/release.yml publishes to PyPI on release.
cd rust/badwords-core && cargo publishmake wasm-nodejs # or make wasm for browser
make npm-publishmake lang-packages
make npm-publish-languages-
pip install badwords-py— installs -
npm install badwords-wasm— installs -
npm install @badwords/languages— installs - Examples work (examples/rust, examples/python, examples/wasm)