返回目录
开源项目其他开源工具类新手

GitHub - alyssaxuu/slashy: Supercharge Notion with custom commands to record, draw, and more ✍️

Slashy Supercharge Notion with custom commands to record, draw, and more ✨ Slashy is an open source extension that lets you create custom commands for Notion. Make camera and audio recordings, draw, create reusable components and much more - all for free. 👉

0 次阅读2026/09/16 发布
GitHub - alyssaxuu/slashy: Supercharge Notion with custom commands to record, draw, and more ✍️ 来源图片

社区作者 · zZz

它解决什么问题

Slashy

Supercharge Notion with custom commands to record, draw, and more ✨

Slashy is an open source extension that lets you create custom commands for Notion. Make camera and audio recordings, draw, create reusable components and much more - all for free.

👉 Get it now for Chrome , for Firefox , and for Edge .

Made by Alyssa X

Table of contents

  • Features
  • How to use Slashy
  • Firefox workaround
  • Accessing the sidebar
  • The draw command
  • The record command
  • Creating a command
  • Editing a command
  • Deleting a command
  • Slashy SDK
  • Show modal
  • Write to Notion
  • Add image
  • Self-hosting Slashy
  • Installing on Chrome
  • Installing on Firefox
  • Libraries used

Features

⚡️ Create your own Notion custom commands, accessible with the slash key

📹 Make video and audio recordings without leaving Notion with /record

🖌️ Make drawings and annotations for your Notion page with /draw

✍️ Easily make commands for reusable blocks and content

🤖 Develop your own plugins with the Slashy SDK

🗄 Manage and edit your commands easily through the Notion sidebar

⚙️ Toggle command visibility and other settings

...and much more - all for free & no sign in needed!

How to use Slashy

First, you need to install Slashy from the Chrome Web Store , the Firefox add-ons website , or self-host it .

Firefox workaround

In order for the /draw command to work in Firefox, you must go to about:config in Firefox (type in the address bar) and then set dom.events.asyncClipboard.clipboardItem to true by clicking on the toggle button on the right. See below:

Accessing the sidebar

You can then open Notion , and you will see a "zap" icon on the top right of the sidebar. Click it to see and manage all the custom commands. Here's how it should look like after installing the extension:

The draw command

One of the default commands Slashy comes with is /draw .

Once you use it in Notion (typing /draw, and then selecting "Make a drawing" from the list), it will prompt a popup with a canvas you can draw on. Here are the tools available within it:

  • Color picker : Clicking on the bottom left colored circle lets you switch the color you draw in.
  • Pencil tool : Simple pencil drawing tool
  • Line tool : Lets you create lines by dragging on the canvas
  • Text tool : Lets you create text by clicking somewhere on the canvas, and then typing
  • Eraser : Allows you to erase parts of the canvas by dragging on top of it, like a brush
  • Clear : Clicking on it will automatically clear the canvas

Once you're happy with your drawing, you can click on "Save", and it will automatically be added into the Notion page.

The record command

One of the default commands Slashy comes with is /record .

To use it in Notion, just type /record and select "Make a recording" from the list. It will prompt a popup, and ask you permission to use the camera and microphone. You need to accept to proceed.

Once the permissions have been set, you will see the camera playback within the popup, and you can click on the red circle to start recording. To stop, just click again, and it will automatically download the file. You can then add it into Notion.

Creating a command

To create a command, click on the blue "New command" button on the top right of the sidebar. This will prompt a popup, that will look like this:

There are several fields in the form:

Field Type Description

Image URL URL (optional) A permanent link to an image to use as a thumbnail for the command. If not set, a fallback image will be used.

Name String The name of the command. This will be visible in the commands list and will be used as a modal title for plugins .

Description String The description of the command. It will be visible in the commands list.

Command String The alias that will trigger the command. It will always use a "/" to trigger, like other Notion commands.

Type of action Dropdown The type of action the command will perform. It can be a "Template", which inserts markdown directly into the page, a "Script", which runs JavaScript code, or an "Image", which inserts an image into the page using a URL

Visibility Dropdown It can either be "Visible" or "Hidden", so you can control if the command shows up when using the "/".

