{"id":49523084,"url":"https://github.com/trepaorg/trepa-sdk","last_synced_at":"2026-06-27T14:00:46.483Z","repository":{"id":355053944,"uuid":"1226462387","full_name":"TrepaOrg/trepa-sdk","owner":"TrepaOrg","description":"Trepa SDK is the official TypeScript SDK for Trepa.","archived":false,"fork":false,"pushed_at":"2026-06-24T09:32:27.000Z","size":759,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-06-24T11:19:48.320Z","etag":null,"topics":["openapi","sdk","solana","trepa","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@trepa/sdk","language":"TypeScript","has_issues":false,"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/TrepaOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2026-05-01T12:35:09.000Z","updated_at":"2026-06-24T09:32:31.000Z","dependencies_parsed_at":"2026-05-15T17:01:34.228Z","dependency_job_id":null,"html_url":"https://github.com/TrepaOrg/trepa-sdk","commit_stats":null,"previous_names":["trepaorg/trepa-sdk"],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/TrepaOrg/trepa-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrepaOrg%2Ftrepa-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrepaOrg%2Ftrepa-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrepaOrg%2Ftrepa-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrepaOrg%2Ftrepa-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrepaOrg","download_url":"https://codeload.github.com/TrepaOrg/trepa-sdk/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrepaOrg%2Ftrepa-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34855826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"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":["openapi","sdk","solana","trepa","typescript"],"created_at":"2026-05-02T01:01:38.185Z","updated_at":"2026-06-27T14:00:46.473Z","avatar_url":"https://github.com/TrepaOrg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.png\" alt=\"Trepa\" width=\"140\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e@trepa/sdk\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eTypeScript SDK for the Trepa precision-prediction protocol\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@trepa/sdk\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@trepa/sdk?style=flat-square\u0026logo=npm\u0026logoColor=white\u0026color=CB3837\" alt=\"npm\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://nodejs.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/node-%3E%3D20-339933?style=flat-square\u0026logo=nodedotjs\u0026logoColor=white\" alt=\"Node.js\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://pnpm.io/\"\u003e\u003cimg src=\"https://img.shields.io/badge/pnpm-%3E%3D10.33.1-f69220?style=flat-square\u0026logo=pnpm\u0026logoColor=white\" alt=\"pnpm\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/TypeScript-6-3178C6?style=flat-square\u0026logo=typescript\u0026logoColor=white\" alt=\"TypeScript\" /\u003e\n  \u003ca href=\"https://solana.com/\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Solana\u0026message=mainnet\u0026color=9945FF\u0026logo=solana\u0026logoColor=white\u0026style=flat-square\" alt=\"Solana mainnet\" /\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue?style=flat-square\" alt=\"MIT License\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://docs.trepa.io/developers/introduction\"\u003e\u003cstrong\u003e📚 Read the docs →\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003e [!WARNING]\n\u003e **Experimental.** The SDK is under active development and has not yet hit a stable release.\n\n## Install\n\n```bash\nnpm install @trepa/sdk\n```\n\n## Quickstart\n\nPut your credentials in a `.env` file (and add it to `.gitignore`):\n\n```sh\nTREPA_API_KEY=trp_your_api_key\nTREPA_PRIVATE_KEY=your_base58_wallet_private_key\n```\n\nWrite the bot:\n\n```ts\nimport { credentialsFromEnv, Trepa } from '@trepa/sdk';\n\nconst trepa = new Trepa({\n  credentials: credentialsFromEnv(),\n});\n\nawait trepa.bots.run({\n  predict: (pool) =\u003e ({ value: 65_000, stake: pool.min_stake }),\n});\n```\n\n### Run the bot\n\n```bash\nnode bot.ts\n```\n\n\u003e [!TIP]\n\u003e Node.js 22.12 or newer can execute `.ts` entrypoints directly. On older Node versions, compile with `tsc` and run the emitted JavaScript, or use a runner such as `tsx` instead.\n\nFull guides at **[docs.trepa.io/developers](https://docs.trepa.io/developers/introduction)**:\n\n- [Quickstart](https://docs.trepa.io/developers/quickstart)\n- [Writing bots](https://docs.trepa.io/developers/writing-bots)\n- [SDK reference](https://docs.trepa.io/developers/sdk-reference)\n\n## Examples\n\n- [`examples/workshop`](./examples/workshop)\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrepaorg%2Ftrepa-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrepaorg%2Ftrepa-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrepaorg%2Ftrepa-sdk/lists"}