{"id":15317811,"url":"https://github.com/react18-tools/zen-store","last_synced_at":"2025-10-09T03:31:12.905Z","repository":{"id":223452541,"uuid":"760279119","full_name":"react18-tools/zen-store","owner":"react18-tools","description":"A simple yet elegant, light weight, react18 global store to replace Zustand for better tree shaking.","archived":true,"fork":false,"pushed_at":"2024-02-21T13:01:00.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-02T08:58:30.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/react18-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":".github/FUNDING.yml","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},"funding":{"github":["mayank1513"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://pages.razorpay.com/mayank1513"]}},"created_at":"2024-02-20T05:46:57.000Z","updated_at":"2024-05-13T22:57:31.000Z","dependencies_parsed_at":"2024-02-20T10:52:07.086Z","dependency_job_id":null,"html_url":"https://github.com/react18-tools/zen-store","commit_stats":null,"previous_names":["react18-tools/zen-store"],"tags_count":1,"template":false,"template_full_name":"react18-tools/turborepo-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fzen-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fzen-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fzen-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fzen-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react18-tools","download_url":"https://codeload.github.com/react18-tools/zen-store/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235789231,"owners_count":19045127,"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":[],"created_at":"2024-10-01T08:58:25.605Z","updated_at":"2025-10-09T03:31:07.576Z","avatar_url":"https://github.com/react18-tools.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mayank1513","https://pages.razorpay.com/mayank1513"],"categories":[],"sub_categories":[],"readme":"\u003e Archiving this repo as npm package with similar name already exists. Please follow [React18GlobalStore](https://github.com/react18-tools/r18gs) for the latest updates.\n\n- https://github.com/react18-tools/r18gs\n\n# zen-store\n\n[![test](https://github.com/mayank1513/zen-store/actions/workflows/test.yml/badge.svg)](https://github.com/mayank1513/zen-store/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/b312003ee4446361e265/maintainability)](https://codeclimate.com/github/react18-tools/zen-store/maintainability) [![codecov](https://codecov.io/gh/mayank1513/zen-store/graph/badge.svg)](https://codecov.io/gh/mayank1513/zen-store) [![Version](https://img.shields.io/npm/v/zen-store.svg?colorB=green)](https://www.npmjs.com/package/zen-store) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/zen-store.svg)](https://www.npmjs.com/package/zen-store) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/zen-store) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)\n\n## Motivation\n\nI have built wonderful libraries utilizing React18 features using Zustand. They worked awesome. However, when I try importing from specific folder for better tree-shaking, the libraries fail. This is because, for each import a separate zustand store is created. This actually increases the package size also.\n\nThus, I decided to create a bare minimum, ultra-light store that creates shared state even while importing components from separate files for better treeshaking.\n\n\u003e Will be using this library soon to fix issues with `nextjs-themes`.\n\n## Features\n\n✅ Full TypeScript Support\n\n✅ Unleash the full power of React18 Server components\n\n✅ Works with all build systems/tools/frameworks for React18\n\n✅ Doccumented with [Typedoc](https://react18-tools.github.io/turborepo-template) ([Docs](https://react18-tools.github.io/zen-store))\n\n✅ Next.js, Vite and Remix examples\n\n## Install\n\n```bash\n$ pnpm add zen-store\n```\n\nor\n\n```bash\n$ npm install zen-store\n```\n\nor\n\n```bash\n$ yarn add zen-store\n```\n\n\n\n### Build\n\nTo build all apps and packages, run the following command:\n\n```\ncd zen-store\npnpm build\n```\n\n### Develop\n\nTo develop all apps and packages, run the following command:\n\n```\ncd zen-store\npnpm dev\n```\n\n## Useful Links\n\nLearn more about the power of Turborepo:\n\n- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)\n- [Caching](https://turbo.build/repo/docs/core-concepts/caching)\n- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)\n- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)\n- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)\n- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)\n\n### 🤩 Don't forger to start [this repo](https://github.com/mayank1513/zen-store)!\n\nWant hands-on course for getting started with Turborepo? Check out [React and Next.js with TypeScript](https://mayank-chaudhari.vercel.app/courses/react-and-next-js-with-typescript) and [The Game of Chess with Next.js, React and TypeScrypt](https://www.udemy.com/course/game-of-chess-with-nextjs-react-and-typescrypt/?referralCode=851A28F10B254A8523FE)\n\n![RepoBeats](https://repobeats.axiom.co/api/embed/bb604a42998b687710c78b6d1ef84f29b646d45c.svg \"Repobeats analytics image\")\n\n## License\n\nLicensed as MIT open source.\n\n\u003chr /\u003e\n\n\u003cp align=\"center\" style=\"text-align:center\"\u003ewith 💖 by \u003ca href=\"https://mayank-chaudhari.vercel.app\" target=\"_blank\"\u003eMayank Kumar Chaudhari\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact18-tools%2Fzen-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact18-tools%2Fzen-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact18-tools%2Fzen-store/lists"}