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

resync-cli

v1.0.0

Published

Command-line interface for Resync goal tracking application

Readme

Resync CLI

Command-line interface for Resync goal tracking application.

Installation

npm install -g resync-cli

Or install from source:

git clone https://github.com/TejasS1233/Resync.git
cd Resync/cli
npm install
npm link

Quick Start

# Configure API URL
resync config set-url

# Create account or login
resync auth register
resync auth login

# Start tracking
resync goals add
resync goals list

Configuration

Set API URL

# Interactive selection
resync config set-url

# Direct URL
resync config set-url --url https://resync-pvu5.onrender.com/api

# View current config
resync config show

# Reset to defaults
resync config reset

Production URL: https://resync-pvu5.onrender.com/api
Local Development: http://localhost:8000/api

Commands

Authentication

Register new account

resync auth register

Login

resync auth login

View current user

resync auth whoami

Logout

resync auth logout

Goals

List all goals

resync goals list
resync goals ls

# Filter by category
resync goals list --filter Health

# Include inactive goals
resync goals list --all

Add new goal

resync goals add

Interactive wizard prompts for:

  • Title
  • Description
  • Frequency (daily/weekly/monthly)
  • Target count
  • Category
  • Optional end date

Update progress

resync goals check

Select a goal and increment/decrement progress.

Delete goal

resync goals delete
resync goals rm

Notes

Add daily note

# Interactive mode
resync notes add

# Use system editor
resync notes add --editor

List recent notes

resync notes list
resync notes ls

# Limit results
resync notes list --limit 20

View specific note

# View today's note
resync notes view

# View by date
resync notes view 2024-01-15

Statistics

Dashboard summary

resync stats summary
resync stats dash

Shows:

  • Total and active goals
  • Overall progress
  • Recent notes and moods
  • Motivational messages

Detailed goal statistics

resync stats goals

Shows breakdown by frequency and category.

Focus Timer

Pomodoro session

# Default: 25min work, 5min break, 4 cycles
resync focus start

# Custom settings
resync focus start --duration 30 --break 10 --long-break 20 --cycles 4

Simple countdown timer

resync focus timer 15

Starts a 15-minute countdown timer.

Features

  • Secure JWT authentication with automatic token management
  • Beautiful table displays for goals and notes
  • Color-coded output for better readability
  • Loading spinners for async operations
  • System editor integration for note-taking
  • Built-in Pomodoro timer with visual progress
  • Progress bars for goal tracking
  • Graceful error handling

Environment Variables

Override API URL temporarily:

Unix/Linux/macOS:

export API_URL=https://resync-pvu5.onrender.com/api
resync auth login

Windows PowerShell:

$env:API_URL = "https://resync-pvu5.onrender.com/api"
resync auth login

Windows CMD:

set API_URL=https://resync-pvu5.onrender.com/api
resync auth login

Configuration Storage

Config and tokens are stored in:

  • Windows: %APPDATA%\resync-cli-nodejs
  • macOS: ~/Library/Preferences/resync-cli-nodejs
  • Linux: ~/.config/resync-cli-nodejs

Troubleshooting

Command not found

npm link

Connection errors

Ensure backend is accessible:

curl https://resync-pvu5.onrender.com/api/health

Production server may take 30-60 seconds on first request (cold start).

Authentication issues

resync auth logout
resync auth login

Wrong API URL

resync config reset
resync config set-url

Development

# Clone repository
git clone https://github.com/TejasS1233/Resync.git
cd Resync/cli

# Install dependencies
npm install

# Link for testing
npm link

# Unlink
npm unlink -g resync-cli

Tech Stack

  • commander - CLI framework
  • inquirer - Interactive prompts
  • axios - HTTP client
  • chalk - Terminal colors
  • conf - Configuration storage
  • ora - Loading spinners
  • boxen - Terminal boxes
  • cli-table3 - Table formatting

Requirements

  • Node.js v18 or higher
  • npm v9 or higher

Links

  • Production API: https://resync-pvu5.onrender.com/api
  • Web App: https://resync-sh.vercel.app
  • GitHub: https://github.com/TejasS1233/Resync

License

ISC

Support

For issues and questions, open an issue on GitHub.