@raycast/utils for common operations like clipboard access, storage, caching, and more.
Storage & Data
LocalStorage
LocalStorage
Persistent key-value storage scoped to your extension
LocalStorage is automatically scoped to your extension. Each extension has its own isolated storage namespace.
Cache
Cache
In-memory cache with LRU eviction and capacity limits
Clipboard
Clipboard
Read and write clipboard content
Icon & Avatar Utilities
getFavicon
getFavicon
Get favicon URL for a website
getAvatarIcon
getAvatarIcon
Generate SVG avatar from name initials
Avatar colors are deterministically generated from the name, so the same name always gets the same color.
getProgressIcon
getProgressIcon
Generate SVG circular progress indicator
AppleScript & Shell
runAppleScript
runAppleScript
Execute AppleScript commands
executeSQL
executeSQL
Execute SQLite queries
Caching & Performance
withCache
withCache
Wrap async functions with automatic caching
Utilities
showFailureToast
showFailureToast
Show error toast with consistent formatting
createDeeplink
createDeeplink
Create deeplinks to extensions and commands
Environment
environment
Access runtime environment information
environment object provides information about the runtime environment.
Properties:
AI
AI
Execute AI prompts programmatically
AI object provides programmatic access to AI functionality.
API:
AI availability can be checked with
environment.canAccess(AI). Users must configure AI providers in SuperCmd settings.