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

volume-scanner

v1.0.0

Published

This project scans the volume of the Uniswap pairs and sends an email if the volume is higher than the threshold.

Downloads

4

Readme

Uniswap Volume Tracker

Description

This Uniswap Volume Tracker is a Node.js application that monitors and notifies users about high-volume trading pairs on Uniswap. It leverages technologies such as Axios for HTTP requests, Redis for caching, dotenv for managing environment variables, and nodemailer for sending email notifications. The application supports both Uniswap v2 and v3 and allows for notifications to be sent via email or Telegram according to the user's configuration.

Features

  • Compatibility with Uniswap versions 2 and 3.
  • Real-time tracking of swap volumes, fees, and total value locked (TVL).
  • Customizable notification system via email or Telegram.
  • Efficient data caching using Redis.
  • Adjustable notification threshold for tailored alerts.

Installation

  1. Clone the repository to your local machine.

  2. Install the necessary dependencies by running:

    npm install
  3. Configure your environment variables by creating a .env file in the root directory (refer to the Environment Variables section below).

  4. To start the application in a development environment, run:

    npx ts-node index.ts

Docker Usage

To run the application using Docker, use the following command:

docker-compose up --build -d

This command builds the Docker image and starts the container in detached mode.

Environment Variables

Ensure your .env file contains the following variables:

  • TELEGRAM_TOKEN: Your Telegram bot token.
  • TELEGRAM_CHAT_ID: Your Telegram chat ID.
  • SMTP_HOST: Your SMTP server host for email notifications.
  • SMTP_PORT: Your SMTP server port.
  • EMAIL_USER: The email address used for sending notifications.
  • EMAIL_PASS: The password for your email address.
  • RECIPIENT_EMAIL: The recipient's email address for notifications.
  • UNISWAP_VERSION: The version of Uniswap to monitor (v2 or v3).
  • EMAIL_THRESHOLD: The USD threshold for notifications.
  • REDIS_URL: Your Redis server URL.
  • UNISWAP_v2_GRAPH_URL: The Graph API URL for Uniswap v2.
  • UNISWAP_v3_GRAPH_URL: The Graph API URL for Uniswap v3.
  • NOTIFICATION_SEND_INTERVAL: The interval for sending notifications (in milliseconds).
  • NOTIFICATION_TYPE: The type of notification (email or telegram).

Usage

Once the application is running, it will automatically begin monitoring Uniswap swaps based on the configured parameters. Notifications will be sent out when trading pairs exceed the defined thresholds.

License

This project is licensed under the MIT License. See the LICENSE file in the project repository for more information.

Contributing

Contributions to the project are welcome. Please fork the repository, make your changes, and submit a pull request with your updates.


This README provides all necessary information to get started with the Uniswap Volume Tracker. Ensure you follow the setup instructions closely and configure your environment variables correctly for optimal performance.