{"id":26257135,"url":"https://github.com/xaviergonz/mobx-bonsai","last_synced_at":"2025-04-28T15:15:47.507Z","repository":{"id":276873315,"uuid":"929469741","full_name":"xaviergonz/mobx-bonsai","owner":"xaviergonz","description":"A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding","archived":false,"fork":false,"pushed_at":"2025-04-06T13:37:15.000Z","size":2291,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T15:15:24.848Z","etag":null,"topics":["mobx","mobx-keystone","mobx-node","mobx-state-tree","observable","state-management","yjs"],"latest_commit_sha":null,"homepage":"https://mobx-bonsai.js.org","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/xaviergonz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-02-08T16:14:31.000Z","updated_at":"2025-04-25T06:31:10.000Z","dependencies_parsed_at":"2025-02-15T09:14:32.236Z","dependency_job_id":"facd08f5-877c-4c81-afde-8d01f73ae101","html_url":"https://github.com/xaviergonz/mobx-bonsai","commit_stats":null,"previous_names":["xaviergonz/mobx-yjs","xaviergonz/mobx-node","xaviergonz/mobx-bonsai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaviergonz%2Fmobx-bonsai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaviergonz%2Fmobx-bonsai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaviergonz%2Fmobx-bonsai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaviergonz%2Fmobx-bonsai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xaviergonz","download_url":"https://codeload.github.com/xaviergonz/mobx-bonsai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251336389,"owners_count":21573188,"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":["mobx","mobx-keystone","mobx-node","mobx-state-tree","observable","state-management","yjs"],"created_at":"2025-03-13T20:28:27.500Z","updated_at":"2025-04-28T15:15:47.455Z","avatar_url":"https://github.com/xaviergonz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./logo.png\" height=\"128\" /\u003e\n  \u003ch1 align=\"center\"\u003emobx-bonsai\u003c/h1\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ci\u003eA fast lightweight alternative to MobX-State-Tree + Y.js two-way binding\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca aria-label=\"NPM version\" href=\"https://www.npmjs.com/package/mobx-bonsai\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/mobx-bonsai.svg?style=for-the-badge\u0026logo=npm\u0026labelColor=333\" /\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"License\" href=\"./LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/mobx-bonsai.svg?style=for-the-badge\u0026labelColor=333\" /\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"Types\" href=\"./packages/mobx-bonsai/tsconfig.json\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/types/mobx-bonsai.svg?style=for-the-badge\u0026logo=typescript\u0026labelColor=333\" /\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  \u003ca aria-label=\"CI\" href=\"https://github.com/xaviergonz/mobx-bonsai/actions/workflows/main.yml\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/xaviergonz/mobx-bonsai/main.yml?branch=master\u0026label=CI\u0026logo=github\u0026style=for-the-badge\u0026labelColor=333\" /\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"Codecov\" href=\"https://codecov.io/gh/xaviergonz/mobx-bonsai\"\u003e\n    \u003cimg src=\"https://img.shields.io/codecov/c/github/xaviergonz/mobx-bonsai?token=6MLRFUBK8V\u0026label=codecov\u0026logo=codecov\u0026style=for-the-badge\u0026labelColor=333\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e ### Full documentation can be found on the site:\n\u003e\n\u003e ## [mobx-bonsai.js.org](https://mobx-bonsai.js.org)\n\n## Introduction\n\nA fast lightweight alternative to `mobx-state-tree` that combines the simplicity of plain data with the power of MobX reactivity. Unlike `mobx-state-tree`, tree nodes in `mobx-bonsai` are always plain data objects with no embedded methods, getters, or setters. Instead, all interactions are managed via external functions—getters and MobX actions like embracing a more functional approach, thus improving performance and memory usage. Your application state remains a simple, observable plain object. Instead of modifying the nodes directly with object methods, you work with pure functions that inspect or update the state, ensuring clarity and reproducibility.\n\nBy using `mobx-bonsai`, you get:\n\n- **Lightweight and fast:** Optimized for performance while consuming less memory.\n- **Functional accessors:** Interaction is achieved through pure functions, keeping state manipulation decoupled from the data structure.\n- **Immutable snapshots:** Effortlessly capture a stable state of your tree at any point.\n- **MobX Integration:** Since `mobx-bonsai` uses MobX behind the scenes, it integrates seamlessly with [`mobx`](https://mobx.js.org) and [`mobx-react`](https://github.com/mobxjs/mobx-react).\n- **Seamless Y.js binding:** Two-way binding between `Y.js` state trees and `mobx-bonsai` reactive trees included.\n\n### Installation\n\n\u003e `npm install mobx-bonsai`\n\n\u003e `yarn add mobx-bonsai`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaviergonz%2Fmobx-bonsai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxaviergonz%2Fmobx-bonsai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaviergonz%2Fmobx-bonsai/lists"}