Intuitive S-expressions editing for Clojure(Script).
- Auto Layout: expressions in blocks and inline-blocks, styled with CSS
- Tree Editing: intuitive way of structural editing as nested expressions
- Call Stack Navigation: more fine-grained functions navigation
- Collaboration: changes real-time synced among multiple clients via WebSockets
One function/definition in a screen,
Command d to open called function at next tab,
Command i to switch:
Based on DOM/CSS, easy for another theme:
Command p to search and jump inspired by Sublime Text :
Browse namespaces and functions/variables:
Install CLI and start a local WebSocket server, it uses
calcit.cirru as a snapshot file:
npm i -g calcit-editor calcit-editor
UI of the editor is a webapp on http://calcit-editor.cirru.org/?port=6001
You may try with my project templates:
or even clone current repo for trying out.
CLI variables for compiling code directly from
The web UI takes several query options:
port, defaults to
host, defaults to
localhost, connects via WebSocket
By default, ClojureScript code is emitted in
src/ by pressing
When server is stopped with
calcit.cirru is also updated.
There are also several options in
:configs field in
port, defaults to
output, defaults to
extension, defaults to
Editor UI is decoupled with WebSocket server, so it's okay to connect remote server from multiple pages with all expressions synced in real-time.
Also there's a local version of web editor to enable:
ui=local calcit-editor # serving UI at http://localhost:6101
:compact-output? true is specified in
calcit.cirru, "Compact Mode" is activated. Clojure(Script) will no longer be emitted,
instead two files will be emitted:
compact.cirrucontains a compact version of data tree of the program.
.compact-inc.cirrucontains diff information from latest modification of per definition.
It's not useful for Clojure but would can be used for other experiments.