{"id":15437412,"url":"https://github.com/victorb/livingthing","last_synced_at":"2026-06-17T06:32:13.698Z","repository":{"id":148376918,"uuid":"329596614","full_name":"victorb/livingthing","owner":"victorb","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-15T15:31:32.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T04:14:25.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/victorb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-14T11:36:14.000Z","updated_at":"2023-03-04T06:31:32.000Z","dependencies_parsed_at":"2023-04-12T18:32:18.522Z","dependency_job_id":null,"html_url":"https://github.com/victorb/livingthing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorb/livingthing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Flivingthing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Flivingthing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Flivingthing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Flivingthing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorb","download_url":"https://codeload.github.com/victorb/livingthing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorb%2Flivingthing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34437449,"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":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-01T18:56:47.732Z","updated_at":"2026-06-17T06:32:13.681Z","avatar_url":"https://github.com/victorb.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# livingthing\n\nA once-in-a-lifetime REPL. Keep it alive, but do improve it. We're all in the same REPL.\n\nSince the rules and state changes constantly, you're better off looking at\nhttps://livingthing.club to see the latest updates.\n\n### Running livingthing locally\n\nHave leiningen installed. Run `lein repl`. Inside the REPL, execute `(-main)`\n\n## My proposed changes\n\n### Humanize the timestamps\n\n```\n(defn unix-epoch-to-human [t]\n  (java.time.Instant/ofEpochMilli\n    (* 1000 t)))\n```\n\n```\n(def max-size 700)\n```\n\n```\n(defn $command-list-item [{:keys [execution-results\n                                  executed-at from\n                                  cmd from votes]}]\n  [:div\n   [:strong\n    \"From user user \"\n    from\n    \" at \"\n    (unix-epoch-to-human executed-at)]\n   [:div \"Received \" votes \" votes\"]\n   [:pre cmd]\n   [:div \"Output\"]\n   [:pre (str execution-results)]])\n```\n\n```\n(defn $wrapper [req]\n  [:div#wrapper\n   [:h1\n    \"LivingThing.club\"\n    [:span\n     {:style \"color: grey; font-size: 14px;\"}\n     \" aka \\\"Humanity Codes Clojure\\\"\"]]\n   [:h2\n    \"Current server time: \"\n    (unix-epoch-to-human (:current-time @app-state))\n    \" (round \" (:current-round @app-state) \")\"]\n   [:div\n    {:style \"width: 50%; float: left;\"}\n    ($section-header \"How LivingThing works\")\n    [:div\n     {:style \"font-family: serif; max-width: 700px;\"}\n     ($intro-message)]]\n   [:div\n     {:style \"width: 50%; float: right;\"}\n     ($pending-vote-list req)\n     ($submit-command)\n     ($command-list)]])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorb%2Flivingthing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorb%2Flivingthing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorb%2Flivingthing/lists"}