frappe/builder 是一个托管在 GitHub 上的开源项目,主要使用 Vue 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 2.5k 个 Star、589 次 Fork。
仓库全名
frappe/builder
README 摘要
Frappe Builder Crafting Web Pages Made Effortless Website - Documentation Frappe Builder Frappe Builder is an open-source website builder. You design pages on a visual canvas, fill them with content from your Frappe database when you need to, and publish with one click. Motivation Most existing solutions were either too complex, too restrictive, or difficult to integrate with the Frappe ecosystem. Additionally,…
Frappe Builder is an open-source website builder. You design pages on a visual canvas, fill them with content from your Frappe database when you need to, and publish with one click.
Motivation
Most existing solutions were either too complex, too restrictive, or difficult to integrate with the Frappe ecosystem. Additionally, pages built with these tools were often bloated with unnecessary scripts and styles. I wanted to take a stab at solving this problem while prioritising performance from day one. I aimed to address two major issues with this project: providing an intuitive way to design a web page and enabling one-click publishing. As a web developer, it helps me scratch my own itch, and I hope it helps others too.
Key Features
Visual editor
Drag blocks onto the canvas and style them from the properties panel, much like you would in Figma. Desktop, tablet and mobile views sit side by side, and a change you make in the tablet or mobile view applies only to that screen size.
Bob, the AI assistant
Describe the page you want and Bob builds it on the canvas, using the colours, fonts and components your site already has, so new pages match the rest of your site. Ask for changes the same way: a shorter headline, warmer colours, an enquiry form. If a form needs somewhere to store submissions, Bob asks before creating it, and the entries show up in Desk, Frappe’s admin. You can revert anything Bob changes.
Pages from your data
Builder runs on the Frappe Framework, so a page can show records straight from your database. A few lines of Python in the page’s data script fetch them, and a block can repeat once per record to make a blog index, a product grid or a team page. With a route like /blog/:slug, one design gives every post its own page.
Reusable components
Save a header, a card or any group of blocks as a component and use it on as many pages as you like. Edit it once and every page that uses it updates. Props let each copy show different content.
Fast pages
Published pages are plain HTML and CSS. No JavaScript runs unless you add some, and there is no framework to download before the page appears. frappe.io is built with Builder.
Google Lighthouse (mobile) on nearly identical pages built with each tool, as published on frappe.io/builder.
Also included
One-click publishing, with version history for every page
Page analytics: views, visitors and referrers, without a third-party script
Colour and font tokens, each with a light and a dark value
Hover, focus and active styles, set without writing CSS
Pages that only signed-in users can see
Uploaded images converted to WebP automatically
Client scripts and global scripts for custom behaviour
Frappe UI: A Vue-based UI library, to provide a modern user interface.
Getting Started (Production)
Managed Hosting
Get started with your personal or business site with a few clicks on Frappe Cloud - our official hosting service.
Self Hosting
Pilot is Frappe’s tool for running benches and sites on your own server. It installs Frappe, manages sites and backups, and sets up production with nginx and TLS. Pilot needs Frappe v16 or later and is still in pre-release. Production servers need Linux; macOS works for local development.
Step 2: Create a bench. The first start prints the URL of a setup wizard, where you pick the Frappe branch (version-16) and set passwords.
pilot new main
pilot -b main start
Step 3: Add Builder and create your site
pilot -b main get-app https://github.com/frappe/builder --branch master
pilot -b main new-site subdomain.domain.tld --admin-password <password>
pilot -b main install-app subdomain.domain.tld builder
Step 4: Go to production
pilot -b main setup production --admin-domain admin.domain.tld --tls --letsencrypt-email [email protected]
Pilot’s production guide covers process managers, domains and TLS. To run production with bench instead, follow Frappe’s production setup.
Getting Started (Development)
With a Coding Agent
Add the frappe-builder skill to Claude Code, Codex, OpenCode or another coding agent:
npx skills add frappe/builder
Then ask it to set up a local Builder site. It uses your existing bench if you have one and creates one if you don’t. After that it can build, edit and publish pages for you, on your local site or on any Frappe site you sign in to through frappectl.
Pilot
On Linux or macOS, install Pilot and create a bench. In the setup wizard, pick Frappe’s develop branch.
pilot new dev
pilot -b dev start
In a new terminal, add Builder and create a site:
pilot -b dev get-app https://github.com/frappe/builder --branch develop
pilot -b dev new-site builder.localhost
pilot -b dev install-app builder.localhost builder
pilot -b dev frappe --site builder.localhost set-config ignore_csrf 1 # prevents CSRFToken errors while using the vite dev server
Wait until the setup script creates a site and you see Current Site set to builder.localhost in the terminal. Once done, the site http://builder.localhost:8000 should now be available.
评论