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

@tapline/client

v0.2.1

Published

Typed TypeScript SDK for Tapline's web scraping APIs for YouTube, Airbnb, GMGN and GeckoTerminal.

Downloads

469

Readme

@tapline/client

Use @tapline/client to collect live data from YouTube, Airbnb, GMGN, and GeckoTerminal in TypeScript or JavaScript.

What you can do

| Service | Use it to | Full guide | | --- | --- | --- | | YouTube | Get transcripts, search videos, read video and channel details, list playlists, collect comments, inspect formats, and read replay heatmaps | YouTube guide | | Airbnb | Find locations and listings, check prices and availability, and read listing details and reviews | Airbnb guide | | GMGN | Find tokens, check security and market data, inspect holders and traders, and analyze wallets | GMGN guide | | GeckoTerminal | Find pools, read candlesticks and swaps, inspect holders and traders, and follow market trends | GeckoTerminal guide |

One API key and credit balance work across all four services.

Get started

Create a Tapline account and create an API key on the API keys page.

Install the package and save your key in TAPLINE_API_KEY:

npm install @tapline/client
export TAPLINE_API_KEY="your-api-key"

Pass a key from your server's environment or secret manager as apiKey when you create the client:

import { TaplineClient } from '@tapline/client';

const tapline = new TaplineClient({
  apiKey: process.env.TAPLINE_API_KEY,
});

If you omit apiKey, the client reads TAPLINE_API_KEY in Node.js. Keep the key on your server. Do not put it in browser code.

Get a YouTube transcript

import { TaplineClient } from '@tapline/client';

const tapline = new TaplineClient();
const subtitles = await tapline.youtube.getSubtitles({
  video_id: 'https://www.youtube.com/watch?v=jNQXAC9IVRw',
  language: 'en',
  subtitle_format: 'txt',
});

console.log(subtitles.transcript);

See the YouTube guide for search, metadata, channels, playlists, comments, formats, and replay heatmaps.

Search Airbnb listings

import { TaplineClient } from '@tapline/client';

const tapline = new TaplineClient();
const places = await tapline.airbnb.searchLocations({ query: 'London' });
const placeId = places.suggestions[0].place_id;
if (!placeId) throw new Error('Airbnb returned a location without a place_id');
const results = await tapline.airbnb.search({
  place_id: placeId,
  adults: 2,
});

for (const listing of results.listings) {
  console.log(listing.room_id, listing.name);
}

Listing IDs can stop resolving when a host removes a property. See the Airbnb guide for prices, availability, details, reviews, and search filters.

Search GMGN token data

import { TaplineClient } from '@tapline/client';

const tapline = new TaplineClient();
const results = await tapline.gmgn.search({ chain: 'sol', q: 'bonk' });

for (const token of results.data.coins.slice(0, 5)) {
  console.log(token.symbol, token.address);
}

See the GMGN guide for discovery, rankings, security, candles, holders, traders, liquidity, and wallet analytics.

Discover GeckoTerminal pools

import { TaplineClient } from '@tapline/client';

const tapline = new TaplineClient();
const pools = await tapline.geckoterminal.networkLatestPools({ network: 'solana' });

for (const pool of pools.data.slice(0, 5)) {
  console.log(pool.attributes.address, pool.attributes.name);
}

See the GeckoTerminal guide for pool, token, trend, and developer history data.

Go beyond the free tier

Your free account starts with 500 credits and can use every live endpoint. When you need more credits or higher rate limits, choose a paid plan under Billing. Your API key and code stay the same.

Handle errors

Failed requests throw TaplineError. Use its status, error code, and request ID to decide what to do or to contact support.

import { TaplineClient, TaplineError } from '@tapline/client';

try {
  await new TaplineClient().youtube.getMetadata({ video_id: 'not-a-video' });
} catch (error) {
  if (error instanceof TaplineError) {
    console.error(error.status, error.code, error.requestId);
  }
}

The client retries temporary network and server failures. Large integers arrive as strings when JavaScript cannot store them without rounding.

Full API reference

Use the Tapline API reference to check inputs, response fields, and the credit cost of each call.

License

MIT