{"id":18084722,"url":"https://github.com/coderofsalvation/jsongraph","last_synced_at":"2026-04-20T06:02:19.570Z","repository":{"id":57285727,"uuid":"45351216","full_name":"coderofsalvation/jsongraph","owner":"coderofsalvation","description":"minimalist dataflow programming with json based on jsonschema references (nodejs/coffeescript)","archived":false,"fork":false,"pushed_at":"2020-05-28T19:09:51.000Z","size":95,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T18:59:52.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2015-11-01T18:00:38.000Z","updated_at":"2020-05-28T19:09:53.000Z","dependencies_parsed_at":"2022-08-24T18:13:48.918Z","dependency_job_id":null,"html_url":"https://github.com/coderofsalvation/jsongraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderofsalvation/jsongraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fjsongraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fjsongraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fjsongraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fjsongraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/jsongraph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fjsongraph/sbom","scorecard":{"id":297601,"data":{"date":"2025-08-11","repo":{"name":"github.com/coderofsalvation/jsongraph","commit":"03906dc65a9e2f8a6c65796062f2fca65e86fcc7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T19:55:40.158Z","repository_id":57285727,"created_at":"2025-08-17T19:55:40.158Z","updated_at":"2025-08-17T19:55:40.158Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32035276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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-31T15:07:54.123Z","updated_at":"2026-04-20T06:02:19.543Z","avatar_url":"https://github.com/coderofsalvation.png","language":"CoffeeScript","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"\" src=\"logo.png\"/\u003e\n\nDont think trees, think jsongraph, think graphmorphic applications.\n\n\u003e NOTE #1: this module is based on [json-ref-lite](https://npmjs.org/packages/json-ref-lite). Use json-ref-lite if you just want to work with plain jsongraphs, without the dataflow runtime below.\n\n\u003e NOTE #2: for server/clients sharing a restgraph see [ohmygraph](https://npmjs.org/packages/ohmygraph)\n\n## Usage \n\n    npm install --save jsongraph\n\nor in the browser (adds 3.3k gzipped)\n\n    \u003cscript type=\"text/javascript\" src=\"jsongraph.min.js\"\u003e\u003c/script\u003e\n\nGraph b\u003c-\u003ea\u003c-c expressed in json using jsonschema pointers:\n\n    jg = require 'jsongraph' \n    json = {\n      \"a\": { \"$ref\": [{\"$ref\":\"/graph/b\"}] },\n      \"b\": { \"$ref\": [{\"$ref\":\"/graph/a\"}] },\n      \"c\": { \"$ref\": [{\"$ref\":\"/graph/a\"}] }\n    }\n\n\u003e NOTE: see javascript version [here](/test/test.js)\n\n# Or on the fly \n\n    jg = require 'jsongraph' \n    jg.opts.verbose = 2\n    graph = jf.init {graph:{}}\n\n    # add nodes\n    a = graph.add \"a\"\n    b = graph.add \"b\"\n    c = graph.add \"c\"\n\n    # link a-\u003eb and c-\u003ea\n    graph.link a,b\n    graph.link \"c\",\"a\"\n\n\u003e NOTE: see javascript version [here](/test/functional.js)\n\n# Lets run the graph!\n\n    graph.run 'c', {foo:\"bar\"}\n\noutput:\n\n    [ b ]\n      ├ input : {\"foo\":\"bar\"}\n      ├ \"$ref\": {\"foo\":\"bar\"}\n    [ a ]\n      ├ input : {\"foo\":\"bar\"}\n      ├ \"$ref\": {\"foo\":\"bar\"}\n \n\u003e NOTE: see javascript version [here](/test/test.js)\n\n# Feature: register plugins \u0026 process data\n\nYou can process data, and do graph- or flowbased programming like so:\n\n    json =\n      graph:\n        a: { type: \"foo\", \"$ref\": [{\"$ref\": \"#/graph/b\"}] }\n        b: { \"$ref\": [{\"$ref\": \"#/graph/a\"}] }\n\n    jg.register 'foo', (me,data,next) -\u003e\n      data.foo = true;\n      next me,data\n\noutput:\n\n    [ b ]\n      ├ input : {}\n      ├ \"$ref\": {\"b\":true}\n    [ a ]\n      ├ input : {\"b\":true}\n      ├ \"$ref\": {\"b\":true,\"foo\":true}\n\nNow when `data.foo` is set, whenever a node with type `foo` is executed.\n\n# Feature: bind custom actions to nodes \n\nWhen the graph is executed, you can easily walk the graph and pause/do stuff:\n\n    # bind custom functions\n    process = \n      b: (me,data,next) -\u003e\n        data.b = true\n        next me, data \n\n    graph.run 'b', {}, (me,data,next) -\u003e \n      if process[me.name]?                 # every node\n        process[me.name](me,data,next)     # will call\n      else next me,data                    # this function\n\n# Feature: global filters\n\nFilters are useful to easily process data on a global level.\nThis is especially handy for debugging and safety purposes.\n\n    path = []\n    jg.filters.global.rememberpath = (node,data) -\u003e\n      path.push node.name\n    graph.run 'b'\n    console.log path.join '-\u003e'\n\noutput:\n\n    b-\u003ea\n\n# Graph Expressions\n\n(Re)evaluate data into your graph before calling `run()`:\n\n    json =\n      graph:\n        a: { value: \"{book.category[0].text}\" }\n        b:\n          value: \"{foo}\"\n          value_int: {\"$ref\":\"#/data/book/code\"}\n          value_str: {\"$ref\":\"#/data/book/category[0].text\"}\n\n    data = \n      book:{ code: 1, category: [{text: \"fairytales stories\"}] }\n      foo: () -\u003e ++@.book.code\n\n    graph.evaluate data, {parsers:[\"expr\",\"ref\"]}\n    graph.dump()\n\noutput:\n\n    {\n      \"graph\": {\n        \"a\": { \"value\": \"fairytales stories\" },\n        \"b\": { \"value\": \"2\", \"value_int\": 1, \"value_str\": \"fairytales stories\" }\n      }\n    }\n\nInstead of evaluating the whole graph, you can also just evaluate a single node (variable):\n\n    graph.set 'a', graph.evaluate( data, {graph:graph.get('a')} )\n\n\u003e See the [javascript](/test/expressions.js) or [coffeescript](/test/expressions.coffee) here\n\n# Notes \n\n* increase the `jg.opts.verbose` value for more verbose console.log \"$ref\"\n* `jg.opts.maxrecurse` is set to '1' by default to prevent infinite recursion. \nYou can set this to another value, but you'll need to prepare your process-functions to keep track of this instead.\n* overriding the `jg.opts.halt` function allows you to implement your own node-halting flow\n\n# Philosophy\n\n* everything, including life is a unidirected graph\n* peanuts are nice\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fjsongraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fjsongraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fjsongraph/lists"}