{"id":23817541,"url":"https://github.com/simplr-sh/swapi-sdk","last_synced_at":"2026-02-06T16:06:16.995Z","repository":{"id":270549452,"uuid":"910721495","full_name":"simplr-sh/swapi-sdk","owner":"simplr-sh","description":"A simple Typescript SDK for the Simplr's Star Wars API (SWAPI) service that provides a simple, typesafe interface to interact with the API.","archived":false,"fork":false,"pushed_at":"2025-01-01T08:18:27.000Z","size":115,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T22:28:48.939Z","etag":null,"topics":["api","sdk","starwars","starwars-api","swapi","typescript","typescript-library","typescript-sdk"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@simplr-sh/swapi-sdk?activeTab=readme","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/simplr-sh.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":"2025-01-01T07:33:51.000Z","updated_at":"2025-01-01T08:18:29.000Z","dependencies_parsed_at":"2025-01-01T08:26:19.964Z","dependency_job_id":"d141613d-f1fb-400f-a0c1-d65f0c480544","html_url":"https://github.com/simplr-sh/swapi-sdk","commit_stats":null,"previous_names":["simplr-sh/swapi-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simplr-sh/swapi-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplr-sh%2Fswapi-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplr-sh%2Fswapi-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplr-sh%2Fswapi-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplr-sh%2Fswapi-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplr-sh","download_url":"https://codeload.github.com/simplr-sh/swapi-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplr-sh%2Fswapi-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29167870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T15:38:29.831Z","status":"ssl_error","status_checked_at":"2026-02-06T15:37:48.592Z","response_time":59,"last_error":"SSL_read: 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":["api","sdk","starwars","starwars-api","swapi","typescript","typescript-library","typescript-sdk"],"created_at":"2025-01-02T05:33:56.494Z","updated_at":"2026-02-06T16:06:16.979Z","avatar_url":"https://github.com/simplr-sh.png","language":"TypeScript","readme":"# @simplr-sh/swapi-sdk\n\nA TypeScript SDK for interacting with the Star Wars API (SWAPI) @ [Simplr's SW-API](https://github.com/simplr-sh/sw-api).\n\n## Installation\n\n```bash\n# Using bun\nbun i @simplr-sh/swapi-sdk\n```\n```bash\n# Using NPM\nnpm i @simplr-sh/swapi-sdk\n```\n```bash\n# Using NPM\nyarn i @simplr-sh/swapi-sdk\n```\n\n\n## Features\n\n- Full TypeScript support\n- Type-safe responses\n- Simple and intuitive API\n\n## API Reference\n\n### Films\n- `getFilms()`: Get all Star Wars films\n- `getFilmById(id: number)`: Get a film by ID\n- `getFilmSchema()`: Get the film schema\n- `searchFilms(query: string)`: Search films by title\n\n### People\n- `getPeople()`: Get all people\n- `getPersonById(id: number)`: Get a person by ID\n- `getPersonSchema()`: Get the person schema\n- `searchPeople(query: string)`: Search people by name\n\n### Planets\n- `getPlanets()`: Get all planets\n- `getPlanetById(id: number)`: Get a planet by ID\n- `getPlanetSchema()`: Get the planet schema\n- `searchPlanets(query: string)`: Search planets by name\n\n### Species\n- `getSpecies()`: Get all species\n- `getSpeciesById(id: number)`: Get a species by ID\n- `getSpeciesSchema()`: Get the species schema\n- `searchSpecies(query: string)`: Search species by name\n\n### Starships\n- `getStarships()`: Get all starships\n- `getStarshipById(id: number)`: Get a starship by ID\n- `getStarshipSchema()`: Get the starship schema\n- `searchStarships(query: string)`: Search starships by name\n\n### Vehicles\n- `getVehicles()`: Get all vehicles\n- `getVehicleById(id: number)`: Get a vehicle by ID\n- `getVehicleSchema()`: Get the vehicle schema\n- `searchVehicles(query: string)`: Search vehicles by name\n\n### Root\n- `getRoot()`: Get the API root endpoints\n\n## Usage\n\n```typescript\nimport { films, people, planets, species, starships, vehicles } from '@simplr-sh/swapi-sdk';\n\n// Get all films\nconst allFilms = await films.getFilms();\n\n// Search for people\nconst searchResults = await people.searchPeople('luke');\n\n// Get a specific planet\nconst tatooine = await planets.getPlanetById(1);\n```\n\n## Development\n\n```bash\nbun install\nbun run index.ts\n```\n\nThis project was created using `bun init` in bun v1.1.42.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplr-sh%2Fswapi-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplr-sh%2Fswapi-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplr-sh%2Fswapi-sdk/lists"}