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

@zodiac-os/sdk

v1.2.0

Published

Programmatically manage [Zodiac](https://www.zodiac.eco) account constellations.

Readme

Zodiac OS SDK

Programmatically manage Zodiac account constellations.

Getting started

1. Install

npm install @zodiac-os/sdk

2. Generate a Zodiac OS API key

Sign in to app.zodiac.eco and create an API key at app.zodiac.eco/admin/api-keys.

3. Create a config file

Create a zodiac.config.ts in your project root:

import { defineConfig } from '@zodiac-os/sdk/cli/config'

export default defineConfig({
  apiKey: 'zodiac_...',
  // Optional: contracts to fetch for permissions authoring
  contracts: {
    mainnet: {
      dai: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
    },
  },
})

4. Pull your org data

# Pull everything (org data + contract ABIs)
zodiac-os pull

This generates typed data in node_modules/.zodiac-os/ with your org's users and vaults.

Constellation API

The constellation() function is the main SDK entry point. It returns an API for declaring account constellations — the set of Safes, Roles mods, and users that make up your on-chain setup.

import { constellation } from '@zodiac-os/sdk'

Scoping to a workspace and chain

Each constellation is scoped to a single workspace and chain. The workspace option must be a valid workspace name from your org.

const eth = constellation({
  workspace: 'GG',
  label: 'Production',
  chain: 1,
})

Referencing existing vaults

Bracket access gives you existing Safes and Roles mods from the selected workspace. Names auto-complete from the codegen output.

// Reference an existing Safe — no invocation needed
const ggDao = eth.safe['GG DAO']

// Reference the canonical Roles mod for that Safe
const ggDaoRoles = eth.roles['GG DAO']

// Optionally invoke with overrides
const ggDaoOverridden = eth.safe['GG DAO']({ threshold: 5 })

Creating new accounts

Use bracket access with a new label to create new nodes. Required fields are enforced by the type system:

// New Safe — threshold, owners are required
const newSafe = eth.safe['New Safe']({
  nonce: 0n,
  threshold: 2,
  owners: [
    eth.user['Alice Sample'],
    '0xb8e48df6818d3cbc648b3e8ec248a4f547135f7a',
  ],
  modules: [ggDaoRoles],
})

// New Roles mod targeting an existing Safe
const newRoles = eth.roles['New Roles']({
  nonce: 0n,
  target: ggDao,
})

Referencing users

eth.user[handle] resolves a user to their personal Safe address on the current chain:

const aliceAddress = eth.user['Alice Sample']

Applying the constellation

The apply() function takes all nodes and sends them to the Zodiac OS API. Pass either a named object (keys become refs) or an array:

import { apply } from '@zodiac-os/sdk'

await apply({ ggDao, ggDaoRoles, newSafe, newRoles })

All referenced nodes must be included in the apply() call.

By default, apply() creates an API client from the ZODIAC_OS_API_KEY environment variable. You can pass a custom client:

await apply({ ggDao, newRoles }, { api: new ApiClient({ apiKey: '...' }) })

CLI reference

Usage: zodiac-os [options] [command]

Zodiac OS SDK CLI – pull org data and contract ABIs

Options:
  -V, --version        output the version number
  -c, --config <path>  path to the config file (default: "zodiac.config.ts")
  -h, --help           display help for command

Commands:
  pull-org             Fetch Zodiac users and vaults, generate TypeScript types
  pull-contracts       Fetch contract ABIs, generate typed permissions kit
  pull                 Fetch Zodiac org and contracts ABI, generate SDK functions
  help [command]       display help for command