{"id":21569449,"url":"https://github.com/naturalcycles/optimove-websdk","last_synced_at":"2025-10-29T20:39:25.975Z","repository":{"id":57315862,"uuid":"281918335","full_name":"NaturalCycles/optimove-websdk","owner":"NaturalCycles","description":"Optimove WebSDK for humans","archived":false,"fork":false,"pushed_at":"2023-05-23T10:03:56.000Z","size":245,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-16T05:34:11.461Z","etag":null,"topics":["humans","optimove","optimove-sdk"],"latest_commit_sha":null,"homepage":"","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/NaturalCycles.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","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":"2020-07-23T10:13:34.000Z","updated_at":"2023-05-23T09:40:16.000Z","dependencies_parsed_at":"2024-10-25T23:30:14.072Z","dependency_job_id":"bfe1776b-2701-489c-bc3e-5a491411ae20","html_url":"https://github.com/NaturalCycles/optimove-websdk","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.46153846153846156","last_synced_commit":"0aef35aac593fee9d84cc7fcb60c6bc49e8f93e8"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Foptimove-websdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Foptimove-websdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Foptimove-websdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NaturalCycles%2Foptimove-websdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NaturalCycles","download_url":"https://codeload.github.com/NaturalCycles/optimove-websdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166677,"owners_count":20409178,"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":["humans","optimove","optimove-sdk"],"created_at":"2024-11-24T11:09:31.995Z","updated_at":"2025-10-29T20:39:25.879Z","avatar_url":"https://github.com/NaturalCycles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## optimove-websdk\n\n\u003e Optimove WebSDK for humans\n\n[![npm](https://img.shields.io/npm/v/optimove-websdk/latest.svg)](https://www.npmjs.com/package/optimove-websdk)\n[![min.gz size](https://badgen.net/bundlephobia/minzip/optimove-websdk)](https://bundlephobia.com/result?p=optimove-websdk)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\n# Why\n\n\u003e Because Optimove is complicated™\n\n# Features\n\n- Promisified API\n- Reasonable defaults\n- Typescript types built-in\n- Bundled, so e.g. ad-blockers won't block it just by url name\n- Loads config with hard-coded `https://` schema, which allows it to work under e.g `ionic://`,\n  `capacitor://`, `file://`, etc schemas\n- Allows to not care about `optimoveSDK.initialize`, since it's called lazily on first usage.\n- Allows to (hopefully) not care about \"is it loaded yet?\" problem\n- ~~Zero dependencies~~ (1 small tree-shakeable dependency), exports ESM / 🌲-shakeable\n- Automatically handles `snakeToCamel`, `camelToSnake` case conversions when reporting events and\n  custom properties\n\n# Usage\n\n```typescript\nimport { OptimoveWebSK } from 'optimove-websdk'\n\nconst sdk = new OptimoveWebSDK({\n  tenantToken: 'lalala',\n  configVersion: '1.0.0',\n})\n\n// Will lazily initialize SDK on the first call (hence the `await`)\nawait sdk.registerUser('someCustomerId', 'some@email.com')\n\n// Skip await freely, if it's more convenient\nvoid sdk.registerUser('someCustomerId', 'some@email.com')\n\n// Low-level API is available via `window.optimoveSDK` too (Window interface is augmented with its types already)\nwindow.optimoveSDK.API.registerUser('someCustomerId', 'some@email.com')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalcycles%2Foptimove-websdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturalcycles%2Foptimove-websdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalcycles%2Foptimove-websdk/lists"}