Skip to content

Five minutes with Facet

This tutorial assumes you have installed the VS Code extension. It has two parts: a look at the demo workspace, then a small plan of your own.

The demo is a small invented project: a plot booking app for a community garden, with a plan, a board, requirements, routines and a mindmap. Its dates are moved so that the plan is happening this week.

  1. Run Facet: Open Demo from the Command Palette (Ctrl+Shift+P).
  2. Pick an empty folder. If the folder is not empty, Facet writes the demo into a facet-demo folder inside it.
  3. Facet opens the folder with its README.md, which is a guided tour, and the Overview of the whole workspace.

From a terminal, facet demo ~/facet-demo writes the same files. Open that folder in VS Code.

The Facet icon in the Activity Bar opens the side bar. It lists the demo’s folders and files with their progress, open tasks and problems. Click an entry to show it in the Facet tab; click “Open File” to open its text.

Try these, in any order:

  • garden-app/plan.md, Gantt. Pick Gantt in the view switcher at the top of the Facet tab. Drag a bar to move a task, or drag its right edge to make it longer. Then open the file: the dates changed in the text.
  • garden-app folder, Kanban. The project has its own columns. Drag a card to another column and watch its status:: change.
  • garden-app/requirements.md, Trace. Drag a task onto a requirement to record that the task covers it.
  • Facet: Today. Run it from the Command Palette. The Agenda lists what is overdue, due today and coming up. Tick a routine and its next date moves.
  • ideas.md, Mindmap. Drag a branch onto another one, or hover a node and use (+) to add an idea.

Click any node to select it. The details pane beside the view shows its properties, computed dates and problems, and lets you change them.

Now make a plan from scratch: a small bake sale.

Make a new folder, for example bake-sale, and put an empty .facet file at its root. This opts the folder in. Open the folder in VS Code.

Create plan.md with this content:

# Bake sale
## Prepare
- [ ] Book the hall [id:: hall] [start:: 2027-05-03] [duration:: 2 days]
- [ ] Ask for cakes [id:: cakes] [after:: !hall] [duration:: 1 week]
- [ ] Print flyers [after:: !hall] [duration:: 3 days]
## The day
- Sale day [after:: !cakes] [due:: 2027-05-20]

What this says:

  • Headings group the work. Each - [ ] item is an open task.
  • start:: and duration:: give “Book the hall” its dates.
  • after:: !hall makes a task start when the task with id:: hall ends.
  • “Sale day” has no checkbox and a due:: but no duration: it is a milestone. It sits at the end of “Ask for cakes”, and due:: is its deadline.

The format is described in Nodes and properties, Tasks and Dates and scheduling.

Click the Facet button in the editor title bar, or run Facet: Open View to the Side. The Facet tab opens beside the editor and shows plan.md.

  • Pick Gantt. “Book the hall” takes May 3 and 4. “Ask for cakes” and “Print flyers” start on May 5. The sale day diamond sits on May 12, well before its deadline. The chain that sets the end date is the critical path, and it is highlighted.
  • Pick Tree. The same nodes, as an outline with progress bars.

Keep plan.md open in the editor next to the Facet tab, so you can watch the text change.

  1. Move a bar. In the Gantt, drag “Print flyers” two days to the right. Facet adds a start date to the line:

    - [ ] Print flyers [after:: !hall] [duration:: 3 days] [start:: 2027-05-07]

    A written start:: wins over after::, so the task now stays where you put it.

  2. Tick a task. In the Tree, click the checkbox of “Book the hall”. The line becomes - [x] Book the hall ….

  3. Rename. In the Tree, double-click “Ask for cakes”, type “Collect cakes” and press Enter. Only the title changes; the properties stay.

  4. Add a task. Pick Tasks, click “+ Add task”, type “Buy paper plates” and press Enter. A new - [ ] Buy paper plates line appears in the section shown in the composer.

  5. Set an owner. Click the new task to select it. In the details pane, under Properties, type owner in the key field and @sam in the value field, then press Enter. Facet writes [owner:: @sam] on the line.

Each edit is a normal change to the file: Ctrl+Z in the text editor undoes it, and git shows it in a diff. You can also edit the text by hand at any time; the views follow.