{"id":35066376,"url":"https://github.com/caasmo/restinpieces-js-sdk","last_synced_at":"2026-05-01T06:03:38.129Z","repository":{"id":287016105,"uuid":"962145300","full_name":"caasmo/restinpieces-js-sdk","owner":"caasmo","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-12T23:42:12.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-13T01:21:52.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/caasmo.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-07T18:06:08.000Z","updated_at":"2026-04-12T23:42:20.000Z","dependencies_parsed_at":"2025-05-10T17:30:35.502Z","dependency_job_id":"386df0f9-2996-48c9-bb9f-9f7cd7cf96df","html_url":"https://github.com/caasmo/restinpieces-js-sdk","commit_stats":null,"previous_names":["caasmo/restinpieces-examples","caasmo/restinpieces-js-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caasmo/restinpieces-js-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caasmo%2Frestinpieces-js-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caasmo%2Frestinpieces-js-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caasmo%2Frestinpieces-js-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caasmo%2Frestinpieces-js-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caasmo","download_url":"https://codeload.github.com/caasmo/restinpieces-js-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caasmo%2Frestinpieces-js-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31851057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":[],"created_at":"2025-12-27T11:06:10.631Z","updated_at":"2026-05-01T06:03:38.094Z","avatar_url":"https://github.com/caasmo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RestInPieces JS SDK\n\nThe official JavaScript SDK for RestInPieces.\n\n## Installation\n\n```bash\nnpm install restinpieces\n```\n\n## Usage\n\n```javascript\nimport Restinpieces from 'restinpieces';\n\nconst client = new Restinpieces({\n  baseURL: 'https://api.yourdomain.com',\n});\n\n// Example: Authenticating with password\nclient.authWithPassword({\n  identity: 'user@example.com',\n  password: 'yourpassword',\n}).then(response =\u003e {\n  console.log('Logged in!', response);\n});\n```\n\n## Features\n\n- **Automated Endpoint Discovery**: Dynamic resolution of backend paths via capabilities.\n- **Authentication Management**: Built-in handling for JWT and OAuth2 workflows.\n- **Lightweight \u0026 Fast**: Bundled with `esbuild` for minimal footprint.\n- **TypeScript Support**: Full type definitions included for a better developer experience.\n- **Modern ESM**: Ships as a pure ES module.\n\n## Development\n\n### Setup\n\nClone the repository and install development dependencies:\n\n```bash\ngit clone https://github.com/caasmo/restinpieces-js-sdk.git\ncd restinpieces-js-sdk\nnpm install\n```\n\n### Building\n\nThe build process uses `esbuild` to bundle the source and `tsc` to generate type definitions. The output is located in the `dist/` directory.\n\n```bash\nnpm run build\n```\n\n### Linting\n\nWe use ESLint with JSDoc support to maintain code quality and documentation consistency.\n\n```bash\n# Run linter\nnpm run lint\n\n# Automatically fix issues\nnpm run lint:fix\n```\n\n### Type Checking\n\nThe SDK is written in JavaScript but provides TypeScript declarations. Types are automatically generated during the build process and verified via the project's configuration.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaasmo%2Frestinpieces-js-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaasmo%2Frestinpieces-js-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaasmo%2Frestinpieces-js-sdk/lists"}