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

tick-api

v0.2.0

Published

TypeScript/JavaScript client for the Tick v2 API providing time tracking functionality

Readme

Tick v2 API TS/JS Client

Implements a TypeScript/JavaScript client for the Tick v2 API, providing a simple interface to interact with Tick's time tracking features. Implemented based on the Tick v2 API documentation. Uses built-in fetch for HTTP requests, thus requiring Node.js 18+ or a compatible environment.

Installation

npm install tick-api

Quick Start

import { TickClient } from 'tick-api';

const client = new TickClient({
  subscriptionId: 'your_subscription_id',
  apiToken: 'your_api_token',
  userAgent: 'MyCoolApp ([email protected])',
});

// Get all users (will only return the current user's data if not admin)
const users = await client.getUsers();

// Get all projects
const projects = await client.getProjects();

// Create a new time entry
const entry = await client.createEntry({
  date: '2025-06-13',
  hours: 8,
  notes: 'Worked on project X',
  task_id: 123,
});

Available Methods

The TickClient provides methods for the following API endpoints:

Users

  • getUsers() - Get all users
  • getDeletedUsers() - Get deleted users (admin only)
  • createUser(params) - Create a new user (admin only)

Clients

  • getClients() - Get active clients
  • getAllClients() - Get all clients including archived
  • getClient(id) - Get client details
  • createClient(params) - Create new client (admin only)
  • updateClient(id, params) - Update client (admin only)
  • deleteClient(id) - Delete client (admin only)

Projects

  • getProjects(params?) - Get open projects
  • getClosedProjects(params?) - Get closed projects
  • getProject(id) - Get project details
  • createProject(params) - Create new project (admin only)
  • updateProject(id, params) - Update project (admin only)
  • deleteProject(id) - Delete project (admin only)

Tasks

  • getTasks() - Get all open tasks
  • getProjectTasks(projectId) - Get tasks for a project
  • getClosedTasks() - Get all closed tasks
  • getProjectClosedTasks(projectId) - Get closed tasks for a project
  • getTask(id) - Get task details
  • createTask(params) - Create new task (admin only)
  • updateTask(id, params) - Update task (admin only)
  • deleteTask(id) - Delete task (admin only)

Entries

  • getEntries(params) - Get time entries
  • getUserEntries(userId, params) - Get entries for a user
  • getProjectEntries(projectId, params) - Get entries for a project
  • getTaskEntries(taskId, params) - Get entries for a task
  • getEntry(id) - Get entry details
  • createEntry(params) - Create new entry
  • updateEntry(id, params) - Update entry
  • deleteEntry(id) - Delete entry

Testing

This package includes both unit tests and end-to-end tests:

Unit Tests

Run the unit tests to verify the client instantiation and method availability:

npm test

End-to-End Tests

E2E tests run against the real TickSpot API and test all non-destructive getter functions.

Setup:

  1. Copy the environment example file: cp .env.example .env
  2. Fill in your TickSpot credentials in .env
  3. Build the project: npm run build

Run E2E tests:

# Run all E2E tests
npm run test:e2e

See tests/e2e/README.md for detailed E2E test documentation.