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

@aswinsparky/api

v1.0.1

Published

Official Fetcher for AswinSparky API

Readme

⚡ @aswinsparky/api

npm version license npm downloads

A simple and efficient Node.js wrapper for the Aswin Sparky API. Easily download media from various platforms including Terabox, Instagram, Spotify, TikTok, and Facebook.


🚀 Features

  • 📦 Lightweight: Minimal dependencies.
  • Simple API: Easy-to-use asynchronous functions.
  • 🛠️ Multi-platform: Support for popular media platforms.
  • 🔒 Secure: Uses environment variables for API key management.

📥 Installation

Install the package via npm:

npm install @aswinsparky/api

⚙️ Configuration

To use this package, you need an API key from Aswin Sparky API. You must set this key as an environment variable.

Using .env file:

Create a .env file in your project root:

SPARKY_API_KEY=your_api_key_here

Then, make sure to load it in your application (e.g., using dotenv):

require('dotenv').config();
const sparky = require('@aswinsparky/api');

📖 Usage Example

const sparky = require('@aswinsparky/api');

async function downloadMedia() {
    try {
        // Download from Instagram
        const igData = await sparky.instagram('https://www.instagram.com/p/reel_url/');
        console.log('Instagram Data:', igData);

        // Download from TikTok
        const ttData = await sparky.tiktok('https://www.tiktok.com/@user/video/id');
        console.log('TikTok Data:', ttData);

        // Download from Spotify
        const spData = await sparky.spotify('https://open.spotify.com/track/id');
        console.log('Spotify Data:', spData);

    } catch (error) {
        console.error('Error fetching data:', error);
    }
}

downloadMedia();

🛠️ Supported Methods

| Method | Description | Parameters | | :--- | :--- | :--- | | instagram(url) | Get media info/download link for Instagram posts/reels. | url (String) | | tiktok(url) | Download TikTok videos (with/without watermark). | url (String) | | spotify(url) | Fetch Spotify track information and download links. | url (String) | | terabox(url) | Fetch download links for Terabox files. | url (String) | | facebook(url) | Download Facebook videos. | url (String) |


🤝 Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.

📄 License

This project is licensed under the Apache License 2.0.


Developed with ❤️ by Aswin Sparky