{"id":21429856,"url":"https://github.com/limechain/cli-analytics-sdk","last_synced_at":"2025-10-24T23:07:43.212Z","repository":{"id":55315257,"uuid":"218963031","full_name":"LimeChain/cli-analytics-sdk","owner":"LimeChain","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-05T16:24:59.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T21:48:41.927Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LimeChain.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":"2019-11-01T10:19:05.000Z","updated_at":"2019-11-07T11:33:04.000Z","dependencies_parsed_at":"2022-08-14T20:50:58.578Z","dependency_job_id":null,"html_url":"https://github.com/LimeChain/cli-analytics-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LimeChain/cli-analytics-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fcli-analytics-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fcli-analytics-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fcli-analytics-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fcli-analytics-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LimeChain","download_url":"https://codeload.github.com/LimeChain/cli-analytics-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fcli-analytics-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266578680,"owners_count":23951150,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-22T22:19:27.103Z","updated_at":"2025-10-24T23:07:43.161Z","avatar_url":"https://github.com/LimeChain.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-analytics-sdk\n\nWith this SDK you can set up a client for a Cli-Analytics App.\nCli-Analytics App is an application specially designed to keep a record of all cli commands that are executed for a certain project. How to build it up for you personal needs, find out [here](https://github.com/LimeChain/cli-analytics)\n\nInsatll the SDK as a npm package:\n\n``` npm install cli-analytics-sdk```\n\nSet up the cli analytics client:\n\n```\n    const CliAnalyticsClient = require('cli-analytics-sdk');\n    \n    const analyticsClient = new CliAnalyticsClient({\n        appId: yourAppId,\n        url: yourAppUrl\n    })\n```\nWhere `yourAppId` is the id that would verify your access to the App and `yourAppUrl` is the url that your App is deployed on.\n\n\nTo record a data to your storage:\n\n```\n    analyticsClient.recordEvent(eventType, metadata);\n```\nWhere `eventType` is the name of the cli command that has been executed and `metadata` is array of command's params values if any.\n\nIf you want to query a data:\n\n```\n    let response = await analyticsClient.getEvents(eventType)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimechain%2Fcli-analytics-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimechain%2Fcli-analytics-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimechain%2Fcli-analytics-sdk/lists"}