{"id":19449407,"url":"https://github.com/techplexengineer/onshape-ts-fetch-client","last_synced_at":"2026-05-15T11:17:07.572Z","repository":{"id":174837722,"uuid":"644150698","full_name":"TechplexEngineer/onshape-ts-fetch-client","owner":"TechplexEngineer","description":"Depreciated Onshape API Client with apikey middleware, generated with openapi","archived":false,"fork":false,"pushed_at":"2023-11-18T23:36:32.000Z","size":4607,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-19T11:24:58.442Z","etag":null,"topics":["cad","onshape","openapi"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/onshape-ts-fetch-client","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/TechplexEngineer.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":"2023-05-22T23:41:10.000Z","updated_at":"2023-11-18T23:34:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c3153ef-caaf-4bfe-a3ec-55669f9c332a","html_url":"https://github.com/TechplexEngineer/onshape-ts-fetch-client","commit_stats":null,"previous_names":["techplexengineer/onshape-ts-fetch-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TechplexEngineer/onshape-ts-fetch-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fonshape-ts-fetch-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fonshape-ts-fetch-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fonshape-ts-fetch-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fonshape-ts-fetch-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechplexEngineer","download_url":"https://codeload.github.com/TechplexEngineer/onshape-ts-fetch-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fonshape-ts-fetch-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33064672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["cad","onshape","openapi"],"created_at":"2024-11-10T16:32:25.203Z","updated_at":"2026-05-15T11:17:07.554Z","avatar_url":"https://github.com/TechplexEngineer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Onshape Typescript Fetch client\n===============================\n\n# WARNING: Unmaintained\n\nThe openapi generator typescript-fetch generates code that does not compile.\nRecomment alternate approach such as: https://github.com/drwpow/openapi-typescript\n\nREST Api client for Onshape generated from Openapi spec https://cad.onshape.com/api/openapi using the typescript-fetch generator.\n\nSee src/example.test.ts for a working example.\n```typescript\nimport 'dotenv/config'\n\n\nimport {\n    Configuration, APIKeyAuthMiddleware, DocumentApi, OnshapeClient\n} from 'onshape-ts-fetch-client'\n\nconst secretKey = process.env.ONSHAPE_SECRET_KEY\nconst accessKey = process.env.ONSHAPE_ACCESS_KEY\n\n\nconst config = new Configuration({\n    middleware: [\n        APIKeyAuthMiddleware(secretKey, accessKey)\n    ]\n});\n\nconst did = \"f00ba40ee71d7a9324b5af07\"\n\n// Option 1: accessing the api's individually\nconst docApi = new DocumentApi(config)\n\nconst docVersions = await docApi.getDocumentVersions({did})\n\n// Option 2: Using the api client instance\nconst client = new OnshapeClient(config);\nconst docVersions2 = await client.DocumentApi.getDocumentVersions({did});\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechplexengineer%2Fonshape-ts-fetch-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechplexengineer%2Fonshape-ts-fetch-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechplexengineer%2Fonshape-ts-fetch-client/lists"}