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

@axon-protocol/password-manager-server

v0.1.0

Published

AXON Password Manager Server — Automate Chrome's built-in password manager via Puppeteer with Shadow DOM piercing and OCRS integration

Readme

@axon-protocol/password-manager-server

AXON Password Manager Server — 9 tools for automating Chrome's built-in password manager via Puppeteer with Shadow DOM piercing and OCRS integration.

npm license

Why?

Chrome's password manager (chrome://password-manager) stores credentials securely but offers no programmatic API. This server automates the password manager UI via Puppeteer, piercing Chrome's nested Shadow DOM to expose 9 tools for listing, searching, adding, editing, deleting, generating, checking, and exporting passwords.

All results go through AXON's Out-of-Context Result Store (OCRS). Passwords NEVER appear in the model's context window — they're stored externally and only accessible via targeted retrieval.

Prerequisites

  • Chrome must be closed before launching. Puppeteer cannot share a profile directory with a running Chrome instance.
  • Chrome/Chromium installed (auto-detected on macOS, Linux, Windows)
  • Node.js 18+

Install

npm install @axon-protocol/password-manager-server

Peer dependency: @axon-protocol/sdk (installed automatically with npm 7+)

Quick Start

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "axon-passwords": {
      "command": "npx",
      "args": ["tsx", "node_modules/@axon-protocol/password-manager-server/src/mcp-stdio.ts"],
      "env": {
        "AXON_HEADLESS": "false"
      }
    }
  }
}

Claude Code

claude mcp add axon-passwords -- npx tsx node_modules/@axon-protocol/password-manager-server/src/mcp-stdio.ts

Cursor / Windsurf / Any MCP Client

npx tsx node_modules/@axon-protocol/password-manager-server/src/mcp-stdio.ts

Programmatic Usage

import { launchPasswordManagerServer } from "@axon-protocol/password-manager-server";

const { server, pm, shutdown } = await launchPasswordManagerServer({
  headless: false,
  profileName: "Default",
});

console.log(`${server.toolCount} tools ready`);

// List all saved passwords (no password values in response)
const result = await server.execute({
  id: 1,
  tool: "list_passwords",
  params: {},
  capability: "",
}, { sessionId: "demo", streamId: 1, reportProgress: () => {}, isCancelled: () => false });

await shutdown();

Tools (9)

Reading

| Tool | Description | |------|-------------| | list_passwords | List all saved passwords (site + username only, never passwords) | | search_passwords | Search by site URL or username | | get_password | Retrieve a specific password (may trigger OS auth) | | check_compromised | Run Chrome's security checkup (compromised, reused, weak) | | export_passwords | Export all passwords as CSV or JSON |

Writing

| Tool | Description | |------|-------------| | add_password | Add a new password entry | | edit_password | Modify an existing entry (username, password, note) | | delete_password | Delete a password entry permanently |

Utility

| Tool | Description | |------|-------------| | generate_password | Generate a cryptographically strong random password |

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | AXON_CHROME_PROFILE_DIR | Chrome user data directory | Auto-detect | | AXON_CHROME_PROFILE_NAME | Chrome profile name | Default | | AXON_CHROME_PATH | Custom Chrome executable path | Auto-detect | | AXON_HEADLESS | Run Chrome in headless mode | false |

Security

Password Protection

  • Summaries NEVER contain passwords. Password values only exist in OCRS data, never in the model's context window.
  • get_password and generate_password store values in OCRS with redacted summaries.
  • export_passwords stores the full export in OCRS — summary shows entry count only.

Capability-Based Access

  • Read operations (list_passwords, search_passwords, etc.) require resource:read
  • Write operations (add_password, edit_password, delete_password) require resource:write
  • Capabilities expire after 1 hour (configurable)
  • Optional readOnly mode disables all write operations

Chrome Profile

  • Launches Chrome with --user-data-dir pointing to your actual Chrome profile
  • Saved passwords, cookies, and settings are available
  • --password-store=basic reduces OS keychain prompts where possible
  • Some operations (reveal password, export) may still trigger OS authentication

How It Works

  1. Puppeteer launches Chrome with your actual profile directory
  2. Navigates to chrome://password-manager/passwords (Chrome's built-in password manager)
  3. Pierces Shadow DOM — Chrome settings pages use deeply nested Web Components with shadow roots
  4. Extracts data — recursively traverses shadow roots to find password entries, buttons, and forms
  5. OCRS integration — large results stored externally, model gets compact summaries

Shadow DOM Piercing

Chrome's internal pages use Polymer/Lit web components with nested shadow roots:

password-manager-app
  └── #shadowRoot
       └── passwords-section
            └── #shadowRoot
                 └── password-list-item (×N)
                      └── #shadowRoot
                           └── site, username, actions

The server uses recursive shadow root traversal to find elements regardless of nesting depth.

Limitations

  • Chrome must be closed — Puppeteer can't share a profile directory with a running instance
  • Shadow DOM selectors — Chrome updates may change internal element structure. The server uses flexible matching strategies but may need updates for major Chrome releases.
  • OS authentication — Revealing passwords or exporting may trigger Touch ID / system password prompts
  • Headless mode — Some password manager operations may not work in headless mode

Related Packages

Links

License

MIT