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 🙏

© 2025 – Pkg Stats / Ryan Hefner

fitr

v0.2.0

Published

Financial Investment Tracker

Readme

Investment Portfolio Tracker

A command-line tool for tracking your investment portfolio built with TypeScript and Node.js.

Requirements

  • Node.js 18 or higher
  • npm 8 or higher

Features

  • Track positions in stocks, ETFs, crypto, and other assets
  • Fetch real-time prices from Yahoo Finance API
  • Store historical price data for each asset
  • Calculate performance metrics (gain/loss, percentage changes)
  • View your portfolio online or offline

Installation

Option 1: Install from npm (Recommended)

npm install -g fitr

Option 2: Local Development Setup

git clone https://github.com/adimoldovan/fitr.git
cd fitr
npm install
npm run build
npm link

Usage

Run fitr to start the program. The following commands are available:

Quick Start

Here's a simple workflow to get started:

  1. Install the tool: npm install -g fitr
  2. Add your first transaction: fitr transaction add
  3. View your portfolio: fitr
  4. Sync latest prices: fitr -s

Main Commands

  • fitr: Display your portfolio summary
    • -s, --sync: Fetch and update historical price data for all assets and calculate portfolio performance
    • -g, --growth-rate <rate>: Set the expected annual growth rate for portfolio predictions (default: 0.07)
    • -p, --skip-prediction: Hide the prediction table
    • -v, --verbose: Enable verbose logging mode
    • -D, --dev-data: Use development data directory
    • --help, -h: Display help information

Transaction Management

  • fitr transaction add: Add a new transaction

    • --help, -h: Display help information
  • fitr transaction list: List transactions

    • -s, --symbol <symbol>: Filter transactions by asset symbol
    • --help, -h: Display help information

Data Structure

The portfolio tracker stores all data in JSON files in your home directory or iCloud Drive for MacOS:

  • config.json: Configuration file
  • portfolio.json: Contains the main portfolio summary with all assets and their latest values
  • prices/{SYMBOL}.json: Historical prices for each asset
  • transactions/{SYMBOL}.json: Transactions data for each asset
  • currency.json: Currency exchange rates cache

When using the -D, --dev-data flag, data is stored in the data/ directory of your current working directory instead.

Uninstall

npm uninstall -g fitr