Syntax Tree Plus is a web-based application for creating, editing, and visualizing syntactic tree structures. It features intuitive keyboard navigation, node editing, and clipboard operations (cut/copy/paste), all rendered interactively with SVG.
- SVG Tree Visualization: Tree rendering with node selection highlighting.
- Keyboard Navigation: Use arrow keys to move between parent, child, and sibling nodes.
- Editing:
- Press 'n' to add a child node.
- Press 'e' to edit a node label (via prompt).
- Press 'Delete', 'Backspace', or 'd' to delete a node (children are reattached to parent).
- Press 'r' to reverse the order of siblings.
- Clipboard Operations:
- 'x': Cut node and subtree
- 'c': Copy node and subtree
- 'v': Paste (replace selected node with clipboard subtree)
- Mouse Support: Click nodes to select.
If you haven't already, install pnpm
Install dependencies
pnpm install
pnpm run build
# or
make build
pnpm run start
# or
make start
Then open http://localhost:3000 (or the port shown in your terminal) in your browser.
- The tree is rendered using SVG