{"id":26045255,"url":"https://github.com/northwood-labs/devsec-tools-sdk-ts","last_synced_at":"2026-04-11T00:51:11.476Z","repository":{"id":281048258,"uuid":"943592559","full_name":"northwood-labs/devsec-tools-sdk-ts","owner":"northwood-labs","description":"TypeScript SDK for DevSecTools API.","archived":false,"fork":false,"pushed_at":"2025-03-06T17:24:26.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T18:31:11.214Z","etag":null,"topics":["developer-tools","devsec","devsecops","devsectools","javascript","sdk","typescript"],"latest_commit_sha":null,"homepage":"https://devsec.tools","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/northwood-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-03-06T00:43:07.000Z","updated_at":"2025-03-06T17:24:29.000Z","dependencies_parsed_at":"2025-03-07T01:30:35.193Z","dependency_job_id":null,"html_url":"https://github.com/northwood-labs/devsec-tools-sdk-ts","commit_stats":null,"previous_names":["northwood-labs/devsec-tools-sdk-ts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/northwood-labs%2Fdevsec-tools-sdk-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/northwood-labs%2Fdevsec-tools-sdk-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/northwood-labs%2Fdevsec-tools-sdk-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/northwood-labs%2Fdevsec-tools-sdk-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/northwood-labs","download_url":"https://codeload.github.com/northwood-labs/devsec-tools-sdk-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242453571,"owners_count":20130791,"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":["developer-tools","devsec","devsecops","devsectools","javascript","sdk","typescript"],"created_at":"2025-03-07T19:34:24.746Z","updated_at":"2025-12-31T00:52:01.480Z","avatar_url":"https://github.com/northwood-labs.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DevSecTools SDK for TypeScript\n\n**Experimental. Untested. Not ready for primetime. Exploring code generation.**\n\n## Overview\n\nA TypeScript/JavaScript SDK for interacting with the [DevSecTools API].\n\nThis client provides an easy way to interact with the [DevSecTools API], which scans websites for security-related information such as HTTP version support and TLS configurations.\n\n* ✅ Requires [TypeScript] 5.8+.\n* ✅ Uses [fetch()] to handle HTTP requests and supports [async]/[await].\n* ✅ Fully-typed; ensures strong IDE support with proper type hints and [TSDoc] docblocks.\n\n## Model\n\n* [openapi.json](https://github.com/northwood-labs/devsec-tools/raw/refs/heads/main/openapi.json)\n\n## Usage\n\n### Instantiating with default configuration\n\n```typescript\nimport { Client } from \"@northwood-labs/devsec-tools-sdk\";\n\nconst client = new Client();\n```\n\n### Custom configuration\n\n```typescript\nimport { Client, ENDPOINT } from \"@northwood-labs/devsec-tools-sdk\";\n\n// Using a known endpoint (strictly typed)\nconst client = new Client({\n  baseUrl: ENDPOINT.LOCALDEV,\n  timeoutSeconds: 10,\n});\n\n// Using a custom API endpoint (still allowed)\nconst customClient = new Client({\n  baseUrl: \"https://custom-endpoint.com\",\n  timeoutSeconds: 15,\n});\n```\n\n### Updating configuration at runtime\n\n```typescript\nimport { Client, ENDPOINT } from \"@northwood-labs/devsec-tools-sdk\";\n\nconst client = new Client();\n\nclient.setBaseUrl(ENDPOINT.LOCALDEV);\nclient.setTimeoutSeconds(15);\n```\n\n### Making single requests\n\n```typescript\nimport { Client, ENDPOINT } from \"@northwood-labs/devsec-tools-sdk\";\n\nasync function run() {\n  const client = new Client();\n\n  try {\n    const results = await client.http(\"example.com\");\n    console.log(\"Results:\", results);\n  } catch (error) {\n    console.error(\"Unexpected Error:\", error);\n  }\n}\n\nrun();\n```\n\n### Making parallel/batch requests\n\n```typescript\nimport { Client, ENDPOINT } from \"@northwood-labs/devsec-tools-sdk\";\n\nasync function run() {\n  const client = new Client();\n\n  try {\n    const results = await client.batchRequests([\n      { method: \"http\", url: \"apple.com\"  },\n      { method: \"tls\",  url: \"google.com\" }\n    ]);\n\n    console.log(\"Batch Results:\", results);\n  } catch (error) {\n    console.error(\"Unexpected Error:\", error);\n  }\n}\n\nrun();\n```\n\n[async]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function\n[await]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await\n[DevSecTools API]: https://devsec.tools\n[fetch()]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch\n[TSDoc]: https://tsdoc.org\n[TypeScript]: https://www.typescriptlang.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorthwood-labs%2Fdevsec-tools-sdk-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorthwood-labs%2Fdevsec-tools-sdk-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorthwood-labs%2Fdevsec-tools-sdk-ts/lists"}