{"id":14959286,"url":"https://github.com/crazy-thursday/usekfc","last_synced_at":"2025-10-24T16:31:56.264Z","repository":{"id":64164357,"uuid":"572824265","full_name":"crazy-thursday/useKFC","owner":"crazy-thursday","description":"how wonderful thursday!!!!","archived":false,"fork":false,"pushed_at":"2023-05-18T01:45:24.000Z","size":1396,"stargazers_count":17,"open_issues_count":14,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-31T03:25:20.873Z","etag":null,"topics":["astro","hooks","infomation","kfc","react","slogen","thursday","use-kfc","vue"],"latest_commit_sha":null,"homepage":"https://use-kfc.deno.dev","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/crazy-thursday.png","metadata":{"files":{"readme":"README.CN.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["innocces"],"issuehunt":"innocces","custom":["buymeacoffee.com/innocces","afdian.net/a/innocces"]}},"created_at":"2022-12-01T05:23:41.000Z","updated_at":"2024-05-11T03:20:30.000Z","dependencies_parsed_at":"2024-09-29T06:18:50.084Z","dependency_job_id":null,"html_url":"https://github.com/crazy-thursday/useKFC","commit_stats":{"total_commits":49,"total_committers":3,"mean_commits":"16.333333333333332","dds":"0.30612244897959184","last_synced_commit":"4a30f569b9345f56567c04afb09442adfaf7263f"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-thursday%2FuseKFC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-thursday%2FuseKFC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-thursday%2FuseKFC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-thursday%2FuseKFC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazy-thursday","download_url":"https://codeload.github.com/crazy-thursday/useKFC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238008441,"owners_count":19401255,"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":["astro","hooks","infomation","kfc","react","slogen","thursday","use-kfc","vue"],"created_at":"2024-09-24T13:19:20.395Z","updated_at":"2025-10-24T16:31:50.509Z","avatar_url":"https://github.com/crazy-thursday.png","language":"TypeScript","funding_links":["https://github.com/sponsors/innocces","https://issuehunt.io/r/innocces","buymeacoffee.com/innocces","afdian.net/a/innocces","https://www.buymeacoffee.com/innocces"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://use-kfc.deno.dev\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg width=\"180\" src=\"https://api.iconify.design/noto-v1:french-fries.svg\" alt=\"kfc logo\" /\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  \u003ch3 align=\"center\"\u003e\n  \u003cspan\u003e\n    \u003ca href=\"./README.md\"\u003e英文\u003c/a\u003e | \n    \u003ca\u003e中文\u003c/a\u003e\n  \u003c/span\u003e\n  \u003ch3\u003e\n\u003c/p\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@crazy-thursday/use-kfc\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@crazy-thursday/use-kfc\" alt=\"npm package\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://nodejs.org/en/about/releases/\"\u003e\u003cimg src=\"https://img.shields.io/node/v/@crazy-thursday/use-kfc\" alt=\"node compatibility\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/crazy-thursday/useKFC/actions/workflows/deploy-deno.yml\"\u003e\u003cimg src=\"https://github.com/crazy-thursday/useKFC/actions/workflows/deploy-deno.yml/badge.svg?branch=main\" alt=\"build status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://discord.gg/b2SCucyKyn\"\u003e\u003cimg src=\"https://img.shields.io/badge/chat-discord-blue?style=flat\u0026logo=discord\" alt=\"discord chat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003euseKFC\u003c/h1\u003e\n  \u003cp\u003e生成疯狂星期四的文字!!!\u003cp\u003e\n\u003c/div\u003e\n\n## Usage\n\n- hooks 🌩\n\n```tsx\nimport useKFC, { useParseSlogen } from '@crazy-thursday/use-kfc'\n// if u not have exists slogenList, use package json\nimport slogenLike from '@crazy-thursday/use-kfc/slogen'\n\n/**\n * @description slogen item struct\n */\nexport type SlogenItem = {\n  /**\n   * @description slogen content message\n   */\n  content: string\n  /**\n   * @description slogen id to avoid repeat\n   */\n  id: string | number\n}\n\nexport type Options\u003cT\u003e = {\n  /**\n   * @description is provide, slogen will random from this array\n   */\n  slogenList: SlogenItem[]\n  /**\n   * @description manual refresh slogen\n   */\n  refreshSignal?: T\n  /**\n   * @description whether skip thursday check\n   */\n  skipDayCheck?: boolean\n}\n\nfunction App() {\n  const slogenList = useParseSlogen(slogenLike)\n  const { slogen } = useKFC({\n    slogenList\n  })\n\n  return {\n    \u003cpre\u003e{slogen}\u003c/pre\u003e\n  }\n}\n```\n\n- api 💻\n\n```bash\n$ curl 'https://use-kfc-serve.deno.dev/kfc'\n```\n\n- data struct 📚\n\n```ts\nexport enum CODE {\n  /**\n   * @description success code\n   */\n  SUCCESS = 10086,\n  /**\n   * @description failed code\n   */\n  FAILED = 10087,\n  /**\n   * @description deny code\n   */\n  DENY = 10089\n}\n\ntype DataStruct = {\n  code: CODE\n  ip: string\n  method: 'GET'\n  data: {\n    content: string\n    id: string\n    createUser: string\n  }\n}\n```\n\n## Slogen\n\n仓库内置了部分 slogen. 此外你也可以使用 issue 来进行 slogen 贡献. 但请确保 issue 包含完整且不带有争议的文字或表情. 在完成内容编辑之后增加 slogen 的标签. Github CI 会自动收集你贡献的内容到仓库内.\n\n## Contribution\n\n查看 [贡献指南](CONTRIBUTING.md).\n\n## License\n\n[MIT](LICENSE).\n\n## Sponsoring\n\n\u003ctable\u003e\n  \u003ctr align=\"center\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://www.buymeacoffee.com/innocces\" target=\"_blank\"\u003e\n        \u003cimg width=\"120\" src=\"https://api.iconify.design/simple-icons:buymeacoffee.svg\"\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://afdian.net/a/innocces\" target=\"_blank\"\u003e\n        \u003cimg width=\"150\" src=\"https://cdn.jsdelivr.net/gh/innocces/DrawingBed/2022-12-04/1670124736895-afdian.png\"\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-thursday%2Fusekfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazy-thursday%2Fusekfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-thursday%2Fusekfc/lists"}