{"id":24540541,"url":"https://github.com/unit2795/cat-facts","last_synced_at":"2025-03-16T05:43:12.846Z","repository":{"id":243736278,"uuid":"813274414","full_name":"Unit2795/cat-facts","owner":"Unit2795","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-13T13:26:54.000Z","size":355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T18:14:01.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cat-facts-one.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Unit2795.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-10T20:10:06.000Z","updated_at":"2024-06-13T13:26:58.000Z","dependencies_parsed_at":"2024-06-13T16:02:31.146Z","dependency_job_id":null,"html_url":"https://github.com/Unit2795/cat-facts","commit_stats":null,"previous_names":["unit2795/cat-facts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unit2795%2Fcat-facts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unit2795%2Fcat-facts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unit2795%2Fcat-facts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unit2795%2Fcat-facts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Unit2795","download_url":"https://codeload.github.com/Unit2795/cat-facts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830914,"owners_count":20354850,"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":"2025-01-22T18:14:05.828Z","updated_at":"2025-03-16T05:43:12.816Z","avatar_url":"https://github.com/Unit2795.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cat Facts Sample Application\n\nDemonstrator application that displays random cat facts, built using Next.js. There are two pages; the homepage where you can generate individual facts and a bulk facts page where you can generate multiple facts at once. Click on a fact in the bulk facts page to visit that specific fact.\n\n## Live Site\nhttps://cat-facts-one.vercel.app/\n\n## Features\n- Generate random cat facts, bookmark your favorites\n- Click a fact in the bulk facts page to visit that specific fact\n- Responsive \u0026 accessible design, with support for reduced motion\n- Animated navbar, facts, and buttons\n- Internal route handlers for fact API\n\n## Development\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\n## API Endpoints\n- /api/v1/fact - returns a random cat fact\n- /api/v1/fact?id=ID - returns a specific cat fact by ID\n- /api/v1/facts - returns multiple cat facts\n- /api/v1/facts?amount=amount - returns multiple cat facts with a set amount\n\n### Example Response\nThe response will either be a single object or an array of objects, depending on the endpoint.\n```\n{\n  \"data\": {\n    \"_id\": 193,\n    \"text\": \"The Japanese Bobtail's tail resembles a rabbit's tail.\"\n  }\n}\n```\n\n\n## Images\nHome Page:\n![Primary homepage](./docs/home.png)\nBulk Facts Page:\n![Bulk cat facts page](./docs/facts.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funit2795%2Fcat-facts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funit2795%2Fcat-facts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funit2795%2Fcat-facts/lists"}