HENFOIL · Beginner · JavaScript / TypeScript SDK
JavaScript / TypeScript SDK
Beginner npm install, env vars, and hello scripts for every HENDOI product JS/TS package.
Use the official JavaScript / TypeScript SDKs for Node scripts and tooling. Each product has its own npm package and key. Install one package, set one env var, call usage() first.
Beginner path
- Pick the product you need (table below).
npm install …that package.- Set the matching
*_API_KEYenvironment variable. - Run the hello script and confirm you receive usage JSON.
- Open that product's analysis pages for real calls.
Packages
| Product | Install | Env var | Key prefix |
|---|---|---|---|
| HENFOIL | npm install @hendoi/henfoil | HENFOIL_API_KEY | hfk_ |
| HENSYNTH | npm install @hendoi/hensynth | HENSYNTH_API_KEY | hsk_ |
| HENFLOW | npm install @hendoi/henflow | HENFLOW_API_KEY | hfwk_ |
| HENSTRUCT | npm install @hendoi/henstruct | HENSTRUCT_API_KEY | hstk_ |
| HENMESH | npm install @hendoi/henmesh | HENMESH_API_KEY | hmk_ |
Smallest HENFOIL hello
npm install @hendoi/henfoil
# set HENFOIL_API_KEY=hfk_…
import { Client } from "@hendoi/henfoil";
const usage = await new Client().usage();
console.log(usage);
Smallest sister-product hello
npm install @hendoi/hensynth
# set HENSYNTH_API_KEY=hsk_…
import { Client } from "@hendoi/hensynth";
const usage = await new Client().usage();
console.log(usage);
Meters
- Same honesty as the Python SDKs: keyed calls spend product automation meters.
- HENFOIL JS/TS shares the HENFOIL
pythonSdkpool with the Python client. - Free plan has 0 HENFOIL SDK calls until you upgrade.
Examples
- henfoil-sdk-examples
- hensynth-sdk-examples
- henflow-sdk-examples
- henstruct-sdk-examples
- henmesh-sdk-examples
npm: @hendoi/henfoil · @hendoi/hensynth · @hendoi/henflow · @hendoi/henstruct · @hendoi/henmesh.
Next: Python SDK · HENFOIL Overview.
