{"id":28138058,"url":"https://github.com/kaokei/use-vue-service","last_synced_at":"2025-05-14T17:05:11.144Z","repository":{"id":49040393,"uuid":"365405485","full_name":"kaokei/use-vue-service","owner":"kaokei","description":"Lightweight Vue 3 state management with dependency injection, inspired by Angular services.","archived":false,"fork":false,"pushed_at":"2025-05-12T07:15:13.000Z","size":1101,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T07:15:51.537Z","etag":null,"topics":["dependency-injection","di","ioc","javascript","service","state-management","typescript","vue3"],"latest_commit_sha":null,"homepage":"https://kaokei.com/project/use-vue-service/","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/kaokei.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,"zenodo":null}},"created_at":"2021-05-08T03:00:33.000Z","updated_at":"2025-05-12T07:15:17.000Z","dependencies_parsed_at":"2024-11-15T04:17:30.195Z","dependency_job_id":"ad3e25e2-50cb-491e-87f8-b030085c4ef2","html_url":"https://github.com/kaokei/use-vue-service","commit_stats":{"total_commits":123,"total_committers":1,"mean_commits":123.0,"dds":0.0,"last_synced_commit":"19729902454dbdce18c56efe348100943e46c645"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaokei%2Fuse-vue-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaokei%2Fuse-vue-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaokei%2Fuse-vue-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaokei%2Fuse-vue-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaokei","download_url":"https://codeload.github.com/kaokei/use-vue-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190396,"owners_count":22029632,"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":["dependency-injection","di","ioc","javascript","service","state-management","typescript","vue3"],"created_at":"2025-05-14T17:02:24.253Z","updated_at":"2025-05-14T17:05:11.137Z","avatar_url":"https://github.com/kaokei.png","language":"TypeScript","funding_links":[],"categories":["Angular-Inspired Solutions"],"sub_categories":["Wrappers"],"readme":"\u003ch1 align=\"center\"\u003enpm install @kaokei/use-vue-service\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Build Status](https://github.com/kaokei/use-vue-service/actions/workflows/build.yml/badge.svg)](https://github.com/kaokei/use-vue-service/actions/workflows/build.yml)\n[![Coverage Status](https://coveralls.io/repos/github/kaokei/use-vue-service/badge.svg?branch=main)](https://coveralls.io/github/kaokei/use-vue-service?branch=main)\n[![Downloads](https://img.shields.io/npm/dm/@kaokei/use-vue-service.svg?sanitize=true)](https://npmcharts.com/compare/@kaokei/use-vue-service?minimal=true)\n[![Version](https://img.shields.io/npm/v/@kaokei/use-vue-service.svg?sanitize=true)](https://www.npmjs.com/package/@kaokei/use-vue-service)\n[![License](https://img.shields.io/npm/l/@kaokei/use-vue-service.svg?sanitize=true)](https://www.npmjs.com/package/@kaokei/use-vue-service)\n![GitHub Created At](https://img.shields.io/github/created-at/kaokei/use-vue-service?style=social)\n\n\u003c/div\u003e\n\n灵感来自 angular 中的服务的概念。在 angular 中不需要全局唯一的数据源 store。而是通过声明服务，以及向组件中注入服务来达到数据管理以及数据共享的。\n\n本库也是实现了类似的效果，可以通过依赖注入实现面向服务编程、实现领域驱动开发。从而可以代替 vuex。\n\n本库通过类来声明服务，对 typescript 支持非常棒。\n\n- [入门指南](./docs/guide/README.md)\n- [API 文档](./docs/api/README.md)\n- [博客文章](./docs/note/01.父组件与子组件的理解.md)\n- [codesandbox example](https://codesandbox.io/s/di-playground-zjnyv)\n- [online demo](https://use-vue-service.vercel.app/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaokei%2Fuse-vue-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaokei%2Fuse-vue-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaokei%2Fuse-vue-service/lists"}