You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Local Development Setup](#local-development-setup)
17
17
-[License](#license)
18
+
-[Adding New Blocks and Tools](#adding-new-blocks-and-tools)
18
19
19
20
---
20
21
@@ -162,4 +163,152 @@ This project is licensed under the MIT License. By contributing, you agree that
162
163
163
164
---
164
165
166
+
## Adding New Blocks and Tools
167
+
168
+
Sim Studio is built in a modular fashion where blocks and tools extend the platform's functionality. To maintain consistency and quality, please follow the guidelines below when adding a new block or tool.
169
+
170
+
### Where to Add Your Code
171
+
172
+
- **Blocks:** Create your new block file under the `/blocks/blocks` directory.
173
+
- **Tools:** Create your new tool file under the `/tools` directory.
174
+
175
+
In addition, you will need to update the registries:
176
+
177
+
- **Block Registry:** Update the blocks index (usually `/blocks/index.ts`) to include your new block.
178
+
- **Tool Registry:** Update the tools registry (`/tools/index.ts`) to add your new tool.
179
+
180
+
### How to Create a New Block
181
+
182
+
1. **Create a New File:**
183
+
Create a file for your block (e.g., `newBlock.ts`) in the `/blocks/blocks` directory.
184
+
185
+
2. **Create a New Icon:**
186
+
Create a new icon for your block in the `/components/icons.tsx` file.
187
+
188
+
3. **Define the Block Configuration:**
189
+
Your block should export a constant of type `BlockConfig`. For example:
0 commit comments