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 them | Trees: types and items |
| Write a Template, change its types, copy it or delete it | Keep a Template |
| Add real members to a tree of my own | Make a Construction |
| See what changed, or read an earlier state | Revisions and history |
| Get a document, folders or a diagram out of a Template | Read a Tree another way |
| Check that every Template keeps its rules, in a build | Check the Templates |
| Work in a browser | The browser app |
| Script it | Command reference |
| Use it from PHP | From PHP |
| Install it, or find its files | Installation and Where your data lives |
| Look up a word, or a message | Glossary and When something goes wrong |
New here? Do the quick start first. It takes about ten minutes.