{"id":37649626,"url":"https://github.com/contextco/context-node","last_synced_at":"2026-01-16T11:31:03.674Z","repository":{"id":172704201,"uuid":"649085317","full_name":"contextco/context-node","owner":"contextco","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-20T11:13:44.000Z","size":274,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-22T01:28:59.665Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/contextco.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-06-03T18:18:21.000Z","updated_at":"2024-06-20T11:13:48.000Z","dependencies_parsed_at":"2023-10-02T20:42:59.994Z","dependency_job_id":"93e9a322-6ad5-4288-bbff-86fef3ff7801","html_url":"https://github.com/contextco/context-node","commit_stats":null,"previous_names":["contextco/context-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/contextco/context-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contextco%2Fcontext-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contextco%2Fcontext-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contextco%2Fcontext-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contextco%2Fcontext-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contextco","download_url":"https://codeload.github.com/contextco/context-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contextco%2Fcontext-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":"2026-01-16T11:31:02.082Z","updated_at":"2026-01-16T11:31:03.665Z","avatar_url":"https://github.com/contextco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Context Node Library\n\n[![Npm package version](https://badgen.net/npm/v/@contextco/context-node)](https://npmjs.com/package/@contextco/context-node)\n\nThe Context Node library provides a convenient way to interface with the Context APIs. We include pre-defined classes and operations to interact with API resources.\n\n## Installation\n\n### NPM\n\n```shell\nnpm install @contextco/context-node\n```\n\n### Yarn\n\n```shell\nyarn add @contextco/context-node\n```\n\n## Usage\n\nThe library needs to be configured with your Context API key, which is available in the [Context Settings Dashboard](https://go.getcontext.ai/settings).\n\n### Example\n\n```typescript\nimport { ContextAPI, ContextAPIOptionalParams, KnownMessageRole, Credential } from \"context-js\";\n\nconst options: ContextAPIOptionalParams = {\n  credential: new Credential(process.env.CONTEXT_TOKEN),\n};\nconst c = new ContextAPI(options);\n\nawait c.log.conversation({\n  body: {\n    conversation: {\n      messages: [\n        { message: \"You are a helpful assistant.\", role: KnownMessageRole.System, rating: 0 },\n        { message: \"Hi, how are you doing?\", role: KnownMessageRole.User, rating: 0 },\n        { message: \"I'm doing super well, how are you?\", role: KnownMessageRole.Assistant, rating: 1 }\n      ],\n    }\n  }\n})\n```\n\n## Appendix\n\n```yaml\ntypescript: true\noutput-folder: generated\nsource-code-folder-path: src\npackage-name: \"@contextco/context-generated\"\nclear-output-folder: true\ncredential-default-policy-type: BearerTokenCredentialPolicy\nazure-arm: false\nadd-credentials: true\ncredential-scopes: all\nmodels-mode: msrest\ngenerate-metadata: true\nuse:\n  - \"@autorest/typescript@6.0.8\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontextco%2Fcontext-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontextco%2Fcontext-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontextco%2Fcontext-node/lists"}