{"id":13508094,"url":"https://github.com/Cirru/calcit-editor","last_synced_at":"2025-03-30T09:33:22.365Z","repository":{"id":22746065,"uuid":"96208642","full_name":"Cirru/calcit-editor","owner":"Cirru","description":"Intuitive S-expressions editing for Clojure(Script).","archived":false,"fork":false,"pushed_at":"2024-10-31T04:26:51.000Z","size":7965,"stargazers_count":226,"open_issues_count":1,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-17T20:21:37.730Z","etag":null,"topics":["cirru","clojurescript","respo","syntax-tree"],"latest_commit_sha":null,"homepage":"http://calcit-editor.cirru.org/","language":"Cirru","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cirru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-04T10:59:50.000Z","updated_at":"2025-01-09T19:57:42.000Z","dependencies_parsed_at":"2023-02-18T08:31:37.888Z","dependency_job_id":"64d67466-b13f-4b48-9d88-ed16e1d66575","html_url":"https://github.com/Cirru/calcit-editor","commit_stats":{"total_commits":511,"total_committers":8,"mean_commits":63.875,"dds":"0.16634050880626228","last_synced_commit":"458fb236b07a0486b6aab5376b1e41a3f441bea8"},"previous_names":[],"tags_count":132,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cirru%2Fcalcit-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cirru%2Fcalcit-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cirru%2Fcalcit-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cirru%2Fcalcit-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cirru","download_url":"https://codeload.github.com/Cirru/calcit-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cirru","clojurescript","respo","syntax-tree"],"created_at":"2024-08-01T02:00:47.873Z","updated_at":"2025-03-30T09:33:21.814Z","avatar_url":"https://github.com/Cirru.png","language":"Cirru","funding_links":[],"categories":["Clojure","Cirru"],"sub_categories":[],"readme":"\nCalcit Editor\n------\n\n\u003e Intuitive S-expressions editing for Clojure(Script).\n\n* **Auto Layout**: expressions in blocks and inline-blocks, styled with CSS\n* **Tree Editing**: intuitive way of structural editing as nested expressions\n* **Call Stack Navigation**: more fine-grained functions navigation\n* **Collaboration**: changes real-time synced among multiple clients via WebSockets\n\nOne function/definition in a screen, `Command d` to open called function at next tab, `Command j` `Command k` `Command i` to switch:\n\n![Expression editor](https://pbs.twimg.com/media/ES6_JjPU4AEJ7zt?format=png\u0026name=large)\n\nBased on DOM/CSS, easy for another theme:\n\n![Styling](https://pbs.twimg.com/media/ES6_PiQU4AM0ceN?format=png\u0026name=large)\n\n`Command p` to search and jump inspired by Sublime Text :\n\n![Search panel](https://pbs.twimg.com/media/ES68XGoUwAAzudc?format=png\u0026name=large)\n\nBrowse namespaces and functions/variables:\n\n![Definitions browser](https://pbs.twimg.com/media/ES68ScLUEAAiW3Z?format=png\u0026name=large)\n\n### Usages\n\n![npm CLI of calcit-editor](https://img.shields.io/npm/v/calcit-editor.svg)\n\nInstall CLI and start a local WebSocket server, it uses `calcit.cirru` as a snapshot file:\n\n```bash\nnpm i -g calcit-editor\ncalcit-editor\n```\n\nUI of the editor is a webapp on http://calcit-editor.cirru.org/?port=6001\n\nYou may try with my project templates:\n\n* simple virtual DOM playground [calcit-workflow](https://github.com/mvc-works/calcit-workflow)\n* a toy Node.js script [calcit-nodejs-workflow](https://github.com/mvc-works/calcit-nodejs-workflow)\n\nor even clone current repo for trying out.\n\nDon't forget to check out [keyboard shortcuts](https://github.com/Cirru/calcit-editor/wiki/Keyboard-Shortcuts). My old [introduction videos](https://www.youtube.com/watch?v=u5Eb_6KYGsA\u0026t) can be found on YouTube.\n\n### Options\n\nCLI variables for compiling code directly from `calcit.cirru`:\n\n```bash\nop=compile calcit-editor\n```\n\nThe web UI takes several query options:\n\n```\nhttp://calcit-editor.cirru.org/?host=localhost\u0026port=6001\n```\n\n* `port`, defaults to `6001`\n* `host`, defaults to `localhost`, connects via WebSocket\n\nBy default, ClojureScript code is emitted in `src/` by pressing `Command s`.\nWhen server is stopped with `Control c`, `calcit.cirru` is also updated.\n\nThere are also several options in `:configs` field in `calcit.cirru`:\n\n* `port`, defaults to `6001`\n* `output`, defaults to `src/`\n* `extension`, defaults to `.cljs`\n\nEditor UI is decoupled with WebSocket server, so it's okay to connect remote server from multiple pages with all expressions synced in real-time.\n\nAlso there's a local version of web editor to enable:\n\n```bash\nui=local calcit-editor\n# serving UI at http://localhost:6101\n```\n\n### Compact output\n\n\u003e It's now also splitted into https://github.com/calcit-lang/editor .\n\n```bash\ncompact=true caclcit-editor\n```\n\nWhen `:compact-output? true` is specified in `calcit.cirru`, \"Compact Mode\" is activated. Clojure(Script) will no longer be emitted,\ninstead two files will be emitted:\n\n* `compact.cirru` contains a compact version of data tree of the program.\n* `.compact-inc.cirru` contains diff information from latest modification of per definition.\n\nIt's not useful for Clojure but would can be used for other experiments in [calcit-runner](https://github.com/Cirru/calcit-runner.rs).\n\n### Workflow\n\nBased on https://github.com/Cumulo/cumulo-workflow\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCirru%2Fcalcit-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCirru%2Fcalcit-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCirru%2Fcalcit-editor/lists"}