This is the official TypeScript client for the Reduction streaming engine.
Reduction currently runs best with bun.
# Using bun (recommended)
bun add reduction-ts
# Using npm
npm install --save reduction-tsThen take a look at the Getting Started guide.
This project uses protocol definitions from the sibling reduction-protocol
repository to generate TypeScript code.
- Ensure you have the
reduction-protocolrepository cloned at../reduction-protocol(sibling directory to this project) - Run code generation:
./scripts/gen - Generated files will be placed in
src/proto/and contain version information insrc/proto/VERSION - Generated TypeScript files should be committed to the repository.
npm version patch
git push