{"id":16282856,"url":"https://github.com/zya/markovian","last_synced_at":"2025-09-08T05:33:05.140Z","repository":{"id":75969507,"uuid":"82867337","full_name":"zya/markovian","owner":"zya","description":"The simplest way to create a markovian process using markov chains. 🔗","archived":false,"fork":false,"pushed_at":"2017-02-24T10:25:01.000Z","size":135,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T09:21:20.532Z","etag":null,"topics":["generative","javascript","markov","markov-chain"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zya.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":"2017-02-23T00:42:24.000Z","updated_at":"2025-03-21T22:31:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"02c6a2ec-bff7-4f65-8904-ffbed3c5028c","html_url":"https://github.com/zya/markovian","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zya/markovian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fmarkovian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fmarkovian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fmarkovian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fmarkovian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zya","download_url":"https://codeload.github.com/zya/markovian/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zya%2Fmarkovian/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274136528,"owners_count":25228396,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":["generative","javascript","markov","markov-chain"],"created_at":"2024-10-10T19:11:51.545Z","updated_at":"2025-09-08T05:33:04.721Z","avatar_url":"https://github.com/zya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markovian\n\nThe simplest way to create a markovian process using [markov chains](https://en.wikipedia.org/wiki/Markov_chain).\n\n## Installation\n```\nnpm i markovian\n```\n\n## Usage\n\n```js\nvar markovian = require('markovian');\n\n// create states\nvar zero = {\n  value: 'zero', // value\n  targets: [0, 1, 2], // target indices\n  probabilities: [0.25, 0.25, 0.50] // target probabilities\n};\n\nvar one = {\n  value: 'one',\n  targets: [0, 2],\n  probabilities: [0.25, 0.75]\n};\n\nvar two = {\n  value: 'two',\n  targets: [0, 1],\n  probabilities: [0.80, 0.20]\n};\n\n// create the model\nvar states = [zero, one, two];\nvar model = markovian.create(states);\n\n// start generating\nsetInterval(function(){\n  var state = model.tick();\n  console.log(state);\n}, 500);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzya%2Fmarkovian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzya%2Fmarkovian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzya%2Fmarkovian/lists"}