{"id":37021091,"url":"https://github.com/navikt/fp-nare","last_synced_at":"2026-02-02T11:26:03.328Z","repository":{"id":36691690,"uuid":"173725187","full_name":"navikt/fp-nare","owner":"navikt","description":"NARE - Not A Rule Engine","archived":false,"fork":false,"pushed_at":"2026-01-07T13:54:40.000Z","size":702,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2026-01-14T03:35:36.853Z","etag":null,"topics":["backend","bibliotek","familie","felles","foreldrepenger","nare"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/navikt.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-04T10:38:05.000Z","updated_at":"2026-01-07T13:54:43.000Z","dependencies_parsed_at":"2024-05-27T22:37:36.366Z","dependency_job_id":"34246b66-ada3-48a7-99f2-1787b12c2d29","html_url":"https://github.com/navikt/fp-nare","commit_stats":null,"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/navikt/fp-nare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navikt%2Ffp-nare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navikt%2Ffp-nare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navikt%2Ffp-nare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navikt%2Ffp-nare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navikt","download_url":"https://codeload.github.com/navikt/fp-nare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navikt%2Ffp-nare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29011011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: 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":["backend","bibliotek","familie","felles","foreldrepenger","nare"],"created_at":"2026-01-14T02:28:35.622Z","updated_at":"2026-02-02T11:26:03.310Z","avatar_url":"https://github.com/navikt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Bygg og deploy](https://github.com/navikt/fp-nare/actions/workflows/build.yml/badge.svg)](https://github.com/navikt/fp-nare/actions/workflows/build.yml)\n\n[![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=navikt_fp-nare\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=navikt_fp-nare)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=navikt_fp-nare\u0026metric=ncloc)](https://sonarcloud.io/summary/new_code?id=navikt_fp-nare)\n[![SonarCloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=navikt_fp-nare\u0026metric=coverage)](https://sonarcloud.io/component_measures/metric/coverage/list?id=navikt_fp-nare)\n[![SonarCloud Bugs](https://sonarcloud.io/api/project_badges/measure?project=navikt_fp-nare\u0026metric=bugs)](https://sonarcloud.io/component_measures/metric/reliability_rating/list?id=navikt_fp-nare)\n[![SonarCloud Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=navikt_fp-nare\u0026metric=vulnerabilities)](https://sonarcloud.io/component_measures/metric/security_rating/list?id=navikt_fp-nare)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=navikt_fp-nare\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=navikt_fp-nare)\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/navikt/fp-nare)\n![GitHub](https://img.shields.io/github/license/navikt/fp-nare)\n# NARE - Not A Rule Engine\n\nNARE a variation of the Specification pattern, as described by Eric Evans \u0026 Martin Fowler here: https://martinfowler.com/apsupp/spec.pdf, adapter to handled more complex cases.  \nMore generally, it is an implementation of an [Expression Tree](https://en.wikipedia.org/wiki/Binary_expression_tree), but one which can support both unary, binary and ternary nodes expressions. \n\n# Purpose\nTo model decision trees so they can be visualised, documented, and traced (inputs, outputs, evaluation), for legal and regulatory review. Both the specification of a rule as well as its execution can be documented.\n\n# Features\n* Unary expressions:\n  - Sequence: Sequence of expressions, result = result from last evaluation.\n  - Foreach:  \n  - Not\n  - Node:  (node computation supplied by implementor) Allows for arbitrary evaluations to be included.\n* Binary expressions:\n  - And\n  - Or\n* Ternary expressions:\n* - Computational If/Else:  Simple if/then or if/then/else. Returns result from .\n* N-ary expressions:\n  - Conditional If/Or/Else:  Allows for evaluating only specific subtrees based on a provided condition.\n\n# Rule documentation\nThe rule specification may be output to Asciidoc using the supplied Javadoc Doclet.  This will output names of parameters and rules to a single asciidoc document, while the trees will be output to a json document as a set of nodes and edges.  The output format in json is the same for both the specification and evaluation trees (except a few evaluation specific parameters), making both suitable for long term storage.\n\nThe json output for a graph is fairly easy to graph out using any appropriate graphing library (Vue, D3, etc.) that supports a node/edge layout.\n\n# Examples\nSee tests for examples \n* Usage example (running a rule): [Rule evaluation example (modrekvote)](https://github.com/navikt/fp-nare/blob/master/core/src/test/java/no/nav/fpsak/nare/specification/modrekvote/ModrekvoteTest.java)\n* Specification example : [Rule specification example (modrekvote)](https://github.com/navikt/fp-nare/blob/master/core/src/test/java/no/nav/fpsak/nare/specification/modrekvote/Modrekvote.java)\n* Generating documentation example (here using a unit test, can be adapted to whatever): [Doclet example](https://github.com/navikt/fp-nare/blob/master/core/src/test/java/no/nav/fpsak/nare/doc/doclet/RegelmodellDocletTest.java)\n# Contact \n* **External**: Raise an issue here on GitHub\n* **Internal**: Slack channel #teamforeldrepenger.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavikt%2Ffp-nare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavikt%2Ffp-nare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavikt%2Ffp-nare/lists"}