{"id":16095921,"url":"https://github.com/joakin/cljs-node-repl","last_synced_at":"2025-03-18T07:30:18.658Z","repository":{"id":13550182,"uuid":"16242199","full_name":"joakin/cljs-node-repl","owner":"joakin","description":"A sample project for using cljs with node in lighttable","archived":false,"fork":false,"pushed_at":"2014-02-05T12:26:04.000Z","size":216,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T07:51:51.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joakin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-25T23:07:07.000Z","updated_at":"2017-07-14T07:02:53.000Z","dependencies_parsed_at":"2022-08-30T07:31:17.297Z","dependency_job_id":null,"html_url":"https://github.com/joakin/cljs-node-repl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fcljs-node-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fcljs-node-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fcljs-node-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joakin%2Fcljs-node-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joakin","download_url":"https://codeload.github.com/joakin/cljs-node-repl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910415,"owners_count":20367537,"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":[],"created_at":"2024-10-09T17:09:35.676Z","updated_at":"2025-03-18T07:30:18.267Z","avatar_url":"https://github.com/joakin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"cljs-node-repl\n====================\n\nA sample project for using cljs with node with a repl.\nClone it and mess around with it.\n\n### Requires:\n* Leiningen \u003e 2\n* Node \u003e 0.8\n\n### Compile to js:\n\nOpen a terminal and run `lein cljsbuild auto` or `lein cljsbuild once`\n\n### Run\n\n```sh\nnode cljs_node_lighttable.js\n```\nAnd you should see `Hello world!` in the console\n\n### Status:\n\n##### Vim: OK. See below in the vim section\n\n##### Lighttable: Not working\nWith the last update of cljs-noderepl the repl works with nrepl, but it doesn't work connecting with lighttable (Add connection -\u003e Clojure (external nrepl)).\n\n### Standalone node repl\n\n#### Simple\n\nFollow the [instructions in the cljs-noderepl repo](https://github.com/bodil/cljs-noderepl#leiningen-plugin)\n\n```\n$ lein trampoline noderepl\n```\n\nor\n\n```\nrlwrap -r -m -q '\\\"' -b \"(){}[],^%3@\\\";:'\" lein trampoline noderepl\n```\n\ncljs-node-lighttable $ lein repl\n\n#### Over nrepl\n\nTo get a node repl over nrepl do:\n\n```sh\ncljs-node-lighttable $ lein repl\nnREPL server started on port 60691 on host 127.0.0.1\nREPL-y 0.3.0\nClojure 1.5.1\nuser=\u003e (require '[cljs.repl.node :as node])\nnil\nuser=\u003e (node/run-node-nrepl)\nType `:cljs/quit` to stop the ClojureScript REPL\nnil\ncljs.user=\u003e (.log js/console \"Hi from cljs\")\nHi from cljs\nnil\ncljs.user=\u003e\n```\n\n### Vim\n\nInstall [vim-fireplace](https://github.com/tpope/vim-fireplace)\n\nThen start the repl and require the node repl:\n\n```sh\ncljs-node-lighttable $ lein repl\nnREPL server started on port 60691 on host 127.0.0.1\nREPL-y 0.3.0\nClojure 1.5.1\nuser=\u003e (require '[cljs.repl.node :as node])\nnil\n```\n\nThen open vim in the clojurescript project, and do:\n\n```\n:Piggieback (cljs.repl.node/repl-env)\n```\n\nIt will take a bit to connect, when vim is responsive again go\nover some of the examples in `core.cljs` and eval the expr using `cpp`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fcljs-node-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakin%2Fcljs-node-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakin%2Fcljs-node-repl/lists"}