{"id":14963933,"url":"https://github.com/profffff/nftpetapp","last_synced_at":"2026-02-19T19:02:59.106Z","repository":{"id":239942116,"uuid":"800720067","full_name":"profffff/nftpetapp","owner":"profffff","description":"It's a small personal project-game where the main goal is to raise a pet (aka Tamagotchi), with the reward being the opportunity to mint an NFT. In the future, the token can be used as a character in the game.","archived":false,"fork":false,"pushed_at":"2024-06-15T22:11:41.000Z","size":353812,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T00:08:52.021Z","etag":null,"topics":["amoy","blockchain","mint-nft","nextjs","nft","nft-min","phaser","phaser-game","phaser3","polygon","react","reactjs","tamagotchi","thirdweb","web3"],"latest_commit_sha":null,"homepage":"","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/profffff.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-14T21:40:40.000Z","updated_at":"2025-06-08T06:29:09.000Z","dependencies_parsed_at":"2024-06-04T05:45:56.209Z","dependency_job_id":null,"html_url":"https://github.com/profffff/nftpetapp","commit_stats":null,"previous_names":["profffff/nftpetapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/profffff/nftpetapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profffff%2Fnftpetapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profffff%2Fnftpetapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profffff%2Fnftpetapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profffff%2Fnftpetapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/profffff","download_url":"https://codeload.github.com/profffff/nftpetapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profffff%2Fnftpetapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29627702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["amoy","blockchain","mint-nft","nextjs","nft","nft-min","phaser","phaser-game","phaser3","polygon","react","reactjs","tamagotchi","thirdweb","web3"],"created_at":"2024-09-24T13:32:21.055Z","updated_at":"2026-02-19T19:02:59.083Z","avatar_url":"https://github.com/profffff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"https://github.com/profffff/nftpetapp\n\n# NFTPET App\n\nDemo: https://nftpet.netlify.app/\n\nIt's a small personal project-game where the main goal is to raise a pet (aka Tamagotchi), with the reward being the opportunity to mint an NFT. The token can be used as a character in the game.\n\n![project preview](./readme/mainMenuScreenshot.png)\n\nA self-made collection of NFTs, strikingly reminiscent of Pokémons.\n\n![nft collection](readme/nftCollectionScreenshot.png)\n\n## How to play\nTo get a reward (NFT), you need to poke 15 times on the correct buttons and the pet's mood should be good (8) or better. Incorrect actions lead to a decrease in mood.  \nStages:   \n0 dead  \n1-2 angry   \n3-4 sad   \n5-6 neutral  \n7-8 good  \n9-10 happy  \nP.S. The supply of NFTs available is limited to 1500, and may run out. Have fun!\n\n## Running Locally\nClone project locally\n\nCreate **.env.local** file in the root directory (check .env.example to see what needs to be included)\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nRun the development server:\n\n```bash\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Stack\n- Programming language: TypeScript\n- Frontend framework: React.js\n- Framework for server-rendered React applications: Next.js\n- Game development framework: Phaser\n- Smart-contract: Thirdweb\n- Blockchain interaction framework: Wagmi\n- TS interface for Eutherium: Viem\n- HTTP client: Axios\n\n## Project Structure\n- `components` - Contains the React components.\n- `src` - Contains the game source code and app entry points.\n- `src/app/page.tsx` - The main Next.js component.\n- `src/app/App.tsx` - Midleware component used to run Phaser in client mode.\n- `src/game/PhaserGame.tsx` - The React component that initializes the Phaser Game and serve like a bridge between React and Phaser.\n- `src/game/main.tsx` - The main **game** entry point. This contains the game configuration and start the game.\n- `src/values/constants/gameConstants.ts` - Game settings\n- `public/assets` - Contains the static assets used by the game.\n\n### Blockchain\nAmoy Testnet for Polygon PoS\n\n### DevTools \nGoogle Lighthouse Score: 77\n\n### Bugs (to do)\nsrc.IndexOf error after minting the NFT   \nhappy animation glitch along the Y-axis  \ndisfunction of the scene manager due to init() in the main scene  \ncss libraries are not used properly (just unnecessary dependencies)\n\n## Useful links\n- Inspired by [Sitting Cats](https://github.com/danilo-89/sitting-cats-nft/tree/main)\n- [Cool NFT configurator](https://github.com/Jon-Becker/nft-generator-py)\n- [Free Polygon Testnet MATIC](https://www.alchemy.com/faucets/polygon-amoy)\n- [Phaser Next.js Template](https://github.com/phaserjs/template-nextjs)\n\n## Contact\nFeel free to get in touch  \n[Nik](https://www.reddit.com/user/parrof/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofffff%2Fnftpetapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofffff%2Fnftpetapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofffff%2Fnftpetapp/lists"}