Template content String Only shows if the command type is set to "Template". Any text (markdown supported) will be inserted into the Notion page.

Image link URL Only shows if the command type is set to "Image". The URL provided will be used to insert an image into the page.

JavaScript JavaScript Only shows if the command type is set to "Script". The JavaScript code will run after triggering the command. You can use the Slashy SDK to access special methods to interact with Notion.

Editing a command

To edit a command, hover over a specific command in the sidebar (the record and draw commands cannot be edited), and click on the "Edit" button. It will show a popup where you can make any changes or discard them.

Deleting a command

To delete a command, hover over a specific command in the sidebar (the record and draw commands cannot be deleted), and click on the trash button. It will prompt you with a popup to confirm whether you really want to remove the command. Click on "Delete" to confirm.

Slashy SDK

I've added a few methods to make it easier to interact with Notion and create custom plugins in Slashy. You can use these methods in the Javascript field when creating a new command (make sure to set the command type to "Script").

Show modal

showModal ( label , placeholder , onsubmit )

Displays a modal with an input field that you can use for a variety of plugins, for example:

The title of the modal will be the same as the name of your command.

Parameter Type Description

label String The label that will show on the modal above the input.

placeholder String The placeholder text in the input.

onsubmit Function(result) The function that gets called when the user submits the modal. Should have one parameter to return the input value.

Write to Notion

writeToNotion ( content )

Inserts any sort of text (markdown included) into Notion where the user triggered the slash command.

Parameter Type Description

content String The text to add to the Notion page.

Add image

addImageBlob ( blob )

Adds an image to the Notion page where the user triggered the slash command.

Parameter Type Description

blob Blob (type image/png only) The image to add to the Notion page.

Feel free to suggest new methods for Slashy by making an issue .

Self-hosting Slashy

You can run Slashy locally without having to install it from the Chrome Store or from Firefox Add-ons.

Installing on Chrome

  • Download the code. In the web version of GitHub, you can do that by clicking the green "Code" button, and then "Download ZIP".
