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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@grazulex/envmark

v1.3.0

Published

CLI for managing .env files using Git as storage backend

Readme

Why EnvMark?

  • No server required - Uses Git as storage backend
  • Team-friendly - Share .env files securely via your own Git repository
  • Environment isolation - Each environment (dev, staging, prod) is a separate branch
  • Multi-project - One repository for all your projects
  • Version history - Track changes, diff environments, rollback anytime
  • Zero configuration - Works with any Git hosting (GitHub, GitLab, Bitbucket)

Installation

npm install -g envmark

Quick Start

1. Initialize EnvMark

# Set up global configuration with your secrets repository
envmark init -r [email protected]:your-org/env-secrets.git

# This creates:
# - ~/.envmark/config.json (global config)
# - .envmark.json (project config)

2. Push your .env

# Push to development environment
envmark push dev

# Push to staging
envmark push staging

# Push to production
envmark push prod

3. Pull .env on another machine

# Clone a project and pull its .env
git clone your-project
cd your-project
envmark init
envmark pull dev

Commands

| Command | Description | |---------|-------------| | envmark init | Initialize EnvMark configuration | | envmark push [env] | Push local .env to an environment | | envmark pull [env] | Pull .env from an environment | | envmark list | List all environments | | envmark status | Show current configuration | | envmark diff <env1> <env2> | Compare .env between environments | | envmark history [env] | Show version history | | envmark rollback [env] | Rollback to a previous version | | envmark create <env> | Create a new environment | | envmark delete <env> | Delete an environment |

How It Works

EnvMark uses a simple but powerful architecture:

Your Secrets Repository
├── main (production)
│   ├── project-a/.env
│   ├── project-b/.env
│   └── project-c/.env
├── staging
│   ├── project-a/.env
│   ├── project-b/.env
│   └── project-c/.env
└── development
    ├── project-a/.env
    ├── project-b/.env
    └── project-c/.env
  • Branches = Environments - main is production, other branches are dev/staging/etc.
  • Folders = Projects - Each project has its own folder in each branch
  • Git = Version Control - Full history, diffs, and rollback capabilities

Configuration

Global Config (~/.envmark/config.json)

{
  "remote": "[email protected]:your-org/env-secrets.git",
  "defaultEnv": "development",
  "encrypt": false
}

Project Config (.envmark.json)

{
  "project": "my-project"
}

Environment Aliases

For convenience, EnvMark supports environment aliases:

| Alias | Branch | |-------|--------| | dev | development | | prod | main | | production | main |

# These are equivalent:
envmark pull dev
envmark pull development

envmark push prod
envmark push main

Security

  • Your repository, your control - EnvMark never touches external servers
  • Git access controls - Use SSH keys or tokens to control who can access secrets
  • Local caching - Repository is cached in ~/.envmark/repos/ for performance
  • Encryption (coming soon) - Optional AES-256-GCM encryption for .env files

Best Practices

  1. Use a private repository - Never store secrets in a public repo
  2. Limit access - Only give repository access to team members who need it
  3. Use deploy keys - For CI/CD, use read-only deploy keys
  4. Review diffs - Use envmark diff before pulling to see what changed
  5. Don't commit .envmark.json - Add it to .gitignore if it contains sensitive project names

Part of the Mark Suite

EnvMark is part of a suite of developer tools:

License

MIT License - See LICENSE for details.


Made with love by Grazulex