MCPcopy Index your code
hub / github.com/RoamJS/smartblocks

github.com/RoamJS/smartblocks @1.14.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.14.0 ↗ · + Follow
72 symbols 225 edges 19 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RoamJS Logo

SmartBlocks

Build powerful, dynamic workflows in Roam—like programmable templates that can write, transform, and fetch data from your graph. Automate daily notes, meeting prep, task flows, and repeatable processes with a rich command system.

Ask DeepWiki

Overview

SmartBlocks makes it easy to reuse text in a dynamic way in Roam. It can be compared to other snippet/template insertion tools like TextExpander and Alfred. However, SmartBlocks completely lives in your Roam graph and can smartly interact with your graph. All SmartBlocks workflows are defined in the graph and are performed in your graph. SmartBlocks are made of the following key components:

  • Workflows: These are the definitions of what the SmartBlock will do, it serves as a template for the SmartBlocks actions. These can be predefined or custom workflows.

  • Commands: Commands are instructions that make your SmartBlock workflow do amazing and dynamic things.

  • Trigger: The keystrokes you type so that the workflow is run. The default keystroke is jj.

Table of Contents

The following steps dive into all the features SmartBlocks has to offer in increasing complexity; from beginners to developer.

  1. Trigger Your Workflow
  2. Understanding Commands
  3. Using Pre-Defined Workflows
  4. Make Your Own Workflows
  5. Command Reference
  6. Alternative Methods
  7. Developer Docs

Demo

Support

There is an active community at roamresearch.slack.com in the #roamjs channel discussing and building SmartBlocks.

Stop by if you need help or want to share your ideas.

Core symbols most depended-on inside this repo

Shape

Function 72

Languages

TypeScript100%

Modules by API surface

src/utils/core.ts37 symbols
src/index.ts13 symbols
src/utils/scheduleNextDailyRun.ts3 symbols
src/SmartblocksMenu.tsx3 symbols
src/SmartblockPopover.tsx3 symbols
src/components/DailyConfigComponent.tsx2 symbols
src/Prompt.tsx2 symbols
src/Loading.tsx2 symbols
src/HotKeyPanel.tsx2 symbols
src/utils/saveDailyConfig.ts1 symbols
src/utils/parseSmartBlockButton.ts1 symbols
src/utils/getDailyConfig.ts1 symbols

For agents

$ claude mcp add smartblocks \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page