{"id":19201486,"url":"https://github.com/padcom/segment-api","last_synced_at":"2025-07-16T14:34:49.598Z","repository":{"id":62354866,"uuid":"337739569","full_name":"padcom/segment-api","owner":"padcom","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-10T14:06:16.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T03:06:42.273Z","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/padcom.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":"2021-02-10T13:55:05.000Z","updated_at":"2021-02-10T14:31:38.000Z","dependencies_parsed_at":"2022-10-31T10:30:26.949Z","dependency_job_id":null,"html_url":"https://github.com/padcom/segment-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/padcom/segment-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padcom%2Fsegment-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padcom%2Fsegment-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padcom%2Fsegment-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padcom%2Fsegment-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/padcom","download_url":"https://codeload.github.com/padcom/segment-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padcom%2Fsegment-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265518475,"owners_count":23780967,"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-09T12:38:59.804Z","updated_at":"2025-07-16T14:34:49.548Z","avatar_url":"https://github.com/padcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Segment API as module\n\nThis is a module that acts as a forwarder to `window.analytics` created by the Segment initializer.\n\n## API\n\nAll the methods explained by the client are forwarded to `windows.analytics`. Check out their documentation at https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/\n\nThe following has been added to make the initialization configurable:\n\n### `init(key)` - initialize Segment API\n\nThe `key` is what you can find in the settings for your source in Segment. It's been extracted as a separate function so that you can initailize it at a time of your choosing rather than as a separate script. The `key` can also be different depending on the application and/or environment you're using.\n\n## Credits\n\nCreated by Matthias Hryniszak \\\u003cpadcom@gmail.com\\\u003e. Please let me know if you want to extend it in any way or if you find any bugs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadcom%2Fsegment-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpadcom%2Fsegment-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadcom%2Fsegment-api/lists"}