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

@jongan69/stonksjs

v4.0.1

Published

Reliable algotrading utilities written in node

Readme

@jongan69/stonksjs

Reliable algotrading utilities written in node - Updated and maintained fork

GitHub release (latest SemVer) Coveralls github PRs Welcome

Features

  • Custom screeners from finviz, msn, and finscreener
  • Detailed ticker fundamentals
  • Module and CommonJS compatible
  • Light-weight - few to no dependencies

Goals

What stonksjs is:

The primary objective of this project are:

  • To provide a collection of reliable algotrading utilities written in typescript/node
  • Take some of the guess-work out of the stock research process by using industry-tested, predefined screeners
  • Provide more data-points for a given instrument than most packages currently available
  • Enable algotrading programmers with diversified assets - not just the hottest options rumors on r/wallstreetbets

What stonksjs is not:

  • stonksjs is not a roboadvisor or professional trading app - this is just a fun little side project
  • stonksjs is not an unofficial API for Robinhood or any other brokerage. If that's what you're looking for, I'd recommend algotrader
  • stonksjs is not a backtesting tool, although that might get added to the roadmap soon

Usage

Installation, usage, and API docs can be found in each scoped package directory.

Quick Start with Examples

The easiest way to get started is with our comprehensive examples:

# Run the interactive demo
./examples/run-demo.sh

# Or run directly
node examples/comprehensive-demo.js

This will demonstrate all the functionality across the stonksjs ecosystem, including:

  • 📊 Stock quote retrieval with detailed metrics
  • 🔍 40+ pre-defined stock screeners
  • 💾 Cached quote data for better performance
  • 🚀 Advanced portfolio and sentiment analysis

| Name | Description | Version | | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- | | @stonksjs/core | Single point of entry for all stonksjs packages | npm (scoped) | | @stonksjs/quote | Detailed, real-time stock quote data | npm (scoped) | | @stonksjs/finviz | Unofficial finviz API | npm (scoped) | | @stonksjs/stock-screener | Pre-defined industry standard stock screeners from MSN Money | npm (scoped) |

Development

Setup

Prerequisites

This project requires node v18.0.0 or higher.

Installation

Clone the repo and install the dependencies:

git clone http://github.com/nielse63/stonksjs.git
cd stonksjs
nvm use
npm ci

Testing

Tests are run using jest, and can be run by executing:

npm test

# run with coverage
npm test -- --coverage

Examples

Comprehensive examples are available in the examples/ directory:

# Run the interactive demo script
./examples/run-demo.sh

# Or run examples directly
node examples/comprehensive-demo.js        # JavaScript version
npx ts-node examples/comprehensive-demo.ts # TypeScript version

The examples demonstrate:

  • All package functionality with real-world usage
  • Performance optimization techniques
  • Advanced analysis patterns
  • Error handling best practices

Release

To release a new version, run:

npm run release

This executes lerna publish behind the scenes, and you'll be prompted with a few questions before the package is deployed.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Roadmap

All new features and changes are being tracked in GitHub under the projects and issues tabs of this repo.