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 🙏

© 2024 – Pkg Stats / Ryan Hefner

gecko-api-cryptoscan

v1.0.0

Published

A TypeScript-based tool for loading and monitoring cryptocurrency pool data from GeckoTerminal API with WebSocket support.

Downloads

57

Readme

Gecko API - Cryptoscan

A TypeScript-based tool for loading and monitoring cryptocurrency pool data from GeckoTerminal API with WebSocket support.

Current Price: $420 Contacts: https://t.me/dan_cryptoscan

What you get:

  • Free setup into your hosting
  • Free help to integrate app to your server
  • Full access to the codebase and code updates
  • Free updates for app, you can request for free updates via access to issues
  • Full access to Project Time tracking by developers

Features

  • Fetch and monitor cryptocurrency pools across multiple networks
  • Real-time WebSocket updates for pool data
  • Liquidity-based prioritization system
  • Rate limiting and request throttling
  • CEX token price monitoring
  • Persistent data storage using FileMap

Installation

# Clone the repository
git clone https://github.com/cryptoscan-pro/gecko-api.git

# Install dependencies
npm install

Configuration

Create a .env file with the following variables:

GECKO_CONCURRENCY=1  # Number of concurrent requests

Usage

Starting the Service

npm start

Main Components

Pool Loading

  • loadPools(): Loads pool data based on liquidity groups
  • searchPools(): Search for specific pools by symbol
  • fetchPools(): Fetches pool data from GeckoTerminal API

CEX Integration

  • getCexCoins(): Retrieves coins listed on centralized exchanges
  • fetchCexTokens(): Fetches token data from CEX API

Liquidity Groups

Pools are categorized into four liquidity groups:

  • ULTRA_LOW: < $100
  • LOW: $100 - $100,000
  • MEDIUM: $100,000 - $1,000,000
  • HIGH: > $1,000,000

Each group has different update intervals and priorities for data fetching.

WebSocket Support

The service includes a WebSocket server for real-time data broadcasting. Clients can connect to receive updates based on configurable thresholds.

API Reference

Pool Interface

interface Pool {
    base: string;
    quote: string;
    network: string;
    poolAddress: string;
    address: string;
    priceUSD: number;
    createdAt: number;
    fdvUSD: number;
    marketCapUSD: number;
    // ... (includes various time-based metrics)
}

Rate Limiting

The service implements rate limiting with:

  • 30 requests per minute (RPM)
  • Configurable concurrency via environment variables
  • Automatic retry mechanism for failed requests

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

ISC License