npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@heavstaltech/api

v2.0.3

Published

A powerful, zero-dependency multi-purpose sdk client for interacting with Heavstal Tech Api Utilities. Supports ESM and CJS.

Readme

[!IMPORTANT]> This package has been moved to @heavstal/api and is no longer maintained, please migrate as soon as possible to receive new updates

A powerful, zero-dependency multi-purpose SDK client for interacting with Heavstal Tech API Utilities. Supports ESM and CJS.

This module provides streamlined programmatic access to media parsing, search engines, file compilation, and AI utility tools without requiring external dependencies like Puppeteer or Axios.


Installation

Install via npm:

npm install @heavstaltech/api

Install via yarn:

yarn add @heavstaltech/api

Authentication

To use this SDK, you must have a valid API Key from Heavstal Tech Credentials. The SDK supports two methods of authentication:

1. Environment Variable (Recommended)

The SDK will automatically detect your API key if it is set in your environment variables.

# .env
HEAVSTAL_API_KEY=ht_live_your_api_key_here

2. Manual Configuration Object

If you prefer not to use environment variables, or need to switch keys dynamically, you can pass a configuration object as the final argument to any function.

const config = { apiKey: "ht_live_your_api_key_here" };

// Example passing the config
const result = await downloader.tiktok("https://vt.tiktok.com/...", config);

Usage

This library is a hybrid module, meaning it seamlessly supports both CommonJS (require) and ES Modules (import).

ES Modules / TypeScript (import)

import { downloader, search, tools } from '@heavstaltech/api';

// Or import specific standalone methods
import { tiktok, apk, unzipToText } from '@heavstaltech/api';

CommonJS (require)

const { downloader, search, tools } = require('@heavstaltech/api');

// Or require specific standalone methods
const { tiktok, apk, unzipToText } = require('@heavstaltech/api');

API Documentation

1. Social Media Utilities

TikTok (Video & Slides) Extract videos without watermarks, audio tracks, and slide images.

// Video Extraction
const video = await downloader.tiktok("https://vt.tiktok.com/..."); 
console.log(video.no_watermark);

// Image Slides Extraction
const slide = await downloader.tiktokSlide("https://vt.tiktok.com/...");
console.log(slide.slideImages);

Instagram (Reels, Images, Videos) Extract media from public Instagram posts.

const ig = await downloader.igdl("https://www.instagram.com/p/...");
console.log(ig);

Facebook Extract public Facebook Watch and post videos.

const fb = await downloader.fbdl("https://fb.watch/...");

Twitter / X Extract media from X.com (Twitter). Returns standard and high-definition video links.

const tweet = await downloader.xdl("https://x.com/user/status/...");
console.log(tweet.video_hd);

2. YouTube Search & Extraction

Search

const results = await search.youtube("No Copyright Sounds");
console.log(results[0].url); 

Extract Audio / Video

// Extract MP3 Audio
const audio = await downloader.ytmp3("https://youtu.be/...");

// Extract MP4 Video
const video = await downloader.ytmp4("https://youtu.be/...");

// Play (Search and instantly extract first result)
const song = await downloader.play("Adele Hello", "mp3");

3. Search Utilities

APK Metadata & Downloads Search for Android applications and fetch high-speed download links.

const app = await search.apk("WhatsApp");
console.log(`Version: ${app.version} | Link: ${app.dl_url}`);

Song Lyrics (LRCLIB & Genius) Fetch accurate song metadata and lyrics.

const song = await search.lyrics("Kendrick Lamar DNA");
console.log(song.lyrics);

Wattpad & Chords

// Search Wattpad stories
const stories = await search.wattpad("Science Fiction");

// Fetch Guitar Chords
const chords = await search.chords("Ed Sheeran Perfect");

4. General & AI Tools

Repository/ZIP to Text Extractor Downloads a remote ZIP file, recursively extracts it, and compiles it into a single text buffer. Highly optimized for feeding codebases into Large Language Models (LLMs).

const fs = require('fs');

// includeBinary: false skips images/PDFs, perfect for text/code extraction
const codebase = await tools.unzip("https://github.com/user/repo/archive/main.zip", { 
  includeBinary: false 
});

fs.writeFileSync(codebase.filename, codebase.buffer);

Text to Speech (Google TTS) Convert text into spoken audio buffer.

// Second argument is the language code (e.g., 'en', 'ja', 'es')
const audioBuffer = await tools.tts("Hello World", "en");

Website Screenshot Capture responsive screenshots of any given URL.

// Device options: 'desktop', 'tablet', 'phone'
const imgBuffer = await tools.ssweb("https://google.com", "desktop");

Text Styling & Morse Code

// Generate stylized text variations
const fonts = await tools.styleText("Heavstal Tech");

// Morse code encoding/decoding
const morseStr = await tools.morse("HELLO", "encode"); // Output: .... . .-.. .-.. ---

Heavstal Tech Ecosystem

This package is part of the Heavstal Tech platform. For endpoint documentation, uptime status, and higher rate limits, please visit our official portals:


License

This project is licensed under the MIT License.