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

@samkawsarani/hubspot-cli

v1.1.0

Published

HubSpot CRM API integration — search and read operations with CLI

Readme

hubspot-cli

npm License: MIT

[!IMPORTANT] Disclaimer: This is an unofficial, open-source community project and is not affiliated with, endorsed by, or connected to HubSpot, Inc. HubSpot is a registered trademark of HubSpot, Inc. This CLI is an independent tool that uses the publicly available HubSpot API to provide command-line access to your own CRM data.

[!NOTE] This tool has only been tested on macOS. It may work on Windows and Linux, but this has not been verified.

Read-only HubSpot CRM API client with CLI. Built for use by LLM agents and humans.

Installation

npm install -g @samkawsarani/hubspot-cli
# or
bun install -g @samkawsarani/hubspot-cli

Quick Start

# Interactive setup
hubspot init

# Search
hubspot search-contacts --query "[email protected]"
hubspot search-companies --query "Acme"
hubspot search-deals --query "Enterprise"
hubspot search-tickets --query "bug"

# Get by ID
hubspot get-contact --id 12345
hubspot get-company --id 12345
hubspot get-deal --id 12345
hubspot get-ticket --id 12345

Search commands support --query, --limit (max 200), and --after (pagination cursor).

Library Usage

import {
  searchContacts,
  searchCompanies,
  searchDeals,
  getContact,
  getCompany,
  getDeal,
} from "@samkawsarani/hubspot-cli";

// Search contacts
const results = await searchContacts({ query: "[email protected]" });

// Search with filters
const filtered = await searchContacts({
  filters: [{ propertyName: "email", operator: "CONTAINS_TOKEN", value: "*@acme.com" }],
});

// Find deals associated with a contact
const deals = await searchDeals({ associatedContact: "12345" });

// Get a specific record by ID
const contact = await getContact("12345");

Available Functions

| Category | Functions | |---|---| | Properties | listProperties, getAllPropertyNames, clearPropertyCache | | Generic | searchObjects, getObject | | Contacts | searchContacts, getContact | | Companies | searchCompanies, getCompany | | Deals | searchDeals, getDeal | | Tickets | searchTickets, getTicket | | Products | searchProducts, getProduct | | Orders | searchOrders, getOrder | | Line Items | searchLineItems, getLineItem | | Carts | searchCarts, getCart | | Invoices | searchInvoices, getInvoice | | Quotes | searchQuotes, getQuote | | Subscriptions | searchSubscriptions, getSubscription |

Configuration

Config is stored at ~/.config/hubspot/.env — works globally from any directory. A .env in the current working directory overrides the global config.

| Variable | Required | Description | |---|---|---| | HUBSPOT_ACCESS_TOKEN | Yes | HubSpot Private App access token (pat-...). Create one at Settings > Integrations > Private Apps |

License

MIT — Copyright (c) 2026 Sam Kawsarani