README.md
May 12, 2026 · View on GitHub
Frappe Script Editor
Edit Frappe doctype script fields directly in VS Code with data sync on save
Features
- Edit Scripts in VS Code: — Edit JavaScript, Python, HTML, and CSS scripts of Frappe doctypes
- Sync on Save — Changes automatically sync back to your Frappe site when you save
- Multi-Site Support — Manage and switch between multiple Frappe sites
Installation
From VSCode Marketplace
https://marketplace.visualstudio.com/items?itemName=PratikBadhe.frappe-script-editor
From Source
1. Clone and Build
git clone https://github.com/frappe/frappe-script-editor.git
cd frappe-script-editor
yarn install
yarn compile
2. Install Extension
Choose one of the following methods:
Method A: VS Code Command Palette (Recommended)
- Open VS Code
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows/Linux) to open the Command Palette - Type
Developer: Install Extension from Locationand select it - Navigate to and select the
frappe-script-editorfolder - Restart VS Code
Method B: Manual Installation
- Copy the extension folder to your VS Code extensions directory:
# For macOS/Linux
cp -r frappe-script-editor ~/.vscode/extensions
# For Windows
xcopy /e /i frappe-script-editor %USERPROFILE%\.vscode\extensions\frappe-script-editor
- Restart VS Code
Setup
1. Generate API Credentials in Frappe
- Login to your Frappe site
- Go to User > Your User > API Access
- Generate a new API Key and API Secret
- Save these credentials securely
2. Add Your Site in VS Code:
- Open the Frappe Script Editor sidebar (click the Frappe icon in the Activity Bar)
- Click "Add Site"
- Enter:
- Site Name — A friendly name for your site
- Site URL — Your Frappe site URL (e.g.,
https://your-site.com) - API Key — The key generated above
- API Secret — The secret generated above
- Click Add Site
Usage
Browsing and Editing Scripts
- Expand your connected site in the Frappe Script Editor sidebar
- Click any script to open it in the editor
- Make your changes and Save (
Cmd/Ctrl + S) - Changes are automatically synced to your Frappe site
License
AGPL-3.0 license — see license.txt for details.
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Frappe Community: discuss.frappe.io