Plugin System
Extend Lokus with powerful plugins that add new features, customize your workflow, and integrate with external tools. The Lokus Plugin System provides VS Code-level extensibility with a secure, user-friendly marketplace and comprehensive management tools.
Version: 1.3.1 | Status: Production Ready | Plugin Types: 6+ | Marketplace: Integrated
What Are Plugins?
Plugins are extensions that add new functionality to Lokus without modifying the core application. They run in a secure sandbox and can:
- Add new editor features (syntax highlighting, formatting, special blocks)
- Create custom themes and styling options
- Integrate with external tools (APIs, databases, cloud services)
- Enhance the UI with new panels, buttons, and commands
- Automate workflows and repetitive tasks
- Connect AI assistants through MCP (Model Context Protocol)
Why Use Plugins?
Customization:
- Tailor Lokus to your specific workflow
- Add features that matter to you
- Remove what you don’t need
Productivity:
- Automate repetitive tasks
- Integrate with tools you already use
- Create custom workflows
Community:
- Access hundreds of community-created plugins
- Share your own plugins with others
- Benefit from collective innovation
Safety:
- Sandboxed execution prevents system damage
- Permission-based security model
- Regular security audits
Plugin Types
Lokus supports six types of plugins, each designed for specific use cases:
1. Editor Plugins
Extend the rich text editor with new functionality:
Examples:
- Advanced Tables - Enhanced table editing with formulas and CSV import
- Diagram Maker - Create flowcharts and diagrams inline
- Code Snippets - Programmable snippet expansion
- Grammar Check - Real-time grammar and style checking
- Vim Mode - Vim key bindings for the editor
Use cases:
- Custom syntax highlighting
- Special content blocks (timelines, charts, maps)
- Text transformations and formatting
- Collaborative editing features
2. UI Plugins
Add custom interface components and panels:
Examples:
- Calendar View - Visual calendar for daily notes
- File Explorer Plus - Enhanced file navigation
- Quick Capture - Floating note capture window
- Dashboard - Customizable homepage with widgets
- Sidebar Panels - Custom panels for specialized views
Use cases:
- Custom sidebars and panels
- New toolbar buttons and menus
- Status bar indicators
- Modal dialogs and forms
3. Theme Plugins
Create and share custom themes:
Examples:
- Material Theme Pack - Material Design color schemes
- Dracula Extended - Popular dark theme with variants
- Seasonal Themes - Themes that change with seasons
- High Contrast Pack - Accessibility-focused themes
- Syntax Theme Studio - Custom code highlighting themes
Use cases:
- Custom color schemes
- Syntax highlighting themes
- Font and typography customization
- UI element styling
4. Tool Plugins
Add utilities and productivity tools:
Examples:
- PDF Exporter - Export notes to beautifully formatted PDFs
- Spaced Repetition - Flashcard and memory system
- Word Counter Pro - Advanced text statistics
- Link Checker - Validate internal and external links
- Backup Manager - Automated backup and sync
Use cases:
- File conversion and export
- Text analysis and statistics
- Backup and synchronization
- Batch operations on notes
5. MCP Plugins
Integrate AI assistants through Model Context Protocol:
Examples:
- AI Writing Assistant - Context-aware writing suggestions
- Smart Summarizer - Automatic note summarization
- Research Helper - AI-powered research and citation
- Code Assistant - Programming help within notes
- Translation Plugin - Multi-language translation
Use cases:
- AI-powered content generation
- Intelligent search and recommendations
- Automated tagging and organization
- Context-aware assistance
6. Workspace Plugins
Enhance file and project management:
Examples:
- Project Templates - Pre-configured workspace structures
- Git Integration - Version control for notes
- File Organizer - Auto-organize based on rules
- Advanced Search - Enhanced search capabilities
- Cross-Reference - Automatic link discovery
Use cases:
- Advanced file organization
- Version control integration
- Workspace automation
- Cross-note analysis
Installing Plugins
From the Marketplace
The easiest way to install plugins is through the integrated marketplace:
Step 1: Open the Plugin Marketplace
Settings → Plugins → Browse Marketplace
or
Cmd/Ctrl + Shift + P → "Browse Plugin Marketplace"Step 2: Discover Plugins
- Browse Categories - Filter by Editor, Themes, Tools, etc.
- Search - Use the search bar to find specific plugins
- Featured - Check out curated, high-quality plugins
- Trending - See what’s popular in the community
Step 3: Review Plugin Details
Before installing, review:
- Description - What the plugin does
- Permissions - What access it requires (see Security)
- Ratings & Reviews - User feedback and ratings
- Version History - Recent updates and changes
- Dependencies - Other plugins it requires
- Screenshots - Visual demonstration of features
Step 4: Install
- Click the “Install” button
- Review the permission request dialog
- Accept permissions to continue
- Wait for installation to complete
- Plugin is automatically enabled
Step 5: Configure (Optional)
Many plugins offer configuration options:
Settings → Plugins → Installed → [Plugin Name] → SettingsManual Installation
Install plugins from downloaded files or local development:
Method 1: From File
- Download Plugin - Get the
.lokus-pluginfile - Open Command Palette -
Cmd/Ctrl + Shift + P - Run Command - Type “Install Plugin from File”
- Select File - Choose the
.lokus-pluginfile - Review Permissions - Accept to continue
- Installation Complete - Plugin appears in installed list
Method 2: From Folder (Development)
For testing plugins during development:
- Open Command Palette -
Cmd/Ctrl + Shift + P - Run Command - “Install Plugin from Folder”
- Select Folder - Choose plugin directory
- Development Mode - Plugin installed with hot reloading
Installing Dependencies:
Some plugins require other plugins. Lokus automatically:
- Detects missing dependencies
- Prompts to install them
- Handles installation order correctly
Managing Plugins
Viewing Installed Plugins
Access your plugin library:
Settings → Plugins → Installed
or
Cmd/Ctrl + Shift + P → "Show Installed Plugins"Plugin List Shows:
- Plugin name and version
- Enable/disable toggle
- Settings button
- Update indicator
- Uninstall option
Enabling and Disabling
Toggle Individual Plugins:
- Go to Settings → Plugins → Installed
- Find the plugin in the list
- Use the toggle switch to enable/disable
- Changes take effect immediately (no restart needed)
Disable All Plugins (Safe Mode):
If you experience issues:
Hold Shift while launching Lokus
or
Command Palette → "Launch in Safe Mode"This disables all plugins temporarily, useful for troubleshooting.
Updating Plugins
Automatic Updates:
By default, Lokus checks for updates daily:
- Updates badge appears on the Plugins button
- Click to see available updates
- Click “Update All” or update individually
- Updates are installed in the background
Manual Update Check:
Force a check for updates:
Settings → Plugins → Check for Updates
or
Cmd/Ctrl + Shift + P → "Check for Plugin Updates"Update Settings:
Configure update behavior:
Settings → Plugins → Update Settings
Options:
- Automatic updates: On/Off
- Check frequency: Daily/Weekly/Manual
- Pre-release versions: On/Off
- Auto-restart after update: On/OffUninstalling Plugins
Remove Unwanted Plugins:
- Go to Settings → Plugins → Installed
- Find the plugin to uninstall
- Click the ”…” menu button
- Select “Uninstall”
- Confirm the action
- Plugin is removed immediately
Clean Uninstall:
To remove plugin data and settings:
- Enable “Remove plugin data” in confirmation dialog
- Confirm uninstall
- All plugin files and settings are deleted
Note: Some plugins may leave configuration files for easy reinstallation. Check plugin documentation for details.
Plugin Settings
Access Plugin Settings:
Method 1: Settings Panel
Settings → Plugins → Installed → [Plugin] → SettingsMethod 2: Command Palette
Cmd/Ctrl + Shift + P → "Plugin: [Plugin Name] Settings"Method 3: Context Menu
Right-click plugin in installed list → SettingsCommon Settings:
Most plugins offer:
- Enable/Disable - Toggle plugin on/off
- Keyboard Shortcuts - Customize shortcuts
- Appearance - Visual customization
- Behavior - Feature configuration
- Advanced - Developer options
Security & Permissions
Lokus takes plugin security seriously with a comprehensive security model.
Sandboxed Execution
All plugins run in a secure sandbox:
- Isolated Environment - Plugins cannot access each other
- Limited System Access - Restricted to declared permissions
- API-Only Access - No direct system calls
- Resource Monitoring - CPU and memory usage tracked
- Automatic Termination - Misbehaving plugins are stopped
Permission System
Plugins must request specific permissions, which you approve during installation.
Common Permissions:
| Permission | Description | Risk Level |
|---|---|---|
filesystem:read | Read files from workspace | Low |
filesystem:write | Write/modify files | Medium |
network:request | Make HTTP requests | Medium |
ui:commands | Add UI commands | Low |
ui:menus | Modify menus | Low |
editor:modify | Change editor content | Medium |
settings:read | Read app settings | Low |
settings:write | Modify app settings | Medium |
clipboard:read | Read clipboard | Low |
clipboard:write | Write to clipboard | Low |
Understanding Risk Levels:
- Low - Minimal risk, standard functionality
- Medium - Can modify data, review carefully
- High - System-level access, only trusted plugins
Reviewing Permissions
Before Installation:
- Read the permission list carefully
- Understand what each permission allows
- Consider if the plugin needs those permissions
- Check reviews for security concerns
Permission Dialog Shows:
- Permission name and description
- Why the plugin needs it
- What it can access
- Risk level indicator
Red Flags:
- Excessive permissions for simple functionality
- Network access for offline-only features
- File write access for read-only plugins
- Unclear permission justifications
Revoking Permissions
After Installation:
You can revoke permissions without uninstalling:
- Go to Settings → Plugins → Installed
- Select the plugin
- Click “Permissions”
- Toggle off unwanted permissions
- Plugin functionality may be limited
Note: Some plugins may not work correctly with revoked permissions. Check plugin documentation.
Security Best Practices
For Users:
- Install from Marketplace - Verified and reviewed
- Check Ratings - High ratings indicate trust
- Read Reviews - Learn from other users’ experiences
- Review Permissions - Understand what you’re granting
- Update Regularly - Get security patches
- Report Issues - Help maintain marketplace quality
Warning Signs:
- Unverified publisher
- No reviews or very low ratings
- Excessive permissions
- Poor documentation
- Abandoned (no recent updates)
Reporting Security Issues
If you discover a security issue:
- Do Not Use the Plugin - Disable immediately
- Report to Lokus - Use “Report Security Issue” in plugin menu
- Notify Community - Leave a review warning others
- Provide Details - Include reproduction steps
Troubleshooting
Plugin Not Loading
Symptoms:
- Plugin appears installed but doesn’t work
- No error message
- Plugin commands not available
Solutions:
- Restart Lokus - Sometimes needed for activation
- Check Compatibility - Verify Lokus version matches plugin requirements
- Review Console - Open Developer Console (Cmd/Ctrl + Shift + I) for errors
- Reinstall Plugin - Uninstall and reinstall
- Check Dependencies - Ensure required plugins are installed
Permission Errors
Symptoms:
- Error message about missing permissions
- Plugin features not working
- “Access denied” errors
Solutions:
- Review Permissions - Check plugin permissions in settings
- Grant Required Access - Re-enable revoked permissions
- Reinstall - Uninstall and reinstall to reset permissions
- Check Sandbox - Ensure sandboxing is enabled in Lokus settings
Performance Issues
Symptoms:
- Lokus running slowly
- High CPU or memory usage
- Lag when typing
Solutions:
- Identify Culprit - Disable plugins one by one to find the issue
- Check Resource Usage - Settings → Plugins → Performance Monitor
- Update Plugin - Newer versions may fix performance issues
- Report Issue - Contact plugin author
- Safe Mode - Launch in safe mode to verify plugins are the cause
Plugin Conflicts
Symptoms:
- Two plugins not working together
- Unexpected behavior after installing a plugin
- Features disappearing
Solutions:
- Disable One Plugin - Test each plugin individually
- Check Documentation - Some plugins list known conflicts
- Contact Authors - Report the conflict
- Choose Alternative - Find a different plugin
Update Failures
Symptoms:
- Update gets stuck
- Error during update
- Plugin breaks after update
Solutions:
- Retry Update - Sometimes network issues cause failures
- Manual Update - Uninstall and reinstall latest version
- Rollback - Restore previous version from backup
- Check Changelog - Look for breaking changes
- Report Bug - Contact plugin author
Getting Help
Support Resources:
- Plugin Documentation - Check the plugin’s README and docs
- Lokus Community - Ask in the community forums
- Plugin Author - Contact through marketplace listing
- GitHub Issues - Report bugs on plugin’s repository
- Lokus Support - Contact Lokus support for marketplace issues
When Reporting Issues:
Include:
- Plugin name and version
- Lokus version and platform
- Steps to reproduce
- Error messages or screenshots
- Console logs (if applicable)
Finding the Right Plugins
Recommended Starter Plugins
New to plugins? Try these popular, safe options:
Productivity:
- Quick Capture - Fast note creation from anywhere
- Daily Note Helper - Enhanced daily notes with templates
- Link Previewer - Rich previews for external links
Editor Enhancements:
- Advanced Tables - Better table editing
- Code Block Plus - Enhanced code blocks with more features
- Math Extensions - Additional math equation features
Visual:
- Theme Pack: Basics - Collection of popular themes
- Icon Pack - Beautiful file and folder icons
- Custom Fonts - Additional font options
Tools:
- Export Pro - Export to multiple formats
- Backup Buddy - Automated backups
- Stats Dashboard - Writing statistics and insights
Plugin Categories in Marketplace
Browse by Category:
- Editor - Text editing enhancements
- Themes - Visual customization
- Productivity - Workflow and automation
- Tools - Utilities and helpers
- Integration - External service connections
- AI & MCP - AI-powered features
- Organization - File and note management
- Export - Format conversion and export
- Development - Developer tools
- Fun - Entertainment and creative plugins
Plugin Discovery Tips
Find Hidden Gems:
- Sort by Rating - High-quality plugins float to top
- Check “Updated Recently” - Active maintenance is important
- Read “Featured” - Curated by Lokus team
- Explore Similar - “Users also installed” suggestions
- Search by Use Case - Describe what you want to do
Example Searches:
- “pdf export”
- “calendar view”
- “git integration”
- “grammar check”
- “dark theme”
Plugin Development
Want to create your own plugin? Lokus provides comprehensive tools for developers.
Developer Resources:
- Plugin Development Guide - Complete development tutorial
- Plugin API Reference - API documentation
- Plugin SDK - Development toolkit
- Example Plugins - Sample code
- Publishing Guide - Marketplace submission
Quick Start:
# Install Lokus Plugin CLI
npm install -g @lokus/plugin-cli
# Create new plugin
lokus-plugin create my-plugin
# Start development
cd my-plugin
lokus-plugin dev
# Package for distribution
lokus-plugin packageWhy Build Plugins?
- Solve your own workflow problems
- Share with the community
- Learn about Lokus architecture
- Contribute to the ecosystem
- Monetize your work (coming soon)
Advanced Features
Plugin Collections
Create Custom Collections:
Group related plugins for easy management:
- Go to Settings → Plugins → Collections
- Click “New Collection”
- Name your collection (e.g., “Writing Tools”, “Development Setup”)
- Add plugins to the collection
- Enable/disable entire collections at once
Use Cases:
- Different setups for different projects
- Work vs. personal plugin sets
- Testing new plugins without affecting main setup
Plugin Profiles
Switch Between Configurations:
Different plugin sets for different contexts:
- Settings → Plugins → Profiles
- Create profiles (e.g., “Writing”, “Coding”, “Research”)
- Configure plugins for each profile
- Quick-switch from status bar
Example Profiles:
Writing Profile:
- Grammar check plugin
- Distraction-free theme
- Word count tools
- Focus mode plugin
Development Profile:
- Code snippet plugins
- Git integration
- Developer theme
- API documentation viewer
Plugin Keyboard Shortcuts
Customize Shortcuts:
Assign keyboard shortcuts to plugin commands:
- Settings → Keyboard Shortcuts
- Search for plugin command
- Click to edit shortcut
- Press new key combination
- Save changes
Tips:
- Use Cmd/Ctrl + Alt for plugin shortcuts
- Avoid conflicts with built-in shortcuts
- Document your custom shortcuts
FAQ
General Questions
Q: Are plugins safe to use? A: Yes. All marketplace plugins undergo security review, and the sandbox system prevents malicious behavior. Always review permissions before installing.
Q: Do plugins slow down Lokus? A: Well-designed plugins have minimal impact. Monitor performance in Settings → Plugins → Performance Monitor.
Q: Can I use plugins offline? A: Yes. Once installed, most plugins work offline. Some features requiring network access may be unavailable.
Q: Are plugins free? A: Currently, all marketplace plugins are free. Paid plugins may be introduced in the future.
Q: How many plugins can I install? A: No hard limit, but performance may degrade with many active plugins (50+). Use collections and profiles to manage large plugin libraries.
Installation Questions
Q: Why can’t I install a plugin? A: Check compatibility requirements, ensure you have the latest Lokus version, and verify internet connection for marketplace downloads.
Q: Can I install plugins on mobile? A: Mobile plugin support is limited. Check plugin documentation for mobile compatibility.
Q: Do I need to restart after installing? A: Usually no. Most plugins activate immediately, but some may require a restart.
Security Questions
Q: Can plugins access my files?
A: Only with filesystem:read or filesystem:write permissions, and only within your workspace folder.
Q: Can plugins send data externally?
A: Only with network:request permission. Review what data plugins access before granting network permission.
Q: How do I know a plugin is safe? A: Check marketplace verification, reviews, ratings, and permission requests. Avoid plugins with poor ratings or excessive permissions.
Troubleshooting Questions
Q: Plugin stopped working after Lokus update. Why? A: Check for plugin updates. The plugin may need updating for Lokus compatibility.
Q: How do I reset a plugin to default settings? A: Go to plugin settings → Advanced → Reset to Defaults.
Q: Can I downgrade a plugin version? A: Yes. In plugin settings → Version History → Install Previous Version.
Related Features
Complementary Features:
- Templates - Create reusable note templates
- Automation - Automate workflows without plugins
- Command Palette - Access plugin commands quickly
- Settings - Configure Lokus and plugins
- Themes - Visual customization
Resources
User Resources:
- Marketplace - Browse all plugins
- Community Forums - Discuss plugins
- Plugin Showcase - Featured plugins
Developer Resources:
- Plugin Development Guide - Build plugins
- API Reference - Complete API docs
- SDK Documentation - Development tools
- Example Plugins - Sample code
- Publishing Guide - Submit to marketplace
Support:
- Help Center - Plugin help articles
- Contact Support - Get assistance
- Report Issue - Bug reports
Ready to Extend Lokus?
Start exploring the marketplace and discover how plugins can transform your workflow. From simple productivity boosts to powerful integrations, there’s a plugin for every need.
Settings → Plugins → Browse MarketplaceLast Updated: January 2025 | Plugin System Version: 1.3.1