Plugin Hub
Plugin Hub is where you discover, install, and run small tools. A plugin is a snippet with a window, stored with your other snippets. You can also open it from the search window Marketplace tab.
Plugin Hub: install by npm package name. A plugin is a snippet with plugin_mode, not a separate table.
What Can Plugins Do?
Plugins are mini-applications that run inside CodeExpander. They can:
- Add custom tools โ timestamp converters, JSON formatters, color pickers, calculators
- Process files โ drag a file into the search window, a plugin parses and transforms it
- Integrate with workflows โ generate QR codes, encode/decode Base64, format SQL
- Provide AI-powered features โ code review, auto-commenting, test generation
Installing Plugins
From npm (Recommended)
The fastest way to install plugins:
- Open Plugin Hub from the main window or search window
- In the Install section, type the npm package name (e.g.
@codeexpander/plugin-timestamp) - Click Install
Official plugins use the @codeexpander/plugin-* prefix and are curated by the team.
Requirements: Node.js and npm must be installed on your system.
From Local Directory
If you have a plugin folder on your machine:
- Click Import from directory
- Select the folder containing
plugin.jsonand the entry file - The plugin appears in your list immediately
From AI (MCP)
Let AI create plugins for you:
- Enable MCP server in Settings โ MCP
- Connect your AI assistant (Cursor, Claude Desktop, etc.)
- Describe what you need โ e.g. โCreate a plugin that converts CSV to Markdown tableโ
- The AI generates the plugin and installs it automatically
Managing Plugins
Browse and Search
The Plugin Hub shows all installed plugins as cards. Use the search box to filter by:
- Name โ e.g. โtimestampโ
- Category โ e.g. โDeveloper toolsโ, โConvertersโ
- Description โ keyword search
Run a Plugin
- From Plugin Hub โ Click any plugin card to open its UI
- From Search Window โ Type the plugin name or its defined command triggers
- With files โ Drag files into the search window; file-aware plugins activate automatically
Pin and Organize
- Pin frequently used plugins so they appear in the search windowโs empty state
- Hide plugins you rarely use to reduce clutter
- Uninstall to remove completely
Plugin Anatomy
A plugin is essentially a special snippet with:
plugin.jsonโ Metadata (name, description, icon, category, entry file)- Entry file โ The pluginโs UI (HTML/JS)
- Commands โ Optional keyword triggers for the search window
Example: A โTimestamp Converterโ plugin might define:
- Command:
tsโ typets 1714392000in search to convert instantly - UI: A visual calendar picker when opened from Plugin Hub
Creating Your Own Plugin
Option 1: Manual (For Developers)
Create a folder with:
my-plugin/
plugin.json โ manifest
index.html โ UIplugin.json example:
{
"main": "index.html",
"title": "My Plugin",
"description": "Does something useful",
"category": "Tools",
"features": [
{
"code": "myCmd",
"explain": "Run my command",
"cmds": ["my", "mp"]
}
]
}Import via Plugin Hub โ Import from directory.
Option 2: AI-Assisted (For Everyone)
Describe your idea to an AI assistant connected via MCP. The AI handles:
- Writing the HTML/JS
- Creating the manifest
- Installing it automatically
Example prompt: โCreate a plugin that counts words in selected text. Add a wc command for the search window.โ
Security
Plugins run in a small window with fewer permissions than the main app:
- They cannot browse your snippet library directly
- Clipboard and toasts wait for you to allow them
- The plugin list can declare which window abilities it needs; the app enforces that
Typical Workflows
Developer Toolkit
Install: @codeexpander/plugin-timestamp, @codeexpander/plugin-json, @codeexpander/plugin-color
Daily use:
- Search window โ
ts+ paste timestamp โ instant conversion - Search window โ
json+ paste JSON โ format and validate - Search window โ
color+ paste HEX โ see RGB/HSL conversions
Content Creator
Install: @codeexpander/plugin-qr, @codeexpander/plugin-base64
- Search window โ
qr+ paste URL โ generate QR code image - Search window โ
b64+ paste text โ encode/decode Base64
Team Custom Plugins
Your team builds internal plugins for:
- Company API signature generation
- Internal document templates
- Deployment command runners
Share via npm private registry or local directory sync.
Plugin backend
Some plugins finish in one click. Others need to stay running for a bit. Open Settings โ Extensions โ Plugin backend to cap timeouts and how many can run at once. This stays on this computer. Plugin windows can touch fewer files than the main window on purpose. While developing, pick allowed local folders in Settings.
Plugin development
You want a tiny โpick a date, then insertโ tool. You do not install a second product. A plugin is a snippet with plugin mode on, and it can open its own small window.
Enable the MCP server in Settings, then ask the AI to generate a snippet.
Public repo: spec and examples.
Pick a folder with plugin.json and an entry file.
Choose folderStores the manifest only; files are read live. Limited by dev_plugin_base_dirs.
Choose folderPlugin Dev window: step 1 create via Cursor MCP; step 2 import folder or soft-link. A plugin is a plugin_mode snippet, not another table.
| Path | When |
|---|---|
| Plugin Dev window | Follow the steps from a template, or import a folder |
| Local folder | You already have a manifest and an entry page in an allowed directory |
| Plugin Hub | Install from the market; it becomes a snippet |
| MCP in Settings | Ask the AI in your editor to generate a snippet from the spec |
The written spec is on the Settings โ MCP card.
See also: MCP