{"id":20631948,"url":"https://github.com/meehow/node-localytics","last_synced_at":"2025-07-09T23:33:08.328Z","repository":{"id":89643961,"uuid":"45646890","full_name":"meehow/node-localytics","owner":"meehow","description":"Localytics API wrapper","archived":false,"fork":false,"pushed_at":"2015-11-13T21:39:30.000Z","size":0,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T10:07:03.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/meehow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-05T23:40:07.000Z","updated_at":"2021-09-05T14:17:53.000Z","dependencies_parsed_at":"2023-03-13T18:07:17.044Z","dependency_job_id":null,"html_url":"https://github.com/meehow/node-localytics","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"89179523c641a746103167182010adcd05d91945"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meehow/node-localytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meehow%2Fnode-localytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meehow%2Fnode-localytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meehow%2Fnode-localytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meehow%2Fnode-localytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meehow","download_url":"https://codeload.github.com/meehow/node-localytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meehow%2Fnode-localytics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505262,"owners_count":23618911,"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-16T14:14:26.966Z","updated_at":"2025-07-09T23:33:08.308Z","avatar_url":"https://github.com/meehow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[Localytics](http://www.localytics.com/) API wrapper.\n\n- Configurable from __env__ variables or a source code\n- Returns a promise\n- Don't require external modules\n- Capable of using Keep-Alive connections\n\nSo far only [Profiles API](http://docs.localytics.com/index.html#Dev/Profiles/api.html)\nis implemented.\n\nInstallation\n============\n\n`npm i localytics --save`\n\nUsage\n=====\n\nDefine API Keys `LOCALYTICS_KEY` and `LOCALYTICS_SECRET`. You can find them in your\n[localitics profile](https://dashboard.localytics.com/settings/apikeys).\n\nKeys can be passed from env or as arguments when library is initialized:\n```javascript\nvar localytics = require('localytics')('MY_API_KEY', 'MY_API_SECRET');\n```\nor from shell, or [Heroku Config Vars](https://devcenter.heroku.com/articles/config-vars)\n```bash\nexport LOCALYTICS_KEY=\"MY_API_KEY\"\nexport LOCALYTICS_SECRET=\"MY_API_SECRET\"\n```\n\nExample\n=======\n```javascript\nvar localytics = require('localytics')();\n\nlocalytics.setProfile('Bob', {\n  $first_name: 'Bob',\n  favoriteNumber: 7,\n  toDelete: null,\n}).then(console.log).catch(console.log);\n```\n\nPromises\n=========\n\n### `setProfile(id, data)`\n\n### `getProfile(id)`\n\n### `deleteProfile(id)`\n\nTo Do\n=====\n\n- Add [Push API](http://docs.localytics.com/index.html#Dev/transactional-push.html)\n- Add [Query API](http://docs.localytics.com/index.html#Dev/query-api.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeehow%2Fnode-localytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeehow%2Fnode-localytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeehow%2Fnode-localytics/lists"}