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

spiko-cli

v0.4.1

Published

Effect-native CLI for Spiko's APIs.

Downloads

664

Readme

spiko-cli

Command-line access to every Operation in the committed Spiko Public, Investor, and Distributor OpenAPI documents.

This is an independent project and is not an official Spiko product.

Installation

npm install --global spiko-cli
spiko --help

Commands

spiko call <family> <resource> <action> [flags]
spiko operations list <family>
spiko operations describe <family> <operation-id>
spiko --wizard

Use discovery instead of guessing names:

spiko operations list public
spiko operations describe investor "accounts.createAccount"

Inputs, enum values, requiredness, and descriptions come from OpenAPI:

spiko call public funds get \
  --fund-id 00000000-0000-4000-8000-000000000001

spiko call investor accounts create \
  --payload ./account.json \
  --confirm

spiko call distributor investor-documents upload \
  --investor-id 00000000-0000-4000-8000-000000000001 \
  --type official-id \
  --file ./identity.pdf \
  --confirm

JSON request bodies always use --payload <file>. Payload files are validated and re-encoded against the OpenAPI schema before sending, so unknown properties and JSON formatting are not forwarded byte-for-byte. Multipart Operations expose typed form and file flags instead. Every method except GET and HEAD requires --confirm; the wizard's final run prompt does not replace it.

The wizard requires interactive stdin and stdout:

spiko --wizard

Configuration

Public calls need no credentials. Optional base URL overrides:

SPIKO_PUBLIC_API_BASE_URL
SPIKO_INVESTOR_API_BASE_URL
SPIKO_DISTRIBUTOR_API_BASE_URL

Investor authentication uses either:

SPIKO_INVESTOR_ACCESS_TOKEN

or both:

SPIKO_INVESTOR_CLIENT_ID
SPIKO_INVESTOR_CLIENT_SECRET

Distributor authentication requires:

SPIKO_DISTRIBUTOR_CLIENT_ID
SPIKO_DISTRIBUTOR_CLIENT_SECRET

Output and exits

A successful invocation writes one JSON document to stdout:

{
  "ok": true,
  "operation": "Get Fund",
  "data": {}
}

Failures write one JSON document to stderr. Exit statuses are:

  • 0: success
  • 1: configuration, remote, or internal failure
  • 2: invalid command/input, missing confirmation, or non-interactive wizard
  • 130: wizard cancellation

Binary results are represented as { "encoding": "base64", "value": "..." } inside data.

License

MIT