Registry / http-networking / caliph-api

caliph-api

JSON →
library1.0.1jsnpmunverified

Version 1.0.1. Unmaintained Node.js library offering a collection of Indonesian-centric scrapers, downloaders, encryption utilities, and random generators. Provides easy-to-use promise-based API for services like TikTok, Instagram, YouTube, and local Indonesian data (cuaca, gempa, artinama). Released primarily for personal use; no active updates or community maintenance. Known for combining many heterogeneous APIs into a single package without consistent error handling or documentation. Alternatives include dedicated scrapers like ytdl-core, instagram-scraper, or locale-specific packages.

npm install caliph-api
INSTALL
IMPORT
SIG · CALIPH-API
C
caliph-api
http-networkingjavascriptv1.0.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–223 runs
build_error
glibc
node 18–223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ const api = require('caliph-api');
✗ import api from 'caliph-api';
Package only provides CommonJS module; ESM import will fail.
api.encrypt.binary.enc
✓ api.encrypt.binary.enc('hello');
✗ api.encrypt.binary.enc('hello'); // works but no type safety
Not exported individually; must access via main object.
api.info.gempa
✓ api.info.gempa().then(console.log);
✗ api.info.gempa(); // returns promise, must be awaited
All API methods return Promises.

Demonstrates basic usage including fetching info and binary encryption.

const api = require('caliph-api'); async function main() { try { const gempa = await api.info.gempa(); console.log(gempa); const binaryEncoded = api.encrypt.binary.enc('hello world'); console.log(binaryEncoded); const binaryDecoded = api.encrypt.binary.dec(binaryEncoded); console.log(binaryDecoded); } catch (error) { console.error(error); } } main();
Debug
Known issues
deprecatedLibrary is effectively unmaintained; no updates or fixes.
fix
Use dedicated libraries like ytdl-core, instagram-scraper, etc.
affects: all
gotchaAll methods return Promises; forgetting to await will cause silent failures.
fix
Always use await or .then() on API calls.
affects: >=1.0.0
gotchaNo TypeScript definitions; all types are any.
fix
Create custom .d.ts or use JSDoc.
affects: all
gotchaSome endpoints (e.g., gempa) may be broken due to external API changes.
fix
Check GitHub issues before relying on specific features.
affects: all
breakingIncorrect usage of encrypt.binary.enc with non-string arguments may crash.
fix
Always pass strings.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: api.info.gempa is not a function
Method may have been removed or renamed.
fix
Check documentation for updated method names; fallback to alternative.
Cannot find module 'caliph-api'
Module not installed or ESM context without proper transformation.
fix
Install with `npm install caliph-api` and use require, not import.
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'enc' of undefined
api.encrypt is undefined due to missing dependencies or broken require.
fix
Ensure all dependencies are installed; try reinstalling.
Error: Request failed with status code 404
Underlying API endpoint is down or changed.
fix
Verify that the service is still available; consider alternative.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
caliph-api — npm install caliph-api · libregistry