{"id":21401297,"url":"https://github.com/kuizuo/api-service","last_synced_at":"2025-10-28T12:34:46.479Z","repository":{"id":46596851,"uuid":"514063272","full_name":"kuizuo/api-service","owner":"kuizuo","description":"基于 Nuxt 搭建的 API 接口服务网站","archived":false,"fork":false,"pushed_at":"2024-02-01T12:02:41.000Z","size":2066,"stargazers_count":41,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-02-02T09:41:45.459Z","etag":null,"topics":["api","api-server","nuxt"],"latest_commit_sha":null,"homepage":"https://api.kuizuo.cn","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/kuizuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2022-07-14T22:21:05.000Z","updated_at":"2024-02-02T09:41:45.459Z","dependencies_parsed_at":"2023-01-23T12:16:09.897Z","dependency_job_id":"1102d494-fe81-42e0-ae77-91efcdbfa71b","html_url":"https://github.com/kuizuo/api-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fapi-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fapi-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fapi-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fapi-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuizuo","download_url":"https://codeload.github.com/kuizuo/api-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225919396,"owners_count":17545251,"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":["api","api-server","nuxt"],"created_at":"2024-11-22T15:27:08.616Z","updated_at":"2025-10-28T12:34:46.396Z","avatar_url":"https://github.com/kuizuo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://api.iconify.design/carbon:api-1.svg\" width=\"50\" height=\"50\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ci\u003eArtwork from \u003ca href=\"https://nuxt.com/\"\u003eNuxt\u003c/a\u003e\u003c/i\u003e\n\u003c/p\u003e\n\u003cpre align=\"center\"\u003e\n🧪 整理稳定、快速、好用的 API 接口\n\u003c/pre\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cbr\u003e\n\u003ca href=\"https://api.kuizuo.cn\"\u003e🖥 Online Preview\u003c/a\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003ca href=\"https://stackblitz.com/github/kuizuo/api-service\"\u003e\u003cimg src=\"https://developer.stackblitz.com/img/open_in_stackblitz.svg\" alt=\"\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/kuizuo/api-service\"\u003e\u003cimg alt=\"size\" src=\"https://img.shields.io/github/stars/kuizuo/api-service?style=flat\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/nuxt/v/rc\"\u003e\u003cimg alt=\"size\" src=\"https://img.shields.io/github/package-json/dependency-version/kuizuo/api-service/dev/nuxt?style=flat\u0026colorA=002438\u0026colorB=28CF8D\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/kuizuo/api-service/actions/workflows/ci.yml\"\u003e\u003cimg alt=\"CI\" src=\"https://img.shields.io/github/workflow/status/kuizuo/api-service/ci?label=ci\u0026logo=github\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/kuizuo/api-service/tree/HEAD/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/kuizuo/api-service?style=flat\u0026colorA=002438\u0026colorB=28CF8D\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Preview\n\n![API-Service](https://img.kuizuo.cn/KZ%20API.png)\n\n## Features\n\n- [x] 接口文档\n- [x] 接口限流\n- [x] 接口缓存\n- [x] 接口测试\n- [x] 接口计次\n- [ ] 接口监控\n\n## Usage\n\n```\ngit clone https://github.com/kuizuo/api-service\ncd api-service\npnpm i\n```\n\n### Development\n\n```\npnpm dev\n```\n\n### Build\n\n```\npnpm build\n```\n\n## Develop\n\n### Server\n\n这里使用 pm2 进行部署，配置文件 `ecosystem.config.js` 如下：\n\n```js\nmodule.exports = {\n  apps: [\n    {\n      name: 'API-Service',\n      exec_mode: 'cluster',\n      instances: '1',\n      PORT: 8040,\n      env: {\n        NUXT_PUBLIC_API_URL: 'https://api.kuizuo.cn',\n      },\n      script: './.output/server/index.mjs',\n    },\n  ],\n}\n```\n\n执行 `pm2 start ecosystem.config.js` 启动服务。\n\n### Docker\n\n```shell\ndocker buildx build . -t api-service:latest\n```\n\n### Vercel\n\n转到 [Vercel](https://vercel.com/new) 并选择你的项目，点击  \"Deploy\"，您的应用程序将在一分钟内上线。\n\n### Netlify\n\n转到 [Netlify](https://app.netlify.com/start) 并选择您的项目，点击 \"Deploy site\"，您的应用程序将在一分钟内上线。\n\n## Why\n\n我个人经常与 API 接口打交道，因而收集了些常用的 api。但这些 api 接口调用方式各不相同，所以编写这个项目为了将这些接口整合到一起，进行易用性的封装，使其更易调用。\n\n**API 接口均来自网络，如有侵权，请联系作者删除！**\n\n## License\n\n[MIT](https://github.com/kuizuo/api-service/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuizuo%2Fapi-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuizuo%2Fapi-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuizuo%2Fapi-service/lists"}