{"id":9503007,"url":"https://github.com/oracle-samples/clara-rules","last_synced_at":"2025-12-12T01:06:46.121Z","repository":{"id":9737326,"uuid":"11697963","full_name":"oracle-samples/clara-rules","owner":"oracle-samples","description":"Forward-chaining rules in Clojure(Script)","archived":false,"fork":false,"pushed_at":"2025-03-28T22:35:29.000Z","size":2450,"stargazers_count":1212,"open_issues_count":88,"forks_count":114,"subscribers_count":57,"default_branch":"main","last_synced_at":"2025-05-14T05:24:03.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.clara-rules.org","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"googlesamples/android-ndk","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-samples.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-07-27T01:17:19.000Z","updated_at":"2025-05-08T16:26:19.000Z","dependencies_parsed_at":"2024-01-08T18:03:38.992Z","dependency_job_id":"b09e9c0e-bc11-4ba7-b150-83d13cd83cba","html_url":"https://github.com/oracle-samples/clara-rules","commit_stats":{"total_commits":507,"total_committers":34,"mean_commits":"14.911764705882353","dds":0.6686390532544378,"last_synced_commit":"e86dcd4f0224d966c1bd82043e79cf59c96136bf"},"previous_names":["rbrush/clara-rules","oracle-samples/clara-rules","cerner/clara-rules"],"tags_count":54,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fclara-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fclara-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fclara-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-samples%2Fclara-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-samples","download_url":"https://codeload.github.com/oracle-samples/clara-rules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254179903,"owners_count":22027884,"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-05-12T13:06:26.661Z","updated_at":"2025-12-12T01:06:41.070Z","avatar_url":"https://github.com/oracle-samples.png","language":"Clojure","readme":"[![Build Status](https://github.com/cerner/clara-rules/actions/workflows/clojure.yml/badge.svg)](https://github.com/cerner/clara-rules/actions/workflows/clojure.yml)\n\n# Project name\n\nclara-rules - it's a forward-chaining rules in Clojure(Script)\n\n## _About_\n\nClara is a forward-chaining rules engine written in Clojure(Script) with Java interoperability. It aims to simplify code with a developer-centric approach to expert systems. See [clara-rules.org](http://www.clara-rules.org) for more.\n\n## _Usage_\n\nHere's a simple example. Complete documentation is at [clara-rules.org](http://www.clara-rules.org/docs/firststeps/).\n\n```clj\n(ns clara.support-example\n  (:require [clara.rules :refer :all]))\n\n(defrecord SupportRequest [client level])\n\n(defrecord ClientRepresentative [name client])\n\n(defrule is-important\n  \"Find important support requests.\"\n  [SupportRequest (= :high level)]\n  =\u003e\n  (println \"High support requested!\"))\n\n(defrule notify-client-rep\n  \"Find the client representative and send a notification of a support request.\"\n  [SupportRequest (= ?client client)]\n  [ClientRepresentative (= ?client client) (= ?name name)] ; Join via the ?client binding.\n  =\u003e\n  (println \"Notify\" ?name \"that\"  ?client \"has a new support request!\"))\n\n;; Run the rules! We can just use Clojure's threading macro to wire things up.\n(-\u003e (mk-session)\n    (insert (-\u003eClientRepresentative \"Alice\" \"Acme\")\n            (-\u003eSupportRequest \"Acme\" :high))\n    (fire-rules))\n\n;;;; Prints this:\n\n;; High support requested!\n;; Notify Alice that Acme has a new support request!\n```\n\n## _Building_\n\nClara is built, tested, and deployed using [Leiningen](http://leiningen.org). \nClojureScript tests are executed via [puppeteer](https://pptr.dev/). \n``` \nnpm install -g puppeteer\nnpx puppeteer browsers install chrome\n```\n\n## _Availability_\n\nClara releases are on [Clojars](https://clojars.org/). Simply add the following to your project:\n\n[![Clojars Project](http://clojars.org/com.cerner/clara-rules/latest-version.svg)](http://clojars.org/com.cerner/clara-rules)\n\n## _Communication_\n\nQuestions can be posted to the [Clara Rules Google Group](https://groups.google.com/forum/?hl=en#!forum/clara-rules) or the [Slack channel](https://clojurians.slack.com/messages/clara/).  \n\n## Contributing\n\nThis project welcomes contributions from the community. Before submitting a pull request, please [review our contribution guide](./CONTRIBUTING.md)\n\n## Security\n\nPlease consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process\n\n## License\n\nCopyright (c) 2018, 2025 Oracle and/or its affiliates.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n\n","funding_links":[],"categories":["Clojure","\u003ca name=\"Clojure\"\u003e\u003c/a\u003eClojure"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-samples%2Fclara-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-samples%2Fclara-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-samples%2Fclara-rules/lists"}