{"id":20902609,"url":"https://github.com/repetere/jsonm","last_synced_at":"2026-06-22T07:00:41.156Z","repository":{"id":38172669,"uuid":"253382107","full_name":"repetere/jsonm","owner":"repetere","description":"Construct AI \u0026 ML models with JSON using Tensorflow \u0026 TypeScript","archived":false,"fork":false,"pushed_at":"2024-09-10T01:08:10.000Z","size":21185,"stargazers_count":5,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T18:51:32.106Z","etag":null,"topics":["forecast","json","modelling","tensorflow","tensorflowjs"],"latest_commit_sha":null,"homepage":"https://repetere.github.io/jsonm/","language":"TypeScript","has_issues":true,"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/repetere.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-06T03:05:43.000Z","updated_at":"2024-06-18T21:17:08.000Z","dependencies_parsed_at":"2023-07-18T02:25:46.350Z","dependency_job_id":"7aec5b25-97b5-4452-9bd3-624e942e0429","html_url":"https://github.com/repetere/jsonm","commit_stats":{"total_commits":373,"total_committers":5,"mean_commits":74.6,"dds":"0.30563002680965146","last_synced_commit":"2f0f27963960e6f57a4a86025732bce2a73d2c9f"},"previous_names":["repetere/modelx"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/repetere/jsonm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/repetere","download_url":"https://codeload.github.com/repetere/jsonm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repetere%2Fjsonm/sbom","scorecard":{"id":771325,"data":{"date":"2025-08-11","repo":{"name":"github.com/repetere/jsonm","commit":"5ad9bd1158bf44efc9c9393ca064f402cd6d09f1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/auto-merge-dependabot.yml:73","Warn: no topLevel permission defined: .github/workflows/auto-merge-dependabot.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1"],"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":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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 'main'"],"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"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/auto-merge-dependabot.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/auto-merge-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/auto-merge-dependabot.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/auto-merge-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/auto-merge-dependabot.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/auto-merge-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-merge-dependabot.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/auto-merge-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-merge-dependabot.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/auto-merge-dependabot.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-merge-dependabot.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/auto-merge-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/repetere/jsonm/release.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/auto-merge-dependabot.yml:45","Warn: npmCommand not pinned by hash: .github/workflows/auto-merge-dependabot.yml:46","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:34","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:35","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   2 out of   6 npmCommand dependencies pinned"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"30 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-5mjw-6jrh-hvfq","Warn: Project is vulnerable to: GHSA-x9hc-rw35-f44h","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T02:21:04.211Z","repository_id":38172669,"created_at":"2025-08-23T02:21:04.211Z","updated_at":"2025-08-23T02:21:04.211Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34637937,"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-22T02:00:06.391Z","response_time":106,"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":["forecast","json","modelling","tensorflow","tensorflowjs"],"created_at":"2024-11-18T12:07:37.616Z","updated_at":"2026-06-22T07:00:41.115Z","avatar_url":"https://github.com/repetere.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSONM\n[![Coverage Status](https://coveralls.io/repos/github/repetere/jsonm/badge.svg?branch=main)](https://coveralls.io/github/repetere/jsonm?branch=main) [![Build, Test, Release](https://github.com/repetere/jsonm/actions/workflows/release.yml/badge.svg)](https://github.com/repetere/jsonm/actions/workflows/release.yml)\n\n## Description\n\n**JSONM** is a module that creates Tensorflow models with JSON.\n\n### Jump right in\n\nJSONM is designed so software engineers and machine learning engineers can quickly build, train, save, and load Tensorflow based AI \u0026 ML Models. The JSONM Library includes a JSONM UMD module with batteries included so you can use JSONM in the browser without transpilers or any additional setup/configuration. The JSONM UMD is ideal for JAMstack Applications.\n\n### Usage\n\nThe idea behind JSONM is to enable rapid model development. JSONM attempts to automate the data pre-processing and feature engineering needed for most modeling tasks. \n\nData Scientists who are more comfortable finely tuning hyperparameters and controlling pre-processing, scaling and normalization of datasets can also configure JSONM to meet specific model requirements.\n\n### What's included\nJSONM currently supports the following models\n- General purpose multivariate based predictions\n- Multivariate linear regression based predictions\n- General purpose multivariate classification based descriptions\n- General purpose multivariate timeseries based forecasts\n- General purpose content based recommendations *(coming soon)*\n- General purpose cohort analysis *(coming soon)*\n## Installation\n\n```sh\n$ npm i @jsonstack/jsonm\n```\n\n\u003clink id=\"viewx-style-style-0\" rel=\"stylesheet\" type=\"text/css\" href=\"https://unpkg.com/highlight.js@9.18.1/styles/darkula.css\"\u003e\n\n---\n### JSONM Manual\n - [Getting Started](https://repetere.github.io/jsonm/manual/getting-started/index.html)\n - Working With Data\n   - [Data Fetching](https://repetere.github.io/jsonm/manual/data-fetching/index.html)\n   - [Feature Engineering](https://repetere.github.io/jsonm/manual/feature-engineering/index.html)\n - Working With Models\n   - [Model Training](https://repetere.github.io/jsonm/manual/model-training/index.html)\n   - [Model Evaluation](https://repetere.github.io/jsonm/manual/model-evaluation/index.html)\n   - [Model Predictions](https://repetere.github.io/jsonm/manual/model-predictions/index.html)\n   - [Saving and Loading Models](https://repetere.github.io/jsonm/manual/saving-and-loading-models/index.html) \n - [Advanced Topics](https://repetere.github.io/jsonm/manual/advanced-topics/index.html)\n   - [JSONM \u0026 JML Spec](https://repetere.github.io/jsonm/manual/spec/index.html)\n   - [Examples](https://repetere.github.io/jsonm/manual/examples/index.html)\n   - [Full API Docs](https://repetere.github.io/jsonm/)\n---\n\n### Basic Usage\n```typescript\nimport * as tf from '@tensorflow/tfjs-node';\nimport { getModel, setBackend, } from '@jsonstack/jsonm';\n\n//set tensorflow\nsetBackend(tf);\n\n//Iris Dataset e.g from https://raw.githubusercontent.com/repetere/modelx-model/master/src/test/mock/data/iris_data.csv\nconst type = 'ai-classification';\nconst dataset = [\n  {\n    \"sepal_length_cm\": 5.1,\n    \"sepal_width_cm\": 3.5,\n    \"petal_length_cm\": 1.4,\n    \"petal_width_cm\": 0.2,\n    \"plant\": \"Iris-setosa\",\n  },\n//  ...\n  {\n    \"sepal_length_cm\": 7.0,\n    \"sepal_width_cm\": 3.2,\n    \"petal_length_cm\": 4.7,\n    \"petal_width_cm\": 1.4,\n    \"plant\": \"Iris-versicolor\",\n  },\n  // ...\n  {\n    \"sepal_length_cm\": 5.9,\n    \"sepal_width_cm\": 3.0,\n    \"petal_length_cm\": 5.1,\n    \"petal_width_cm\": 1.8,\n    \"plant\": \"virginica\",\n  }\n]\nconst inputs = ['sepal_length_cm','sepal_width_cm','petal_length_cm','petal_width_cm', ];\nconst outputs = [ 'plant',];\nconst on_progress = ({ completion_percentage, loss, epoch, status, logs, defaultLog, }) =\u003e { \n  console.log({ completion_percentage, loss, epoch, status, logs, defaultLog, });\n}\nconst IrisModel = await getModel({\n  type,\n  dataset,\n  inputs,\n  outputs,\n  on_progress,\n}); \nawait IrisModel.trainModel()\nconst predictions = await IrisModel.predictModel({ \n  prediction_inputs:[\n    { sepal_length_cm: 5.1, sepal_width_cm: 3.5, petal_length_cm: 1.4, petal_width_cm: 0.2, },\n    { sepal_length_cm: 5.9, sepal_width_cm: 3.0, petal_length_cm: 5.1, petal_width_cm: 1.8, },\n  ],\n}); // =\u003e [ { plant:'Iris-setosa' }, { plant:'Iris-virginica' }, ]\n\n```\n\n## Example ##\n\u003ciframe width=\"100%\" height=\"500\" src=\"https://jsfiddle.net/yawetse/4ph1vwes/21/embedded/result,js,html,css,resources/dark/\" allowfullscreen=\"allowfullscreen\" allowpaymentrequest frameborder=\"0\"\u003e\u003c/iframe\u003e\n\n### Development\n\nNote *Make sure you have typescript installed*\n\n```sh\n$ npm i -g typescript \n```\n\nFor generating documentation\n\n```sh\n$ npm run doc\n```\n\n### Notes\n\nCheck out [https://repetere.github.io/jsonm/](https://repetere.github.io/jsonm/) for the full jsonm Documentation\n\n### Testing\n\n```sh\n$ npm test\n```\n\n### Contributing\n\nFork, write tests and create a pull request!\n\nLicense\n\n----\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepetere%2Fjsonm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepetere%2Fjsonm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepetere%2Fjsonm/lists"}