Official SDKs for the BitBabble sentiment analysis API.
Get 100 tokens free when you sign up. Create an account at bitbabble.net to receive your API key and start analyzing sentiment in seconds.
| Package | Language | Registry |
|---|---|---|
bitbabble-sdk |
JavaScript / TypeScript | npm |
bitbabble-sdk |
Python | PyPI |
- Go to bitbabble.net
- Sign up for a new account
- Copy your API key from the dashboard
- 100 tokens are credited automatically to your account when you sign up—no credit card required
npm install bitbabble-sdkimport { BitBabbleClient } from "bitbabble-sdk";
const client = new BitBabbleClient("bb_your_api_key");
const result = await client.sentiment("I love this product!");
// { sentiment: "positive", score: 0.82, confidence: "high", cached: false }pip install bitbabble-sdkfrom bitbabble import BitBabbleClient
client = BitBabbleClient(api_key="bb_your_api_key")
result = client.sentiment("I love this product!")
# {"sentiment": "positive", "score": 0.82, "confidence": "high", "cached": False}Full API reference at bitbabble.net/docs.
To bump versions in both packages before merging:
./scripts/bump.sh patch # 1.0.0 → 1.0.1
./scripts/bump.sh minor # 1.0.0 → 1.1.0
./scripts/bump.sh major # 1.0.0 → 2.0.0Then commit the changes and merge.
Both packages are published automatically via GitHub Actions when you merge to main:
- npm — see
.github/workflows/publish-npm.yml - PyPI — see
.github/workflows/publish-pypi.yml
| Secret | Description |
|---|---|
NPM_TOKEN |
npm access token with publish permission |
PYPI_API_TOKEN |
PyPI API token (or use trusted publishing with OIDC) |
MIT