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

@insourcia/cli

v0.1.4

Published

Command-line client for the Insourcia tools RPC API. Pilot the agent surface (search companies, get directors, financials, BODACC announcements) from the terminal or shell scripts — no MCP client required.

Readme

@insourcia/cli

Command-line client for the Insourcia tools RPC API. Pilot the agent surface (search FR companies, get directors, financials, BODACC announcements) from the terminal or shell scripts — no MCP client required.

Zero runtime dependencies. Works on Node.js ≥ 20.

Install

# One-off (no install)
npx @insourcia/cli --help

# Or install globally
npm install -g @insourcia/cli
insourcia --help

Setup

Generate an API key from your Insourcia dashboard, then:

export INSOURCIA_API_TOKEN=isk_...

Or pass --token isk_... on every call.

Usage

# List available tools
insourcia tools list

# Invoke a tool (JSON in --input)
insourcia tools call search_companies --input '{"query":"vinci","limit":3}'

# From file
insourcia tools call search_companies --input @search.json

# From stdin
echo '{"siren":"552120222"}' | insourcia tools call get_company --input -

# Keep the {success,data} envelope (default unwraps to data)
insourcia tools call get_company --input '{"siren":"552120222"}' --raw

Available tools

| Tool | Description | |---|---| | search_companies | Search FR companies by name, SIREN, sector, financials… | | get_company | Full company profile by SIREN | | get_financials | P&L, balance sheet, financial ratios | | get_directors | Active and historical directors | | search_announcements | BODACC announcements (sales, procedures, deposits) |

Full reference: insourcia.io/docs/tools.

Exit codes

  • 0 — success
  • 1 — usage error (missing token, bad args, invalid JSON)
  • 2 — API error (4xx/5xx) or network failure

Configuration

| Option | Env var | Default | |---|---|---| | --token | INSOURCIA_API_TOKEN | (required) | | --base-url | INSOURCIA_API_BASE_URL | https://api.insourcia.io |

Examples

# Pipe with jq
insourcia tools list | jq '.tools[].name'

# CSV export of P&L for a list of SIRENs
for siren in $(cat sirens.txt); do
  insourcia tools call get_financials --input "{\"siren\":\"$siren\"}" \
    | jq -r '[.exercices[] | [.annee, .chiffre_affaires, .resultat_net]] | @csv'
done > export.csv

# Smoke test staging
insourcia tools list --base-url https://staging.insourcia.io > /dev/null \
  && echo "✓ OK"

Links

License

MIT