JavaScript/TypeScript Setup
Fory JavaScript/TypeScript packages are published on npm. The core package works without native acceleration; the optional @apache-fory/hps Node.js fast path requires Node.js 20 or later. Keep Fory packages in one application on compatible versions.
Verify the Toolchain
node --version
npm --version
Choose a Capability
| Capability | Package or tool | Continue with |
|---|---|---|
| Object Serialization | @apache-fory/core; optional @apache-fory/hps | JavaScript/TypeScript object serialization and xlang |
| Schema and generated models | fory-compiler | Fory IDL and Compiler |
| Fory gRPC | generated Node.js or gRPC-Web companions | JavaScript gRPC |
Each capability guide owns its exact install command, environment-specific setup, and first runnable example.