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

@marcfargas/go-holded

v0.1.0

Published

Holded API made easy — invoicing, CRM, accounting, projects, team. Library + CLI for AI agents and humans.

Readme

go-holded

Holded API made easy — invoicing, CRM, accounting, projects, team. TypeScript library + gateway CLI for AI agents and humans.

npm License: MIT

Features

  • 9 domains: contacts, accounting, taxes, cash, invoicing, stock, team, CRM, projects
  • Multi-tenant: different API key per client via profiles
  • AI-agent ready: JSON CLI output, safety gates on destructive ops, pi skill included
  • TypeScript-first: full types, ESM, zero runtime dependencies

Install

npm install @marcfargas/go-holded

Quick Start (Library)

import { createClient } from '@marcfargas/go-holded';

// Reads HOLDED_API_KEY env var
const client = createClient();

// Or use a profile for multi-tenant
const client = createClient({ profile: 'acme' }); // reads HOLDED_API_KEY_ACME

// Contacts
const contacts = await client.contacts.list();

// Invoicing
const invoices = await client.invoicing.documents.list('invoice');
const pdf = await client.invoicing.documents.pdf('invoice', 'abc123');

// CRM
const leads = await client.crm.leads.list();
await client.crm.leads.addNote('lead123', { note: 'Called client' });

// Accounting
const ledger = await client.accounting.dailyLedger.list();

// Team
await client.team.employees.clockIn('emp123');

Quick Start (CLI)

# Set your API key
export HOLDED_API_KEY=your-key-here

# Or per-profile
export HOLDED_API_KEY_ACME=acme-key-here

# List contacts
npx go-holded contacts list
npx go-holded --profile acme contacts list

# Invoicing
npx go-holded invoicing documents list invoice
npx go-holded invoicing documents get invoice abc123
npx go-holded invoicing documents pdf invoice abc123

# CRM
npx go-holded crm leads list
npx go-holded crm leads add-note lead123 --json '{"note":"Called"}'

# Destructive operations require --confirm
npx go-holded contacts delete abc123 --confirm
npx go-holded invoicing documents send invoice abc123 --confirm
npx go-holded team employees clock-in emp123 --confirm

Multi-Tenant

Each Holded API key maps to one tenant/company. Use profiles to manage multiple:

# Environment variables
export HOLDED_API_KEY=default-key          # default
export HOLDED_API_KEY_ACME=acme-key        # profile: acme
export HOLDED_API_KEY_STARTUP_X=startup-key # profile: startup-x
const acme = createClient({ profile: 'acme' });
const startup = createClient({ profile: 'startup-x' });

Domains

| Domain | Description | CLI prefix | |--------|-------------|------------| | contacts | Contacts + groups | contacts | | accounting | Expense accounts (6xxx), income accounts (7xxx), chart, ledger | accounting | | taxes | Tax configuration | taxes | | cash | Treasuries, payments, remittances | cash | | invoicing | Documents (10 types), numbering series, services | invoicing | | stock | Products, warehouses | stock | | team | Employees, time tracking, clock in/out | team | | crm | Funnels, leads, events, bookings | crm | | projects | Projects, tasks, time tracking | projects |

Note: Our domain organization differs from Holded's API layout to be more intuitive. See DEVELOPMENT.md for the full mapping.

Safety Model

| Level | Operations | CLI gate | |-------|-----------|----------| | READ | list, get, pdf | None | | WRITE | create, update | None | | DESTRUCTIVE | delete, send, pay, ship, clock-in/out | --confirm required |

Without --confirm, destructive CLI commands preview what would happen and exit with code 2.

For AI Agents

This package ships as a pi package with built-in skill documentation:

pi install npm:@marcfargas/go-holded

License

Code: MIT Skills (skills/): CC0 1.0 Universal — public domain, no attribution required.