Add promptbits extension
Description
Access your PromptBits prompt library directly from Raycast. Search, browse, and paste your saved prompts into any application with a single keystroke.
Features:
- Quick search through your prompt library by name or description
- Paste prompts directly into any application
- Fill in dynamic variables (e.g.,
{{name}}) before pasting - Copy prompts to clipboard
- Offline caching for faster access
Screencast
https://github.com/user-attachments/assets/3f5cea9c-77a6-47ef-a560-fee82fd56a3c
Checklist
- [x] I read the extension guidelines
- [x] I read the documentation about publishing
- [x] I ran
npm run buildand tested this distribution build in Raycast - [x] I checked that files in the
assetsfolder are used by the extension itself - [x] I checked that assets used by the
READMEare placed outside of themetadatafolder
Congratulations on your new Raycast extension! :rocket:
Due to our current reduced availability, the initial review may take up to 10-15 business days.
Once the PR is approved and merged, the extension will be available on our Store.
Greptile Summary
This PR adds a new PromptBits extension that integrates with the PromptBits API to allow users to search, browse, and paste prompts directly from Raycast. The extension includes proper offline caching, dynamic variable substitution using Mustache templates, and a clean user interface.
Key features:
- API integration with proper authentication and error handling
- Offline caching using
useCachedPromisefrom@raycast/utils - Dynamic template processing with Mustache for variable substitution
- Clean UI with search, copy, and paste functionality
- Metadata screenshots provided for store listing
Issue found:
- Manual
Preferencesinterface definition inapi.tsshould be removed (violates rule d93fc9fb - types are auto-generated inraycast-env.d.ts)
Confidence Score: 4/5
- Safe to merge after fixing the manual Preferences interface definition
- The extension is well-implemented with proper error handling, offline caching, and follows most Raycast conventions. The only issue is a manual type definition that should be auto-generated, which could cause type mismatches but doesn't affect runtime functionality significantly
- Pay attention to
extensions/promptbits/src/lib/api.ts- remove manual Preferences interface
Important Files Changed
| Filename | Overview |
|---|---|
| extensions/promptbits/package.json | Well-configured package with correct dependencies, metadata, and Prettier settings |
| extensions/promptbits/CHANGELOG.md | Uses proper {PR_MERGE_DATE} placeholder for initial version |
| extensions/promptbits/src/paste-prompt.tsx | Clean implementation with proper error handling, form validation, and user feedback |
| extensions/promptbits/src/lib/api.ts | Functional API client with proper error handling, but contains manual Preferences interface that should be auto-generated |