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

tracli-cli

v0.1.0

Published

The zero-friction work logger for terminal-first developers.

Downloads

104

Readme

TraCli (MVP)

The zero-friction work logger for terminal-first developers.

TraCli is a lightweight Command Line Interface (CLI) for developers who find traditional time-tracking tools (Jira, Clockify, spreadsheets) disruptive to their workflow. It focuses on rapid time entry, local-first storage, and optional cloud synchronization so work logs are never lost.

Executive summary

TraCli aims to make logging work feel as natural as writing a commit message: quick prompts, sane validation, and a storage model that works offline by default.

Getting started (local development)

Prerequisites:

  • Node.js 18+

Install and build:

npm install
npm run build

Run the CLI in dev mode:

npm run dev -- --help

Install the CLI globally on your machine (from this repo):

npm run build
npm link

tracli --help

CLI commands

  • tracli track — guided prompt to log work (hours, optional ticket, description)
  • tracli status — weekly summary as an ASCII table
  • tracli sync — pushes unsynced local logs to the API

Configuration

Environment variables:

  • TRACLI_STATE_FILE — override local JSON state file path (default: ~/.tracli/state.json)
  • TRACLI_API_BASE_URL — API base URL for tracli sync (default: http://localhost:3000)

Sync API contract

tracli sync is intentionally server-agnostic. It expects an HTTP API at:

  • POST /api/v1/logs with JSON body { "entries": [...] }

Point the CLI to your server with TRACLI_API_BASE_URL.

Core features (lean MVP)

  • Command-driven entry: a single command (e.g., tracli track) triggers a guided prompt sequence.
  • Validation logic: hours must be between 0.5 and 12 per entry to improve data quality.
  • PBI/ticket association: optional field for linking work to specific project IDs.
  • Local persistence: data stored locally (SQLite or JSON) for offline-first speed.
  • Cloud sync (optional): tracli sync pushes local logs to a central API.
  • Weekly summary: tracli status visualizes progress in an ASCII table.

System architecture & data flow

The system follows a client-server model where the CLI acts as a thin client and the API handles persistence and cross-device logic.

High-level flow:

  1. User logs work via CLI.
  2. Entry is persisted locally (offline-first).
  3. When available, tracli sync pushes local entries to the API.
  4. API stores and serves entries across devices.

DDD / Clean Architecture layout

  • src/domain — entities + value objects + domain validation (framework-free)
  • src/application — use cases + ports (interfaces)
  • src/infrastructure — JSON persistence, HTTP sync gateway, clock/id providers
  • src/interfaces
    • cli — Commander-based CLI adapter
    • http — Express API adapter

Data model (draft)

Entity relationship (draft):

| Field | Type | Description | | -------------- | -------- | -------------------------------------------------- | | id | UUID | Unique identifier for the log entry. | | user_id | UUID | Links entry to the developer account (cloud sync). | | hours_worked | Decimal | Amount of time (e.g., 1.5, 4.0). | | ticket_id | String | Optional PBI/Jira/GitHub issue ID. | | description | String | Brief text describing the work performed. | | created_at | DateTime | Timestamp of the log entry. |

Example interaction

$ tracli track
Hours worked (0.5–12): 2
Ticket/PBI (Enter to skip): DEV-402
Description: Implemented auth middleware

Success! 2 hours logged to DEV-402. (Total today: 6.5h)

Technology stack (proposed)

  • CLI: Node.js with commander or inquirer for prompts.
  • API: .NET 8 or Node.js (Express) implementing a RESTful API.
  • Local database: SQLite (simple, single-file) or JSON.
  • Cloud database: PostgreSQL or SQL Server.
  • Auth: JWT-based tokens for a future tracli login command.

Success metrics

  • Time to log: can a single entry be logged in under 10 seconds?
  • Retention: does a user log hours for 5 consecutive workdays?