{"id":20569523,"url":"https://github.com/xafizoff/compojurescript","last_synced_at":"2026-05-26T20:31:54.296Z","repository":{"id":62432122,"uuid":"128662237","full_name":"xafizoff/compojurescript","owner":"xafizoff","description":"Compojure for ClojureScript","archived":false,"fork":false,"pushed_at":"2018-04-13T20:57:46.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-10T14:30:44.303Z","etag":null,"topics":["clojure","clojurescript","compojure"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xafizoff.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-08T16:49:45.000Z","updated_at":"2018-11-11T15:23:15.000Z","dependencies_parsed_at":"2022-11-01T20:47:15.761Z","dependency_job_id":null,"html_url":"https://github.com/xafizoff/compojurescript","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xafizoff/compojurescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xafizoff%2Fcompojurescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xafizoff%2Fcompojurescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xafizoff%2Fcompojurescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xafizoff%2Fcompojurescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xafizoff","download_url":"https://codeload.github.com/xafizoff/compojurescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xafizoff%2Fcompojurescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33538659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["clojure","clojurescript","compojure"],"created_at":"2024-11-16T05:08:33.807Z","updated_at":"2026-05-26T20:31:54.276Z","avatar_url":"https://github.com/xafizoff.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CompojureScript\n\n[Compojure] for ClojureScript. Works both in the node.js environment and in browsers\n\n[![Build Status](https://travis-ci.org/xafizoff/compojurescript.svg?branch=master)](https://travis-ci.org/xafizoff/compojurescript)\n[![Clojars Project](https://img.shields.io/clojars/v/compojurescript.svg)](https://clojars.org/compojurescript)\n\n## Usage\n\n```clojure\n[compojurescript \"0.1.1\"]\n\n```\n### Node.js with [macchiato-framework]\n```clojure\n(ns hello-world.core\n  (:require [compojurescript.core :refer-macros [defroutes GET]]\n            [macchiato.util.response :refer [not-found]]))\n\n(defroutes app\n  (GET \"/\" [] \"\u003ch1\u003eHello World\u003c/h1\u003e\")\n  (not-found \"\u003ch1\u003ePage not found\u003c/h1\u003e\"))\n```\n\n### SPA with [accountant]\n```clojure\n(defroutes app-routes\n  (ANY \"/\" [] {:page :home})\n  (ANY \"/ext\" [] nil) ;external link, not handled by accountant\n  {:page :not-found})\n\n(defn navigate! [path]\n  (if-let [{:keys [page params]} (app-routes {:uri path})]\n    ; draw your page\n    ))\n\n(accountant/configure-navigation! {:nav-handler  navigate!\n                                   :path-exists? #(app-routes {:uri %})})\n```\n\nSee [Compojure] docs for advanced usage\n\n## License\n\nCopyright © 2018 Marat Khafizov, James Reeves\n\nDistributed under the Eclipse Public License version 1.0\n\n[Compojure]: https://github.com/weavejester/compojure\n[macchiato-framework]: https://github.com/macchiato-framework\n[accountant]: https://github.com/venantius/accountant\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxafizoff%2Fcompojurescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxafizoff%2Fcompojurescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxafizoff%2Fcompojurescript/lists"}