{"id":30358399,"url":"https://github.com/trophyso/trophy-node","last_synced_at":"2025-08-19T10:29:25.967Z","repository":{"id":276464839,"uuid":"929343299","full_name":"trophyso/trophy-node","owner":"trophyso","description":"NodeJS SDK for the Trophy API","archived":false,"fork":false,"pushed_at":"2025-07-30T14:09:17.000Z","size":165,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-08T23:29:06.109Z","etag":null,"topics":["api","api-client","expressjs","gamification","gamification-engine","gamification-framework","gamification-platform","nestjs","nextjs","nodejs","npm-package","sdk"],"latest_commit_sha":null,"homepage":"https://trophy.so","language":"JavaScript","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/trophyso.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}},"created_at":"2025-02-08T10:24:14.000Z","updated_at":"2025-07-30T14:09:21.000Z","dependencies_parsed_at":"2025-04-09T23:23:56.317Z","dependency_job_id":"4601c00a-089a-49df-ba97-4db03e72bd61","html_url":"https://github.com/trophyso/trophy-node","commit_stats":null,"previous_names":["trophyso/trophy-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trophyso/trophy-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trophyso","download_url":"https://codeload.github.com/trophyso/trophy-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trophyso%2Ftrophy-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271130819,"owners_count":24704226,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"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":["api","api-client","expressjs","gamification","gamification-engine","gamification-framework","gamification-platform","nestjs","nextjs","nodejs","npm-package","sdk"],"created_at":"2025-08-19T10:29:25.303Z","updated_at":"2025-08-19T10:29:25.956Z","avatar_url":"https://github.com/trophyso.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trophy NodeJS SDK\n\nThe Trophy Node SDK provides convenient access to the Trophy API from applications written in\nserver-side JavaScript.\n\nTrophy provides APIs and tools for adding gamification to your application, keeping users engaged\nthrough rewards, achievements, streaks, and personalized communication.\n\n## Installation\n\nInstall the package with:\n\n```bash\nnpm install @trophyso/node\n```\n\n## Usage\n\nThe package needs to be configured with your account's API key, which is available in the Trophy\nweb interface. Set the API key with the following:\n\n```javascript\nconst { TrophyApiClient } = require('@trophyso/node');\n\nconst trophy = new TrophyApiClient({ apiKey: 'your-api-key' });\n```\n\nYou can now access the Trophy API through the `trophy` object.\n\n```javascript\ntrophy.metrics.event('words-written', {\n  user: {\n    id: '18',\n    email: 'jk.rowling@harrypotter.com',\n    tz: 'Europe/London',\n  },\n  value: 750,\n});\n```\n\n## Usage with TypeScript\n\nTrophy maintains types for this SDK. You can use them without any additional configuration.\n\n## Documentation\n\nSee the [Trophy API Docs](https://docs.trophy.so) for more\ninformation on the accessible endpoints.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrophyso%2Ftrophy-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrophyso%2Ftrophy-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrophyso%2Ftrophy-node/lists"}