githubEdit

Templates

Learn about the templates provided by Raycast to help kickstart your extension.

Raycast provides a variety of templates to kickstart your extension.

Raycast provides 3 types of templates:

  • Commands: These are templates for commands.

  • Tools: These are templates for tools. You can select a different one for each tool that you add to your extension.

  • Extension Boilerplates: These are fully built extensions designed to be tweaked by organizations for internal use.

Commands

Show Detail

chevron-rightRenders a simple Hello World from a markdown string.hashtag
Detail Template Render
circle-info

See the API Reference for more information about customization.

Submit Form

chevron-rightRenders a form that showcases all available form elements.hashtag
Submit Form Template Render
circle-info

See the API Reference for more information about customization.

Show Grid

chevron-rightRenders a grid of Icons available from Raycast.hashtag

Defaults to a large grid, but provides a selection menu to change the size.

Grid Template Render
circle-info

See the API Reference for more information about customization.

See here for information about Icons.

Show List and Detail

chevron-rightRenders a list of options. When an option is selected, a Detail view is displayed.hashtag
List and Detail Template Render
circle-info

See the API Reference for more information about customization.

chevron-rightAdds a simple Menu Bar Extra with a menu.hashtag
Menu Bar Extra Template Render
circle-info

See the API Reference for more information about customization.

Run Script

A example of a no-view command which shows a simple HUD.

Show List

chevron-rightRenders a static list with each entry containing an icon, title, subtitle, and accessory.hashtag
List Template Render
circle-info

See the API Reference for more information about customization.

Show Typeahead Results

chevron-rightRenders a dynamic and searchable list of NPM packages. The command fetches new items as the search is updated by the user.hashtag
Typeahead Results Template Render

AI

chevron-rightRenders the output of an AI call in a Detail view.hashtag
AI Template Render

Tools

chevron-rightA simple tool which asks for confirmation before executing.hashtag
Tool with Confirmation Template Render
circle-info

See the API Reference for more information about customization.

Extension Boilerplates

The Raycast Team has created high-quality templates to reinforce team experiences with the Raycast API.

Run npm init raycast-extension -t <template-name> to get started with these extensions. All templates can be found on the templates pagearrow-up-right.

Specific instructions about customizing the template can be found on the relevant template pagearrow-up-right. Simply customize the template as you see fit, then run npm run publish in the extension directory to allow your team to install the extension.

Last updated