{"id":27073084,"url":"https://github.com/kh3rld/sortable","last_synced_at":"2025-10-04T23:12:06.360Z","repository":{"id":258561891,"uuid":"874171402","full_name":"kh3rld/sortable","owner":"kh3rld","description":"This project fetches superhero data from a public API and displays it in a paginated, sortable table.","archived":false,"fork":false,"pushed_at":"2024-10-17T19:37:59.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T21:57:04.760Z","etag":null,"topics":["javascript","web"],"latest_commit_sha":null,"homepage":"https://kh3rld.github.io/sortable/","language":"JavaScript","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/kh3rld.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-10-17T11:24:25.000Z","updated_at":"2024-11-04T14:24:56.000Z","dependencies_parsed_at":"2025-01-08T06:32:14.515Z","dependency_job_id":null,"html_url":"https://github.com/kh3rld/sortable","commit_stats":null,"previous_names":["kh3rld/sortable"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kh3rld/sortable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh3rld%2Fsortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh3rld%2Fsortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh3rld%2Fsortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh3rld%2Fsortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kh3rld","download_url":"https://codeload.github.com/kh3rld/sortable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh3rld%2Fsortable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386130,"owners_count":25978113,"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-10-04T02:00:05.491Z","response_time":63,"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":["javascript","web"],"created_at":"2025-04-05T23:35:33.825Z","updated_at":"2025-10-04T23:12:06.333Z","avatar_url":"https://github.com/kh3rld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sortable API Table\n\nThis project fetches superhero data from a public API and displays it in a paginated, sortable table. Users can filter heroes by name and navigate through pages of heroes.\n\n## Features\n\n- Fetches superhero data from [Superhero API](https://rawcdn.githack.com/akabab/superhero-api/0.2.0/api/all.json).\n- Displays heroes in a table format with sorting functionality.\n- Pagination controls to navigate through pages of heroes.\n- Search functionality to filter heroes by name.\n\n## Getting Started\n\n### Prerequisites\n\nMake sure you have a modern web browser and a basic understanding of HTML and JavaScript.\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://learn.zone01kisumu.ke/git/somotto/sortable\n   cd sortable\n   ```\n\n2. Open `index.html` in your web browser.\n\n### Usage\n\n1. Enter a name in the search box to filter heroes.\n2. Click on the table headers to sort by that column.\n3. Use the pagination buttons to navigate through pages of heroes.\n\n## Code Structure\n\n- `index.html`: The main HTML file containing the structure of the application.\n- `script.js`: Contains the JavaScript functions for fetching, filtering, sorting, and paginating the heroes.\n- `style.css`: Contains the styles for the table and layout.\n\n## Running Tests\n\nTo run the tests, ensure you have Jest installed. Then, run:\n\n```bash\nnpm test\n```\n\n## Contributing\n\nIf you'd like to contribute, please fork the repository and submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh3rld%2Fsortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkh3rld%2Fsortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh3rld%2Fsortable/lists"}