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-aleo-devnode

v0.4.1

Published

TypeScript interface for orchestrating local Aleo test networks for testing & developing Aleo programs.

Readme

@provablehq/veil-aleo-devnode

Runs and drives a local Aleo development node from TypeScript. Reach for it in tests, CI, and local development when you need a real node to broadcast against without touching testnet — start one, mine blocks on demand, and tear it down.

The node is seeded with a well-known genesis account (DEVNODE_PRIVATE_KEY) that holds credits, so you have a funded key to pay fees from the moment it boots.

Installation

pnpm add @provablehq/veil-aleo-devnode @provablehq/veil-core

@provablehq/veil-aleo-devnode drives the aleo-devnode binary as a subprocess — it does not bundle a node. The binary MUST be installed and resolvable on PATH (override its location per call with devnodePath). Every function throws with an install-and-PATH hint if it cannot find or run the binary.

Usage

startDevnode spawns the node and resolves once its REST API answers, so the returned instance is ready to receive transactions. Call stop to terminate it (SIGTERM); starting again on the same socket shuts down any node already there first.

import { startDevnode, advanceDevnode, DEVNODE_ADDR } from '@provablehq/veil-aleo-devnode'

const devnode = await startDevnode({
  socketAddr: DEVNODE_ADDR, // '127.0.0.1:3030'
  storagePath: '',          // '' → default ./devnode dir; omit for in-memory
})

// ... broadcast transactions against http://127.0.0.1:3030 ...

await advanceDevnode({ numBlocks: 1 }) // mine a block so a broadcast finalizes

await devnode.stop()

advanceDevnode mines blocks on a running node — pair it with manualBlockCreation on startDevnode when you want deterministic block timing instead of automatic creation. restoreDevnode reloads ledger state from a named snapshot, optionally restarting the node afterward.

Taking a snapshot is a live REST call against the running node, not a binary subcommand, so it lives on the @provablehq/veil-core test client as snapshot (with listSnapshots to enumerate them) rather than in this package. Capture state with client.snapshot(...) and reload it here with restoreDevnode — the node must have been started with storagePath, since an in-memory node has nothing to snapshot.

As test-client actions

devnodeActions folds the process-lifecycle functions onto a @provablehq/veil-core test client via .extend, so a single client drives the node (start/advance/restore) and, through the core test actions, snapshots it.

import { createTestClient, http } from '@provablehq/veil-core'
import { devnodeActions } from '@provablehq/veil-aleo-devnode'

const client = createTestClient({
  transport: http('http://127.0.0.1:3030', { network: 'testnet' }),
}).extend(devnodeActions)

const devnode = await client.startDevnode({ storagePath: '' })
await client.advanceDevnode({ numBlocks: 1 })
const { name } = await client.snapshot({ name: 'before-deploy' }) // core test action
// ...run something you may want to undo...
await client.restoreDevnode({ snapshot: name, restart: true })
await devnode.stop()

Exports

  • startDevnode(options?) — spawn a node; resolves to a DevnodeInstance once the REST API is ready.
  • advanceDevnode(options?) — mine one or more blocks on a running node.
  • restoreDevnode(options) — restore ledger state from a snapshot.
  • devnodeActions.extend decorator that adds the above to a client.
  • DEVNODE_PRIVATE_KEY — the seeded, funded genesis account key.
  • DEVNODE_ADDR — the default socket address, 127.0.0.1:3030.

See the JSDoc on DevnodeStartOptions, DevnodeAdvanceOptions, and DevnodeRestoreOptions for every flag, its default, and the CLI switch it maps to.