A secure random password generator Chrome extension with a sleek, modern UI, built with TypeScript and esbuild.
Features
- Cryptographically secure randomness (
crypto.getRandomValues()).
- Guaranteed character inclusion per selected category.
- Unbiased output shuffling (Fisher-Yates).
- Modern dark-themed UI with custom controls.
- Automatic edge-case handling (minimum lengths, empty states).
Development Setup
-
Install Dependencies
Ensure you have Node.js installed, then run:
npm install
-
Build the Extension
Compile the TypeScript files into the dist/ directory:
npm run build
For active development, use npm run watch.
Loading the Extension in Chrome
- Open Chrome and navigate to
chrome://extensions/.
- Enable Developer mode in the top right corner.
- Click Load unpacked.
- Select the
password-generator-extension directory.
File Structure
src/ - TypeScript source files (generator.ts, popup.ts, types.ts).
dist/ - Compiled output directory.
manifest.json - Chrome extension manifest (Manifest V3).
popup.html / popup.css - UI layout and styling.