{"id":21261525,"url":"https://github.com/chenasraf/pokemon_api_dart","last_synced_at":"2025-03-15T07:12:20.263Z","repository":{"id":179006901,"uuid":"662693825","full_name":"chenasraf/pokemon_api_dart","owner":"chenasraf","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-14T23:21:27.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T22:11:23.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenasraf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-07-05T17:21:46.000Z","updated_at":"2023-07-05T17:44:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"c858cc64-6444-4b9e-b433-d36c62751735","html_url":"https://github.com/chenasraf/pokemon_api_dart","commit_stats":null,"previous_names":["chenasraf/pokemon_api_dart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fpokemon_api_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fpokemon_api_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fpokemon_api_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenasraf%2Fpokemon_api_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenasraf","download_url":"https://codeload.github.com/chenasraf/pokemon_api_dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695589,"owners_count":20332629,"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":"2024-11-21T04:43:39.488Z","updated_at":"2025-03-15T07:12:20.252Z","avatar_url":"https://github.com/chenasraf.png","language":"Dart","funding_links":["https://ko-fi.com/casraf'"],"categories":[],"sub_categories":[],"readme":"Pokemon API client for Flutter/Dart projects.\n\nCredits to https://pokeapi.co for the API itself.\n\n## Features\n\n- Fully typed and documented\n- Easy fetching of linked resources\n- Swappable cache\n\n## Getting started\n\nAfter installing, import and get a reference to the client.\n\nYou can use the default instance, or swap it with your own.\n\n```dart\nimport 'package:pokemon_api/pokemon_api.dart';\n\n// optionally swap the instance\nPokemonAPIClient.setInstance(PokemonAPIClient());\n\n// access the swapped (or default) instance\nfinal api = PokemonAPIClient.instance;\n```\n\n## Usage\n\nYou can see \u003cexamples/main.dart\u003e for more examples.\n\n```dart\n// get the pokemon list\n\nfinal pokemonList = PokemonAPIClient.getPokemonList();\n\n// get a specific pokemon\nfinal charmander = PokemonAPIClient.getPokemonByNameOrId('charmander');\nfinal charmander = PokemonAPIClient.getPokemonByNameOrId('4');\n\n// easily get linked references\nfinal encounters = await charmander.locationAreaEncounters.get();\nfinal locationArea = await encounters[0].locationArea.get();\nfinal forms = await charmander.forms.map((f) =\u003e f.get()).toList();\n```\n\n## Contributing\n\nI am developing this package on my free time, so any support, whether code, issues, or just stars is\nvery helpful to sustaining its life. If you are feeling incredibly generous and would like to donate\njust a small amount to help sustain this project, I would be very very thankful!\n\n\u003ca href='https://ko-fi.com/casraf' target='_blank'\u003e\n  \u003cimg height='36' style='border:0px;height:36px;'\n    src='https://cdn.ko-fi.com/cdn/kofi1.png?v=3'\n    alt='Buy Me a Coffee at ko-fi.com' /\u003e\n\u003c/a\u003e\n\nI welcome any issues or pull requests on GitHub. If you find a bug, or would like a new feature,\ndon't hesitate to open an appropriate issue and I will do my best to reply promptly.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenasraf%2Fpokemon_api_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenasraf%2Fpokemon_api_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenasraf%2Fpokemon_api_dart/lists"}