Skip to content
frappePublic

About

[WIP] Original, intentionally designed productivity tools

Resources

Stars

131 stars

Watchers

7 watching

Forks

Latest commit

 

History

15,832 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frappe Suite logo

Frappe Suite

Original, intentionally designed productivity tools

License: AGPL v3 Tests

image

Frappe Suite

Frappe Suite brings seven collaboration products into one Frappe app. Keep files, documents, spreadsheets, presentations, meetings, email, and calendars in one connected workspace.

Product What it does
Drive Store, organize, share, and preview files
Writer Create and collaborate on documents
Sheets Build collaborative spreadsheets
Slides Create and present slide decks
Meet Run video meetings
Mail Manage email in a modern client
Calendar Plan events and manage schedules

Mail Servers, Mailroom and Suite Cloud

Suite does not run or administer a mail server itself. The servers are Stalwart clusters managed by Mailroom. Suite Cloud manages the site as a customer. A Suite site is one tenant of each, and calls each directly:

  • End users read and send mail straight against the cluster over JMAP, with an app password minted for each account. Suite only needs the cluster's URL for that.
  • Every admin change (domains, accounts, passwords, groups, mailing lists) goes to Mailroom. Mailroom checks that the site owns what it is touching and pushes the change to the cluster. The site never holds cluster admin credentials.
  • The site's plan, status and emails are Suite Cloud's. Only Suite Cloud can suspend the whole site. A suspension in Mailroom stops only the mail administration.

You give a site three values: suite_cloud_url, suite_cloud_tenant and suite_cloud_secret. Set them in Suite Settings. A value left blank there comes from the top-level key of the same name in site_config.json. get_suite_cloud_config in suite/suite_core/utils.py reads them.

Suite Cloud supplies the rest: Mailroom's URL, the site's tenant id and secret at Mailroom, and the JMAP URL. The site saves the first three in Suite Settings, with the secret encrypted. It saves the JMAP URL as server_url in Mail Settings. verify_ssl is also in Mail Settings.

  • When you save new credentials, the site checks them with Suite Cloud and reads the mail settings. Refused credentials are not saved. If Suite Cloud cannot answer, the credentials are saved and the old mail settings are cleared, because they can belong to another tenant.
  • Validate Suite Cloud Credentials in Suite Settings checks the saved credentials and reads the mail settings again. Suite Cloud calls it after it sets up a site or changes one of its secrets.
  • When the site has no mail settings, or Mailroom refuses its secret, the site asks Suite Cloud and uses the answer at once. A background job then saves it. The job replaces the JMAP URL only when none is set. If the answer does not help, the site asks again after a minute.

Update Suite Cloud to a release that has tenant.get_mail_settings before you update Suite. With an older one, users can still read and send mail, but the mail admin features do not work.

The two halves stand apart. Mail and Calendar need only the JMAP server: a site with server_url and no Suite Cloud is fully usable by anyone who has an account. The Admin Dashboard, account creation and signup need Suite Cloud and Mailroom: without Suite Cloud the dashboard is hidden from admins, its routes lead back to the mailbox, and every endpoint in suite/mail/api/admin.py refuses.

Suite's own emails, such as invites, password resets and share notices, go through suite/suite_core/suite_email.py. On a site connected to Suite Cloud, Suite names the email and its parameters, and Suite Cloud sends it from its own template. A site without Suite Cloud renders it from the templates in suite/templates/emails/ and sends it through its own Email Account. Any other mail of the site, such as Frappe's own notifications, always goes through an Email Account the site owner sets up.

The two clients are in suite/mail/suite_cloud/ and suite/mail/mailroom/, and share suite/mail/tenant_client.py. The rest of Mail uses the mail directory in suite/mail/directory.py. The Admin Dashboard's endpoints are in suite/mail/api/admin.py.

Sites that deployed servers through Suite itself, before Suite Cloud did that, keep those tables. Suite Cloud and Mailroom cannot manage that data. Do not install them on such a site, because they would reuse some of its tables.

Under the Hood

  • Frappe Framework: Provides the database, authentication, permissions, realtime events, and APIs shared by Drive, Writer, Sheets, Slides, Meet, Mail, and Calendar.
  • Frappe UI: Power the interface and reusable components across every Suite product.
  • Yjs: Keeps documents in Writer and spreadsheets in Sheets synchronized during realtime collaboration.
  • mediasoup: Powers Meet's WebRTC selective forwarding unit for group video calls.

