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

@ashishlekhyani/envsync-cli

v1.0.6

Published

EnvSync command-line interface

Readme

@ashishlekhyani/envsync-cli

The command-line client for EnvSync — a secrets manager for environment variables. Pull, push, and inject secrets without ever committing a .env file. One runtime dependency, cross-spawn (used only by envsync run, for correct cross-platform command execution — it has zero dependencies of its own and is the same package npm itself relies on internally).

Install

npm install -g @ashishlekhyani/envsync-cli

Quick start

  1. Generate a service token in EnvSync under Settings → CLI & Tokens.
  2. Log in (reads the token from stdin so it never touches your shell history):
    echo "$TOKEN" | envsync login
    or pass it directly: envsync login <token>
  3. Run envsync with no arguments — it launches an interactive menu that picks your project, environment, and action (pull/push/run/status) for you. No IDs or flags needed.

Prefer flags/scripting instead? That works too:

  1. Find your project/environment IDs:
    envsync projects
    envsync environments --project <projectId>
  2. Link this folder so you don't have to pass --project/--environment on every command:
    envsync link --project <projectId> --environment <environmentId>
  3. Pull secrets into a local .env file:
    envsync pull

Commands

| Command | Description | |---|---| | envsync login [token] | Authenticate with a service token. Reads the token from stdin if omitted (echo $TOKEN \| envsync login), avoiding shell history. Writes credentials to ~/.envsync/credentials.json (mode 0600). | | envsync logout | Removes local credentials. Does not revoke the token server-side — revoke it from Settings if it may have been compromised. | | envsync / envsync menu | Interactive mode — pick a project/environment (or reuse a linked one), then an action, from a numbered menu. No flags needed. Runs automatically when you type envsync with no arguments while logged in. | | envsync projects | Lists every project you have access to, with its ID. | | envsync environments [--project <id>] | Lists every environment for a project, with its ID. | | envsync link --project <id> --environment <id> | Remembers a project/environment for the current folder (writes .envsync.json there), so the commands below can omit --project/--environment entirely. | | envsync pull [--project <id> --environment <id>] [--out <path>] | Reveals and writes every secret in the environment to a .env file (default ./.env). Overwrites the destination file completely. | | envsync push [--project <id> --environment <id>] [--out <path>] | Reads a local .env file and upserts its keys to the server — creates new keys, updates existing ones. Never deletes remote-only keys. | | envsync run [--project <id> --environment <id>] -- <cmd> [args...] | Runs a command with secrets injected directly into its environment variables. Nothing is written to disk. | | envsync status [--project <id> --environment <id>] [--out <path>] | Compares your local .env against the server without revealing any values — metadata only, safe to run often. |

--project/--environment are only required if you haven't run envsync link in the current folder — explicit flags always take priority over a linked value.

Environment variables

| Variable | Purpose | |---|---| | ENVSYNC_TOKEN | Use a service token directly without running login first — the standard way to authenticate in CI (GitHub Actions, Docker builds, etc.). Takes priority over any locally saved credentials. | | ENVSYNC_API_URL | Point the CLI at a self-hosted EnvSync API instead of the default (https://envsync-api.onrender.com/api). Must be HTTPS unless it's localhost/127.0.0.1 — the CLI warns if not. |

Notes on audit trails and security

  • pull and run reveal every secret in the environment, so each key produces its own audited reveal entry — an environment with 50 secrets means 50 audit rows per pull. status never reveals values, so it's audit-quiet by design.
  • A token's access is identity-inheriting and org-scoped: it can only do what its creator could do, and only within the org it was issued for — a leaked CI token has bounded blast radius, not account-wide access.
  • Prefer ENVSYNC_TOKEN in CI over passing a token as a bare command-line argument on a shared host (visible via ps) or storing it in a credentials file on a machine you don't fully trust.

License

MIT — see LICENSE.