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

@lobsterkit/vault

v0.2.0

Published

Secret storage for AI agents. Store, retrieve, and rotate secrets with zero human touch.

Downloads

244

Readme

@lobsterkit/vault

Secret storage for AI agents. Store API keys, connection strings, and env vars — encrypted at rest with AWS KMS. Zero human touch required.

Install

npm install @lobsterkit/vault

Quick Start

import { LobsterVault } from '@lobsterkit/vault';

const vault = new LobsterVault({ apiKey: process.env.LOBSTERVAULT_API_KEY! });

// Store a secret
await vault.set('OPENAI_KEY', 'sk-proj-...');

// Retrieve it later
const key = await vault.get('OPENAI_KEY');

// Inject all secrets into process.env at agent startup
await vault.inject(process.env);

API

vault.set(name, value, opts?)

Store or update a secret. Value is envelope-encrypted via AWS KMS.

Options:

  • metadata — key-value metadata attached to the secret
  • ttlSeconds — auto-expire after N seconds
  • expiresAt — absolute expiry as an ISO 8601 date string (mutually exclusive with ttlSeconds)

vault.get(name, opts?)

Decrypt and return a secret value. Returns null if not found.

Pass { version: N } to retrieve a specific historical version (Builder+ tier).

const v2 = await vault.get('MY_KEY', { version: 2 });

vault.getWithMeta(name, opts?)

Like get(), but returns the full secret object including metadata, timestamps, and version info. Also supports { version: N }.

vault.delete(name)

Delete a secret. Returns true if deleted, false if not found.

vault.list(opts?)

List secret names (never values). Supports prefix filtering and pagination.

vault.inject(target?)

Inject all secrets into target object (defaults to process.env). Pro tier required.

vault.rotate(name)

Re-encrypt with a fresh DEK. Pro tier required.

vault.versions(name)

List version history. Builder tier required.

Sharing (Builder+ tier)

Create time-limited, read-only share links for secrets. Useful for sharing credentials with external services or teammates without exposing your API key.

vault.share(name, opts?)

Create a share link. Returns a shareToken that can be used to retrieve the secret without authentication.

Options: scope, expiresInSeconds (default 3600), expiresAt, maxReads.

const { shareToken, expiresAt } = await vault.share('OPENAI_KEY', {
  expiresInSeconds: 3600,
  maxReads: 5,
});

vault.listShares(secretName?)

List all active shares. Optionally filter by secret name.

vault.revokeShare(shareId)

Revoke a share link immediately.

vault.getShared(shareToken)

Retrieve a shared secret using a share token. No authentication required. Returns null if the share is expired, revoked, or has exceeded its read limit.

Error Reference

All API errors throw a VaultError with status, code, and message properties.

| Code | Status | Description | |------|--------|-------------| | secret_limit_exceeded | 403 | Account has reached the secret limit for its tier | | version_limit_exceeded | 403 | Secret has reached the version limit for the tier. Delete and recreate, or upgrade. | | insufficient_tier | 403 | Operation requires a higher tier (e.g. version retrieval requires Builder+) | | share_limit_exceeded | 403 | Active share limit reached for this tier | | share_not_found | 404 | Share ID or token not found | | share_expired | 403 | Share link has expired | | share_revoked | 403 | Share link was revoked | | share_read_limit | 403 | Share has exceeded its maximum read count | | not_found | 404 | Secret not found |

Pricing

| Tier | Price | Secrets | Versions | Audit | |------|-------|---------|----------|-------| | Free | $0 | 10 | 1 | — | | Builder | $9/mo | 100 | 5 | 30d | | Pro | $29/mo | Unlimited | 20 | 90d | | Scale | $79/mo | Unlimited | Unlimited | 1yr |

LobsterKit Ecosystem

@lobsterkit/vault is part of the LobsterKit ecosystem alongside @lobsterkit/db and @lobsterkit/lobstermail. Link accounts across products at signup with a linkToken to get a single Stripe customer and an automatic 15% multi-product discount.

License

MIT