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

@provablehq/veil-leo

v0.5.0

Published

TypeScript interface for using the Leo CLI from TS/JS.

Downloads

171

Readme

@provablehq/veil-leo

Wraps the Leo CLI in a typed TS/JS client. The client shells out to the leo binary and exposes its build, abi, deploy, and synthesize commands as async methods, with the CLI flags surfaced as typed options objects instead of string arguments.

Reach for it when a script, test, or tool needs to compile, deploy, or generate an ABI for a Leo program without hand-assembling leo command lines. It composes onto any veil client through .extend(), so a test client can compile a program and mine a block from one call site.

Installation

pnpm add @provablehq/veil-leo

This package spawns the leo binary — it does not vendor the Leo toolchain. The leo CLI MUST be installed and on PATH (or given explicitly via leoPath). See the Leo installation guide.

Usage

leoActions attaches a LeoClient under the .leo property of any veil client. The extension ignores the host client — Leo operations run locally and need no transport — so it works on a public, wallet, or test client alike.

import { createTestClient } from '@provablehq/veil-core'
import { leoActions } from '@provablehq/veil-leo'

const client = createTestClient({ transport }).extend(
  leoActions({ cwd: './my-program', network: 'testnet' }),
)

// Compile the package at cwd.
await client.leo.build()

// Deploy it, broadcasting the transaction and skipping the prompt.
await client.leo.deploy({ broadcast: true, yes: true })

// Generate an ABI from a compiled .aleo bytecode file.
const abi = await client.leo.abi({ file: 'build/main.aleo' })

Config passed to leoActions (or createLeoClient) sets defaults for every command — cwd, network, endpoint, privateKey, leoPath, and the global flags. Any option passed to an individual method overrides that default for the call.

For a standalone client with no host to extend, call createLeoClient directly:

import { createLeoClient } from '@provablehq/veil-leo'

const leo = createLeoClient({ cwd: './my-program' })
await leo.build()

Methods

  • build(options?)leo build. Compiles the package at cwd.
  • deploy(options?)leo deploy. Compiles and deploys; broadcast sends the transaction to the network and costs a fee. Set yes to skip the prompt.
  • abi(options)leo abi. Reads a .aleo bytecode file and returns the ABI as a string. Pass output to write it to a path instead (returns "").
  • synthesize(options)leo synthesize. Synthesizes proving and verifying keys for the named program.

Standalone functions cover the rest of the toolchain without a client: build, buildBatch (compile several project directories in sequence), abi (leo abi a compiled .aleo file, returning the ABI JSON), run (leo run a function with inputs), and clean (leo clean).

Errors

Every method rejects if leo exits non-zero, with the failing subcommand and exit code in the message. If the binary cannot be spawned at all — not installed, not on PATH — the error names the missing leo and links the installation guide.