Skip to content
Back to skills

Frappe Ui

ASecurity

Frappe Desk UI - Workspaces, Number Cards, Dashboard Charts, custom Pages, dialogs, list/report view settings, and Vue/frappe-ui frontends. Use when building desk screens, dashboards or custom pages rather than form logic.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgovueapifrontend

Works with

  • api

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add irfanzahoor/frappe_core_skills --skill frappe-ui --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frappe Ui?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Frappe Ui
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/irfanzahoor-frappe-ui/badge)](https://www.skillsdirectory.com/skills/irfanzahoor-frappe-ui)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: frappe-ui
description: Frappe Desk UI - Workspaces, Number Cards, Dashboard Charts, custom Pages, dialogs, list/report view settings, and Vue/frappe-ui frontends. Use when building desk screens, dashboards or custom pages rather than form logic.
---

# Frappe Desk UI

## Workspaces & dashboards
- Create in the UI, set `module`, and export with the app: with developer_mode on, workspaces are saved to the module's `workspace/` folder.
- Public workspaces **must** have `module`. Without it every desk user sees them.
- Never set `for_user` on shipped workspaces (that makes them private).
- Restrict sensitive ones (finance, HR) with Roles on the workspace and on each card/chart.
- When setting `content` JSON in code, also add the matching child rows (shortcuts, links, charts, number_cards).
- Number Card / Dashboard Chart: prefer "Document Type" based ones. For custom ones use
  `method` = a whitelisted function that returns the value/data. Mind permissions.

## Custom Page (`<module>/page/<name>/`)
```js
frappe.pages["my-page"].on_page_load = function (wrapper) {
  const page = frappe.ui.make_app_page({ parent: wrapper, title: __("My Page"), single_column: true });
  page.set_primary_action(__("Refresh"), () => load());
  const field = page.add_field({ fieldname: "company", fieldtype: "Link", options: "Company", change: load });
  function load() { frappe.call("myapp.api.get_data", { company: field.get_value() }).then(r => {/* render */}); }
};
```
On v16 page JS runs as an IIFE, so don't rely on globals.

## Dialogs
```js
const d = new frappe.ui.Dialog({
  title: __("Set Rate"),
  fields: [{ fieldname: "rate", fieldtype: "Currency", label: __("Rate"), reqd: 1 }],
  primary_action_label: __("Apply"),
  primary_action(values) { frm.call("apply_rate", values).then(() => d.hide()); },
});
d.show();
```
Use `frappe.prompt` for one field and `frappe.confirm` for yes/no. Use Frappe field types, not raw HTML inputs.

## Separate SPA (Vue + frappe-ui)
Use for portal-like apps (like Helpdesk/CRM): `<app>/frontend` with Vite and the `frappe-ui` library,
calling `/api/method/...` through `createResource`. Build output goes to `<app>/public/frontend`, with a
www route for the SPA. Use it only when Desk can't do the job.

## Form field layout
- Field order, Section/Column/Tab Breaks and child-table grids are form layout, not just
  code: follow the `frappe-core` skill's `references/field-layout.md` before adding fields.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.