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

imitsu

v0.0.6

Published

Team secret manager

Readme

imitsu

A team secret manager with AES-256-GCM encryption, role-based access control, team sharing, and audit logging.

Quick Start

npm install
npm run build

Start the server

IMITSU_MASTER_KEY="your-secret-master-key" IMITSU_JWT_SECRET="your-jwt-secret" npm start

The server runs on http://localhost:3100 by default. Set IMITSU_PORT to change it.

First-time setup

# First user becomes admin
imitsu register -e [email protected] -n "Your Name"
imitsu login [email protected]

CLI Reference

Auth

imitsu register -e <email> -n <name>     # Create account (prompts for password)
imitsu login <email>                      # Login (saves token locally)
imitsu logout                             # Clear session
imitsu whoami                             # Show current user

Secrets

imitsu set <name> [value]                 # Create or update (prompts if no value given)
imitsu set <name> -c <category>           # Set with a category tag
imitsu set <name> [value] -t <team>       # Create and share with a team
imitsu get <name>                         # Print secret value (pipeable)
imitsu ls                                 # List all accessible secrets
imitsu rm <name>                          # Delete a secret

Sharing

# Share with a specific user
imitsu share <name> -u <email>                     # read access (default)
imitsu share <name> -u <email> -p write             # write access
imitsu share <name> -u <email> -p admin             # full access

# Share with a team (all members get access)
imitsu share-team <secret> <team>
imitsu share-team <secret> <team> -p write

Teams

imitsu team create <name>                 # Create a team
imitsu team ls                            # List your teams
imitsu team add <team> <email>            # Add a member
imitsu team members <team>                # List members

Bulk Import / Export

# Import a .env file
imitsu import .env
imitsu import .env -c database            # Tag with category
imitsu import .env -t backend             # Import and share with a team

# Export secrets as .env
imitsu export                             # Print to stdout
imitsu export .env.local                  # Write to file
imitsu export -c database                 # Filter by category

Admin

imitsu users                              # List all users
imitsu audit                              # View audit log
imitsu audit -l 50                        # Last 50 entries

TUI (itui)

There's also an interactive terminal UI. See src/tui/README.md for installation and usage.

curl -fsSL https://raw.githubusercontent.com/adeleke5140/imitsu/main/install.sh | sh
itui

Typical Team Workflow

# 1. Admin sets up
imitsu register -e [email protected] -n "Admin"
imitsu login [email protected]
imitsu team create backend

# 2. Import your existing .env and share with the team
imitsu import .env.production -t backend -c production

# 3. New developer joins
imitsu register -e [email protected] -n "New Dev"    # dev runs this
imitsu team add backend [email protected]             # admin runs this

# 4. New dev immediately has access
imitsu login [email protected]
imitsu ls
imitsu export .env.local

Environment Variables

| Variable | Default | Description | |---|---|---| | IMITSU_PORT | 3100 | Server port | | IMITSU_MASTER_KEY | — | Encryption master key. Required in production. | | IMITSU_JWT_SECRET | — | JWT signing secret. Required in production. | | IMITSU_DB_PATH | ./imitsu.db | SQLite database path |

Security

  • Encryption: AES-256-GCM with per-secret salts and IVs, keys derived via HKDF-SHA512
  • Passwords: Argon2id (65MB memory, 3 iterations)
  • Auth: JWT tokens, 8-hour expiry
  • Access control: Owner/admin/team/per-user permissions
  • Audit trail: Every read, write, share, and delete is logged
  • Rate limiting: 100 requests/minute per IP

Production Checklist

  • [ ] Set strong random values for IMITSU_MASTER_KEY and IMITSU_JWT_SECRET
  • [ ] Run behind HTTPS (nginx, Caddy, or cloud load balancer)
  • [ ] Back up imitsu.db regularly
  • [ ] Restrict network access to the server

Project Structure

src/
├── cli/                    # CLI client
│   ├── client.ts           # HTTP client + local config
│   └── vault.ts            # Command definitions
├── server/                 # API server
│   ├── index.ts            # Express app + rate limiting
│   ├── auth/auth.ts        # Registration, login, JWT
│   ├── crypto/encryption.ts # AES-256-GCM
│   ├── db/schema.ts        # SQLite schema
│   ├── db/audit.ts         # Audit logging
│   ├── middleware/          # Auth guards
│   └── routes/             # API endpoints
└── tui/                    # Interactive terminal UI (Go)
    ├── main.go             # Entry point
    ├── api/client.go       # API client
    └── ui/                 # Bubble Tea views

License

ISC