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

@malloydata/malloyyo

v0.2.15

Published

Publish Malloy models to a Malloyyo instance

Downloads

2,566

Readme

malloyyo

CLI to publish Malloy models to a Malloyyo instance.

It bundles up the .malloy files in a directory plus malloy-config.json, records the git commit they came from, and pushes them to a Malloyyo deployment. The server compiles and introspects the model — the CLI needs no database connection.

Install

The package is published as @malloydata/malloyyo; the command it installs is malloyyo. Needs Node ≥ 20.

npm i -g @malloydata/malloyyo     # then: malloyyo --help
# …or run without installing:
npx @malloydata/malloyyo --help

From source

It lives in the malloyyo monorepo as packages/cli.

# from the repo root
npm install
npm run build -w @malloydata/malloyyo   # → packages/cli/dist/index.js

# put `malloyyo` on your PATH (symlink to the built CLI)
cd packages/cli && npm link                # then: malloyyo --help

# …or just run it directly, no link
node packages/cli/dist/index.js --help

Configure

Add a malloyyo block to your malloy-config.json (or a standalone malloyyo.json). One entry per deployment. Only the env-var name is committed — never the token value.

{
  "connections": { /* … */ },
  "malloyyo": {
    "main":    { "url": "https://malloyyo.example.com",         "dataset": "mdw",
                 "malloyyo_token": { "env": "malloyyo_main_token" } },
    "staging": { "url": "https://malloyyo-staging.example.com", "dataset": "mdw_staging",
                 "malloyyo_token": { "env": "malloyyo_staging_token" } }
  }
}

Sign in

malloyyo login main                         # a named target from the config
malloyyo login https://malloyyo.example.com # a raw URL (no config needed)
malloyyo login                              # omit it if the config has one target
malloyyo logout main

Login is per-instance (it authenticates you to a URL, for all datasets on it), so the argument is a target or URL, not a dataset — and it's optional when the config is unambiguous. It uses the instance's OAuth flow (Authorization Code + PKCE, loopback redirect) and stores a refreshable token in ~/.config/malloyyo/credentials.json (mode 0600), keyed by instance URL — so you can be logged in to several instances at once. Tokens auto-refresh.

Use

malloyyo publish main           # push the model in . to the "main" target
malloyyo publish staging ./model
malloyyo publish main --dry-run # show what would be sent
malloyyo status main            # what's live: version, commit, compile state

publish exits non-zero on a server-side compile failure, so it's safe to gate CI on.

Token precedence: --token flag → the malloyyo_token env var from config (for CI) → your malloyyo login session. So interactively you just login once; in CI you set the env var and never touch the browser.

See docs/model-publishing-design.md in the repo for the full design.