{"id":24653084,"url":"https://github.com/jsardev/petmemo","last_synced_at":"2026-04-11T14:02:58.966Z","repository":{"id":203939831,"uuid":"699502481","full_name":"jsardev/petmemo","owner":"jsardev","description":"A memory game with your favourite pets!","archived":false,"fork":false,"pushed_at":"2024-10-29T13:20:46.000Z","size":466,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T15:23:51.255Z","etag":null,"topics":["react","react-router","showcase","unocss","vite","zustand"],"latest_commit_sha":null,"homepage":"https://petmemo-sarneeh.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/jsardev.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":"2023-10-02T19:01:27.000Z","updated_at":"2024-10-29T13:20:51.000Z","dependencies_parsed_at":"2024-10-17T15:44:42.280Z","dependency_job_id":"02de45ed-ed10-4550-8bb9-72fe2ed5ca1a","html_url":"https://github.com/jsardev/petmemo","commit_stats":null,"previous_names":["sarneeh/petmemo","jsardev/petmemo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsardev/petmemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsardev%2Fpetmemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsardev%2Fpetmemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsardev%2Fpetmemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsardev%2Fpetmemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsardev","download_url":"https://codeload.github.com/jsardev/petmemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsardev%2Fpetmemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274340300,"owners_count":25267293,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["react","react-router","showcase","unocss","vite","zustand"],"created_at":"2025-01-25T20:13:46.980Z","updated_at":"2025-12-30T21:26:20.341Z","avatar_url":"https://github.com/jsardev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![petmemo](docs/assets/logo.jpg)\n\nA showcase application built with Vite and React. Powered by [The Cats API](https://thecatapi.com/).\n\n[Live demo](https://petmemo-sarneeh.vercel.app/)\n\n## Prerequisities\n\nImportant! The Cats/Dogs API does only support filtering with query parameters when used with an API key. If you want to run the app locally, you need to grab a key from the [Cats API](https://thecatapi.com) and [Dogs API](https://thedogapi.com/) website and put it in a `.env` file, like this:\n\n```\nVITE_CAT_API_KEY=\nVITE_DOG_API_KEY=\n```\n\n### What exactly does not work?\n\nThe *limit* query parameter does not work without an API key and always returns 10 entries. I didn't want to hack around this as this is a bad practice.\n\nExample: https://api.thecatapi.com/v1/images/search?limit=2\n\n## How to run\n\n### Run in development mode\n\n```\npnpm install\npnpm dev\n```\n\n### Run in production mode\n\n```\npnpm build\npnpm preview\n```\n\n## Technology\n\nFollowing libraries and technologies were used in this project:\n\n- [React](https://github.com/facebook/react) - UI Library\n- [React Router](https://github.com/remix-run/react-router) - Routing\n- [Zustand](https://github.com/pmndrs/zustand) - State Management\n- [UnoCSS](https://github.com/unocss/unocss) - CSS Framework\n- [Ky](https://github.com/sindresorhus/ky) - HTTP Client\n\n### Rationale\n\n#### Zustand\n\nI heard a lot about Zustand and it's simplicity. As I never had the opportunity to work with it, I decided to check out its capabilities in this project. What I was looking for in a state management for this project was high React integration (e.g. state selector hooks out of the box), strategies for preventing rerenders and easy nested state updates (e.g. [integration with immer](https://github.com/pmndrs/zustand#sick-of-reducers-and-changing-nested-states-use-immer)).\n\n#### UnoCSS\n\nI love the Utility CSS approach and found out that it's very effective in prototyping and generally fast development. It gives a lot of performance benefits out of the box as you only fetch the CSS you use in your markup, and the reusability level is very high. I did choose UnoCSS over [Tailwind](https://tailwindcss.com/) as it is a lot faster (vs Tailwind's JIT), more customizable, and gives some cool features out of the box like e.g. [pure css icons](https://antfu.me/posts/icons-in-pure-css).\n\n## Assets\n\nIcons have been taken from an open-source project called [Lucide](https://lucide.dev/). Integrated easily with the brilliant [UnoCSS icons preset](https://unocss.dev/presets/icons).\n\n## Architecture\n\nFor a detailed description and overview of the architecture, check [this document](docs/architecture.md).\n\n## Shortcomings / Todo List\n\nA list of issues and things that I'm aware of that should be improved to make the project production-ready.\n\n### Unit tests\n\nThere are no unit tests. No tests for the domain logic, no tests for the UI components. This should be surely addressed.\n\n### End-to-end tests\n\nLike above, it would be great to have some end-to-end tests of the app. If so, I'd probably suggest Cypress.\n\n### Semantic HTML\n\nTo be honest, I didn't care about it too much knowing the time limitations so I spammed `div`'s wherever I could 😅 There are certainly some places for improvement here.\n\n### UI / UX\n\nThere are a few problems and places which could be improved:\n\n- accessibility\n- keyboard navigation\n\n### Continuous integration / Continuous deployment\n\nWould be great to have basic build/test/lint/typecheck GitHub Actions that could check stuff every commit without the need to do it locally.\n\n### Bugs\n\n- I run into an issue with the grid on Safari - it renders initially stretched out and fixes itself on interaction (without any rerender). This seems like a Safari bug in a grid + aspect-ratio scenario. I tried to fix this issue but after a few hours I gave up and left it as is as I had to finish other elements of the solution ☹️\n\n### Other improvements / ideas\n\n- limited time for each turn (counter)\n- setting to choose between cats/dogs\n- multiplayer online (lobby system)\n   - player profiles\n   - player leaderboards\n   - tournamets\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsardev%2Fpetmemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsardev%2Fpetmemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsardev%2Fpetmemo/lists"}