可复制命令
Go to chrome://extensions/ in your browser, and enable developer mode .
  • Drag the mv3 folder (make sure it's a folder and not a ZIP file, so unzip first), or click on the "Load unpacked" button and locate the folder.
  • That's it, you will now be able to use Slashy locally.

Installing on Firefox

  • Download the code. In the web version of GitHub, you can do that by clicking the green "Code" button, and then "Download ZIP".
  • Open the about:debugging page in your browser, click the "This Firefox" option.
  • Click the "Load Temporary Add-on" button, and select any file inside the mv2 folder
  • You might need to add a temporary extension ID in the manifest.json in order to be able to use storage.
  • In order for the /draw function to work properly, you must go to about:config in Firefox (type in the address bar), and then set dom.events.asyncClipboard.clipboardItem to true by clicking on the toggle button on the right.
  • That's it, you will now be able to use Slashy locally.

Libraries used

  • jQuery - for better event handling and DOM manipulation
  • FabricJs - for the drawing plugin
  • SvalJs - to be able to execute custom scripts (eval doesn't work in MV3)

Feel free to reach out to me through email at [email protected] or on Twitter if you have any questions or feedback! Hope you find this useful 💜

— 本文由 AI 根据公开来源辅助整理,命令、版本与许可证请在使用前到原始页面复核。

安装 / 开始使用

Features ⚡️ Create your own Notion custom commands, accessible with the slash key 📹 Make video and audio recordings without leaving Notion with /record 🖌️ Make drawings and annotations for your Notion page with /draw ✍️ Easily make commands for reusable blocks and content 🤖 Develop your own plugins with the Slashy SDK 🗄 Manage and edit your commands easily through the Notion sidebar ⚙️ Toggle command visibility and other settings .

and much more - all for free & no sign in needed! How to use Slashy First, you need to install Slashy from the Chrome Web Store , the Firefox add-ons website , or self-host it .

Firefox workaround In order for the /draw command to work in Firefox, you must go to about:config in Firefox (type in the address bar) and then set dom.events.asyncClipboard.clipboardItem to true by clicking on the toggle button on the right.

See below: Accessing the sidebar You can then open Notion , and you will see a "zap" icon on the top right of the sidebar. Click it to see and manage all the custom commands.

Here's how it should look like after installing the extension: The draw command One of the default commands Slashy comes with is /draw .

Once you use it in Notion (typing /draw, and then selecting "Make a drawing" from the list), it will prompt a popup with a canvas you can draw on. Here are the tools available within it:

Once you're happy with your drawing, you can click on "Save", and it will automatically be added into the Notion page. The record command One of the default commands Slashy comes with is /record .

To use it in Notion, just type /record and select "Make a recording" from the list. It will prompt a popup, and ask you permission to use the camera and microphone. You need to accept to proceed.

Once the permissions have been set, you will see the camera playback within the popup, and you can click on the red circle to start recording. To stop, just click again, and it will automatically download the file. You can then add it into Notion.

Creating a command To create a command, click on the blue "New command" button on the top right of the sidebar.

This will prompt a popup, that will look like this: There are several fields in the form: Field Type Description Image URL URL (optional) A permanent link to an image to use as a thumbnail for the command. If not set, a fallback image will be used.

Name String The name of the command. This will be visible in the commands list and will be used as a modal title for plugins . Description String The description of the command. It will be visible in the commands list.

Command String The alias that will trigger the command. It will always use a "/" to trigger, like other Notion commands. Type of action Dropdown The type of action the command will perform.

It can be a "Template", which inserts markdown directly into the page, a "Script", which runs JavaScript code, or an "Image", which inserts an image into the page using a URL Visibility Dropdown It can either be "Visible" or "Hidden", so you can control if the command shows up when using the "/".

Template content String Only shows if the command type is set to "Template". Any text (markdown supported) will be inserted into the Notion page. Image link URL Only shows if the command type is set to "Image".

The URL provided will be used to insert an image into the page. JavaScript JavaScript Only shows if the command type is set to "Script". The JavaScript code will run after triggering the command.

You can use the Slashy SDK to access special methods to interact with Notion. Editing a command To edit a command, hover over a specific command in the sidebar (the record and draw commands cannot be edited), and click on the "Edit" button.

It will show a popup where you can make any changes or discard them. Deleting a command To delete a command, hover over a specific command in the sidebar (the record and draw commands cannot be deleted), and click on the trash button.

It will prompt you with a popup to confirm whether you really want to remove the command. Click on "Delete" to confirm. Slashy SDK I've added a few methods to make it easier to interact with Notion and create custom plugins in Slashy.

You can use these methods in the Javascript field when creating a new command (make sure to set the command type to "Script").

Show modal showModal ( label , placeholder , onsubmit ) Displays a modal with an input field that you can use for a variety of plugins, for example: The title of the modal will be the same as the name of your command.

Parameter Type Description label String The label that will show on the modal above the input. placeholder String The placeholder text in the input. onsubmit Function(result) The function that gets called when the user submits the modal.

Should have one parameter to return the input value. Write to Notion writeToNotion ( content ) Inserts any sort of text (markdown included) into Notion where the user triggered the slash command.

  • Installing on Chrome
  • Installing on Firefox
  • Libraries used
  • Color picker : Clicking on the bottom left colored circle lets you switch the color you draw in.
  • Pencil tool : Simple pencil drawing tool
  • Line tool : Lets you create lines by dragging on the canvas
  • Text tool : Lets you create text by clicking somewhere on the canvas, and then typing
  • Eraser : Allows you to erase parts of the canvas by dragging on top of it, like a brush
  • Clear : Clicking on it will automatically clear the canvas

来源教程配图

Preview
配图 1 · Preview查看原图
Slashy - Supercharge Notion with commands to record, draw, and more | Product Hunt
配图 2 · Slashy - Supercharge Notion with commands to record, draw, and more | Product Hunt查看原图
About config
配图 3 · About config查看原图
Sidebar example
配图 4 · Sidebar example查看原图
Popup example
配图 5 · Popup example查看原图
Plugins example
配图 6 · Plugins example查看原图

适用场景

学习研究
开源项目实践