{"id":20147459,"url":"https://github.com/dittofeed/sdk-node","last_synced_at":"2025-03-03T00:23:04.315Z","repository":{"id":186198735,"uuid":"674769870","full_name":"dittofeed/sdk-node","owner":"dittofeed","description":"Dittofeed node SDK, used to send events to Dittofeed from node applications, an open source customer engagement platform.","archived":false,"fork":false,"pushed_at":"2023-08-05T20:18:39.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-14T18:35:59.833Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dittofeed.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}},"created_at":"2023-08-04T18:21:25.000Z","updated_at":"2024-07-05T21:02:50.852Z","dependencies_parsed_at":null,"dependency_job_id":"6cda7886-c95c-497f-acc8-a0fb03ee14ac","html_url":"https://github.com/dittofeed/sdk-node","commit_stats":null,"previous_names":["dittofeed/sdk-node"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fsdk-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fsdk-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fsdk-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dittofeed%2Fsdk-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dittofeed","download_url":"https://codeload.github.com/dittofeed/sdk-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587804,"owners_count":19986628,"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":[],"created_at":"2024-11-13T22:29:08.927Z","updated_at":"2025-03-03T00:23:04.293Z","avatar_url":"https://github.com/dittofeed.png","language":"TypeScript","readme":"# @dittofeed/sdk-node\n\nDittofeed node SDK. Use it to send events to Dittofeed, an open source customer engagement platform, from your node application.\n\n## Installation\n\n```bash\n# Using Yarn\nyarn add @dittofeed/sdk-node\n\n# Using NPM\nnpm install --save @dittofeed/sdk-node\n```\n\n## Usage\n\n```typescript\nimport { DittofeedSdk } from '@dittofeed/sdk-node';\n\n// Initialize the sdk with a writeKey, which is used to identify your\n// workspace. This key can be found at\n// https://dittofeed.com/dashboard/settings\nawait DittofeedSdk.init({\n  writeKey: \"Basic abcdefg...\",\n});\n\n// Lets you tie a user to their actions and record traits about them. It\n// includes a unique User ID and any optional traits you know about the\n// user, like their email, name, and more.\nDittofeedSdk.identify({\n  userId: \"123\",\n  traits: {\n    email: \"john@email.com\",\n    firstName: \"John\"\n  },\n});\n\n// The track call is how you record any actions your users perform, along\n// with any properties that describe the action.\nDittofeedSdk.track({\n  userId: \"123\",\n  event: \"Made Purchase\",\n  properties: {\n    itemId: \"abc\",\n  },\n});\n\n// Lets you record whenever a user sees a screen, the mobile equivalent of\n// page, in your mobile app, along with any properties about the screen.\nDittofeedSdk.screen({\n  userId: \"123\",\n  name: \"Recipe Screen\",\n  properties: {\n    recipeType: \"Soup\",\n  },\n});\n\n// Ensures that asynchronously submitted events are flushed synchronously\n// to Dittofeed's API.\nawait DittofeedSdk.flush();\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdittofeed%2Fsdk-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdittofeed%2Fsdk-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdittofeed%2Fsdk-node/lists"}