Migrating from the Standalone Apps

Frappe Suite ships the same modules and DocTypes as the standalone apps, so it cannot be installed on a site that still has any of them — installation aborts with a message listing the conflicting apps. To move an existing site to Suite:

  1. Take a backup of the site, including files.
  2. Uninstall all the standalone apps (Drive, Writer, Sheets, Slides, Meet, Mail, Calendar). Uninstalling deletes each app's data on the site, which is why the backup comes first.
  3. Install Frappe Suite.
  4. Restore the backup. Suite uses the same tables, so the restored data is picked up as-is.

The same steps apply to sites hosted on Frappe Cloud: download a backup from the site dashboard (Backups), remove the standalone apps from the Apps tab, install Frappe Suite, and then restore the backup from Backups → Restore.

Migrating with bench

# 1. Back up the site along with its public and private files
bench --site yoursite backup --with-files

# 2. Uninstall every standalone app present on the site
#    (run only the lines for the apps your site actually has)
bench --site yoursite uninstall-app drive
bench --site yoursite uninstall-app writer
bench --site yoursite uninstall-app sheets
bench --site yoursite uninstall-app slides
bench --site yoursite uninstall-app meet
bench --site yoursite uninstall-app mail
bench --site yoursite uninstall-app calendar_app

# 3. Install Frappe Suite
bench get-app https://github.com/frappe/suite
bench --site yoursite install-app suite

# 4. Restore the backup taken in step 1
bench --site yoursite restore sites/yoursite/private/backups/<timestamp>-database.sql.gz \
	--with-public-files sites/yoursite/private/backups/<timestamp>-files.tar \
	--with-private-files sites/yoursite/private/backups/<timestamp>-private-files.tar

The restored database still lists the standalone apps as installed, so point the site at Suite and migrate:

bench --site yoursite remove-from-installed-apps drive
bench --site yoursite remove-from-installed-apps writer
bench --site yoursite remove-from-installed-apps sheets
bench --site yoursite remove-from-installed-apps slides
bench --site yoursite remove-from-installed-apps meet
bench --site yoursite remove-from-installed-apps mail
bench --site yoursite remove-from-installed-apps calendar_app
bench --site yoursite install-app suite
bench --site yoursite migrate

Development Setup

Install Bench and create a Frappe site by following the Frappe Framework installation guide.

From your bench directory, get and install Suite:

bench get-app https://github.com/frappe/suite
bench new-site suite.localhost --install-app suite
bench start

In a separate terminal, install frontend dependencies and start the development server:

cd apps/suite
pnpm install
pnpm dev

To create a production build instead:

bench build --app suite

Meet SFU

Meet requires a separate mediasoup SFU server for video calls. Follow the Frappe Meet SFU setup guide to configure and run it.

Code coverage

From the repo root, run pnpm test:ci to test both Vitest projects and write combined coverage to frontend/test-results/coverage/ (Cobertura XML, LCOV and JSON summary), plus frontend/test-results/junit.xml. The exact legacy failure manifest is still enforced. Coverage includes unexecuted source files, excludes test fixtures and declarations, and has no percentage threshold. CI fails if any eligible production JS, TS or Vue source is missing from the report. pnpm test:coverage-reporting also checks that representative untested TS and Vue files retain executable lines at zero coverage through the real package and icon resolvers.

From the bench directory, run COVERAGE_RCFILE="$PWD/apps/suite/.coveragerc" bench --site <test-site> run-tests --app suite --coverage. Frappe writes sites/coverage.xml; Suite's config enables branch coverage and excludes test code from the report. CI uploads both reports and the trusted coverage-report.yml workflow updates the PR description. Missing reports remain unavailable; deltas use the latest successful scheduled run on the base branch. Exclusion changes also change the denominator, so old baseline percentages may not be comparable until a new baseline is collected.

Releasing

The version lives in suite/__init__.py. To release, open a pull request that only raises __version__. When it merges into develop, the release.yml workflow tags that commit v<version> and publishes a GitHub release. After the first release, the notes list the pull requests since the previous one. Before 1.0.0 the last number is a plain counter: 0.1.0, 0.1.1, 0.1.2.

Contributing

Contributions are welcome. Please open an issue to report a bug or propose a change before submitting a pull request.

License

Frappe Suite is licensed under the GNU Affero General Public License v3.


About

[WIP] Original, intentionally designed productivity tools

Resources

Stars

131 stars

Watchers

7 watching

Forks

Releases

Contributors

Languages