Loading repository data…
Loading repository data…
Sidharth-e / repository
A TypeScript-based browser extension that lets you create, store, and quickly insert reusable prompts while typing on any website.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A TypeScript-based browser extension that lets you create, store, and quickly insert reusable prompts while typing on any website. Type ::keyword in a textarea or contenteditable input to expand it into the saved prompt. Toggle the in-page UI with Ctrl/Cmd+Shift+P.
project-root/
│── icons/ # Extension icons and branding assets
│ ├── icon16.png
│ ├── icon32.png
│ ├── icon48.png
│ ├── icon128.png
│ └── logo.png
│── releases/ # Built ZIPs (e.g., PromptNest-1.0.0.zip)
│── scripts/
│ └── build-script.js # Build & package script (esbuild + zip)
│── src/ # TypeScript source files
│ ├── background.ts # Background service worker (MV3)
│ ├── content.ts # Content script: UI toggle & keyboard handling
│ ├── observers/
│ │ └── InputObserver.ts # Observes inputs and expands ::keyword
│ ├── services/
│ │ └── PromptManager.ts # CRUD over chrome.storage.local
│ └── Ui/
│ ├── CustomAlert.ts # Reusable alert component
│ └── PromptUI.ts # In-page UI for managing prompts
│── screenshots/ # Place screenshots here (referenced below)
│── manifest.json # Extension manifest (Manifest V3)
│── tsconfig.json # TypeScript configuration
│── package.json # Dependencies and scripts
│── README.md # This file
└── build/ and dist/ # Generated outputs after build
::keyword to expand into the saved prompt in textarea or contenteditable fieldsCtrl/Cmd + Shift + P to show/hide the PromptNest UIchrome.storage.localInstall dependencies:
npm install
Build the extension:
npm run build
Load in browser:
chrome://extensions/ or edge://extensions/build folder created by the build script(Optional) Grab the ZIP: The build also creates releases/PromptNest-<version>.zip for distribution.
npm run dev (TypeScript watch)npm run clean (removes dist and build)npm run build (bundles with esbuild, copies assets, zips release)Once loaded, the extension will:
Ctrl/Cmd + Shift + P::keyword into the corresponding prompt while you typesrc/Ui/PromptUI.ts, src/Ui/CustomAlert.ts). You can migrate styles to SCSS if preferred.manifest.json permissions as neededmatches in manifest.json to target specific sitesicons/ can be replaced with your branding assetsbackground.jschrome.storage.local)