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

@neuroflame/vault

v1.0.2

Published

NeuroFLAME vault federated client

Downloads

33

Readme

NeuroFLAME Vault Federated Client

The vault federated client runs on a data provider machine and keeps one or more hosted datasets online for NeuroFLAME runs. It connects to the central API, reports dataset availability through heartbeat messages, and launches computation containers when central starts a run for one of its hosted vaults.

Install

Install the package globally on the vault host:

sudo npm install -g @neuroflame/vault

The global command is:

neuroflame-vault

Create A Vault Token

In the NeuroFLAME desktop app, use the admin vault page to create a vault user. Copy the returned token and use it as VAULT_ACCESS_TOKEN.

That token identifies this vault service to central. After the service starts and sends a heartbeat, central creates the vault server record and shows its reported datasets in the admin vault page.

Environment

The client is configured by environment variables.

Required:

VAULT_HTTP_URL=http://your-central-api.example.com:3001/graphql
VAULT_WS_URL=ws://your-central-api.example.com:3001/graphql
VAULT_ACCESS_TOKEN=your-vault-token
VAULT_BASE_DIR=/var/lib/neuroflame/vault/work
VAULT_DATASET_DIR=/path/to/your/datasets

Use http and ws when connecting directly to a raw central API port. Use https and wss only when the endpoint is behind TLS termination, such as a reverse proxy or load balancer with a certificate.

Optional:

VAULT_LOG_PATH=/var/log/neuroflame/vault
VAULT_CONTAINER_SERVICE=docker

VAULT_DATASET_DIR should contain one directory per dataset. Each child directory is reported to central as an available dataset key.

Data Discovery

Vault dataset discovery is directory based. On each heartbeat, the vault client scans the immediate child directories under VAULT_DATASET_DIR.

For example:

/data/neuroflame-vault/
  freesurfer-site1/
  vbm-data/

With VAULT_DATASET_DIR=/data/neuroflame-vault, central receives two available dataset keys:

freesurfer-site1
vbm-data

The scan is not recursive. Files directly inside VAULT_DATASET_DIR are ignored, and nested folders are treated as part of their parent dataset. Admins create hosted vault entries from these reported dataset keys in the NeuroFLAME admin vault page.

Commands

Validate required environment:

neuroflame-vault validate

Print the effective environment, with the access token masked:

neuroflame-vault env

Start the vault service:

neuroflame-vault start

Write a systemd service template into the current directory:

neuroflame-vault systemd-template

Overwrite an existing local template:

neuroflame-vault systemd-template --force

systemd

Generate a local template:

neuroflame-vault systemd-template

Edit ./neuroflame-vault.service and replace the inline Environment= examples with real values.

Install and start the service:

sudo cp ./neuroflame-vault.service /etc/systemd/system/neuroflame-vault.service
sudo systemctl daemon-reload
sudo systemctl enable neuroflame-vault
sudo systemctl start neuroflame-vault

View logs:

journalctl -u neuroflame-vault -f

Dataset Lifecycle

  1. Admin creates a vault user in the desktop app and copies the token.
  2. Operator installs @neuroflame/vault on the vault host.
  3. Operator configures the systemd template with the central URLs, token, work directory, and dataset directory.
  4. Vault service starts and sends heartbeat with available dataset directories.
  5. Admin creates hosted vault entries from the reported datasets.
  6. Consortium leaders add those hosted vaults to consortia.

Local Development

For local repo development:

npm install
npm run compile
VAULT_HTTP_URL=http://localhost:4000/graphql \
VAULT_WS_URL=ws://localhost:4000/graphql \
VAULT_ACCESS_TOKEN=your-vault-token \
VAULT_BASE_DIR=/tmp/neuroflame-vault/work \
VAULT_DATASET_DIR=/tmp/neuroflame-vault/datasets \
npm start