- Node.js v22 or higher
- npm or pnpm package manager
- Clone the repository
git clone https://github.com/DavidNiessen/cpyurl.git
cd cpyurl- Install dependencies
npm install
# or
pnpm install- Build the extension
npm run build
# or
pnpm build- Load the extension in Chrome
- Navigate to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
distfolder
- Navigate to
cpyurl/
├── src/
│ ├── background/ # Background service worker
│ ├── notification/ # Notification system
│ └── index.ts # Core URL copying logic
├── static/
│ ├── assets/ # Icons and images
│ └── manifest.json # Chrome extension manifest
└── dist/ # Build output (generated)
- TypeScript strict mode is enabled
- All async operations have proper error handling
- Chrome API types are used throughout
npm run build:bundle
# or
pnpm build:bundleThis creates a cpyurl.zip file in the dist folder ready for distribution.