{"id":18383949,"url":"https://github.com/speakeasy-sdks/jasper-ts","last_synced_at":"2025-04-11T23:28:06.719Z","repository":{"id":156839688,"uuid":"626864343","full_name":"speakeasy-sdks/jasper-ts","owner":"speakeasy-sdks","description":"A typescript SDK for accessing the jasper-ts API.","archived":false,"fork":false,"pushed_at":"2024-04-02T21:20:01.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-16T08:15:57.944Z","etag":null,"topics":["ai","api","jasper","sdk","typescript"],"latest_commit_sha":null,"homepage":"https://developers.jasper.ai/docs/getting-started-1","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/speakeasy-sdks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-04-12T10:05:46.000Z","updated_at":"2023-04-24T19:48:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"719e5a5c-3b8f-4093-947d-ea29eb5a775d","html_url":"https://github.com/speakeasy-sdks/jasper-ts","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fjasper-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fjasper-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fjasper-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-sdks%2Fjasper-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speakeasy-sdks","download_url":"https://codeload.github.com/speakeasy-sdks/jasper-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248494272,"owners_count":21113411,"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":["ai","api","jasper","sdk","typescript"],"created_at":"2024-11-06T01:13:05.405Z","updated_at":"2025-04-11T23:28:06.697Z","avatar_url":"https://github.com/speakeasy-sdks.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n   \u003cimg src=\"https://user-images.githubusercontent.com/6267663/231430254-e0ec79d4-98b8-45b5-b019-363e54d02e5b.svg\" width=\"150\" /\u003e\n   \u003ch1\u003eJasper Typescript SDK\u003c/h1\u003e\n   \u003cp\u003eAI content generator for teams\u003c/p\u003e\n   \u003ca href=\"https://developers.jasper.ai/docs\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Docs\u0026message=API Ref\u0026color=5444e4\u0026style=for-the-badge\" /\u003e\u003c/a\u003e\n   \u003ca href=\"https://github.com/speakeasy-sdks/jasper-ts/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/speakeasy-sdks/jasper-ts/speakeasy_sdk_generation.yml?style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/speakeasy-sdks/jasper-ts/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/speakeasy-sdks/jasper-ts?sort=semver\u0026style=for-the-badge\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- Start SDK Installation --\u003e\n## SDK Installation\n\n### NPM\n\n```bash\nnpm add @speakeasy-sdks/jasper-ai\n```\n\n### Yarn\n\n```bash\nyarn add @speakeasy-sdks/jasper-ai\n```\n\u003c!-- End SDK Installation --\u003e\n\n## Authentication\n\nIn order to use Jasper's API, you will need to authenticate every request. We rely on API tokens to authenticate API requests.\n\nTokens are scoped to an admin's permission set and workspace.\n\nAdmins can generate API tokens in their workspace via [Settings/API tokens](https://beta.jasper.ai/settings/tokens)\n\nOnce your API token is generated, you will need to pass it in an 'x-api-key' Authorization header.\n\n```bash\ncurl \n  --location --request GET 'https://api.jasper.ai/v1/$endpoint' \\\n  --header 'x-api-key: $YOUR_API_KEY' \\\n ```\n\n## SDK Example Usage\n\u003c!-- Start SDK Example Usage --\u003e\n```typescript\nimport { Jasper } from \"@speakeasy-sdks/jasper-ai\";\nimport { RunCommandResponse } from \"@speakeasy-sdks/jasper-ai/dist/sdk/models/operations\";\n\nconst sdk = new Jasper({\n  security: {\n    apiKeyAuth: \"YOUR_API_KEY_HERE\",\n  },\n});\n\nsdk.commands.run({\n  inputs: {\n    command: \"Write a haiku about rabbits\",\n    context: \"All rabbits eat kale\",\n  },\n  options: {\n    inputLanguage: \"corrupti\",\n    languageFormality: \"provident\",\n    outputCount: 715190,\n    outputLanguage: \"quibusdam\",\n  },\n}).then((res: RunCommandResponse) =\u003e {\n  if (res.statusCode == 200) {\n    // handle response\n  }\n});\n```\n\u003c!-- End SDK Example Usage --\u003e\n\n\u003c!-- Start SDK Available Operations --\u003e\n## Available Resources and Operations\n\n\n### [commands](docs/commands/README.md)\n\n* [run](docs/commands/README.md#run) - Run a command to generate an AI Output\n\n### [templates](docs/templates/README.md)\n\n* [get](docs/templates/README.md#get) - Retrieve an individual default or custom template available in your workspace by ID\n* [list](docs/templates/README.md#list) - Get a list of available templates\n* [run](docs/templates/README.md#run) - Run a default template or custom template by ID to generate an AI output. See our guide on Using Templates for tips on getting started.\n\u003c!-- End SDK Available Operations --\u003e\n\n### Maturity\n\nThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage\nto a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally\nlooking for the latest version.\n\n### Contributions\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically.\nFeel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !\n\n### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fjasper-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeakeasy-sdks%2Fjasper-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-sdks%2Fjasper-ts/lists"}