Documentation

Everything Barntree does, task by task.

Barntree keeps a tree of things that follows the kinds of thing it may hold. You say what types of thing a subject has, and Barntree builds the tree from them and refuses any edit that would break the rules. A Tree can be about anything: the layers of a system, the rooms of a house, the modules of a course or the courses of a dinner. It is kept as plain JSON, so any language can read it.

The idea in five words #

  • Tree. The types of one subject, and the tree of items that follows them. Every example in this documentation is an allotment.
  • Template. A Tree kept in your project, to make Constructions from. It is the rules, and its skeleton.
  • Construction. A named tree of real members, made from a Template. It keeps the revision it started from.
  • Revision. One saved state of a Template or a Construction. None is ever changed.
  • Projection. A Tree shown another way: as text, a document, folders or a diagram.

Find what you need #

I want to…Go to
Understand types, leaves, lists and maps, and the tree that follows themTrees: types and items
Write a Template, change its types, copy it or delete itKeep a Template
Add real members to a tree of my ownMake a Construction
See what changed, or read an earlier stateRevisions and history
Get a document, folders or a diagram out of a TemplateRead a Tree another way
Check that every Template keeps its rules, in a buildCheck the Templates
Work in a browserThe browser app
Script itCommand reference
Use it from PHPFrom PHP
Install it, or find its filesInstallation and Where your data lives
Look up a word, or a messageGlossary and When something goes wrong

New here? Do the quick start first. It takes about ten minutes.

Used in Barn: in a barn, Barntree keeps its records in .barn/barntree/. barntree init makes any project a barn so Barntree can work on its own.