{"id":18078078,"url":"https://github.com/litlyx/litlyx","last_synced_at":"2025-05-14T21:05:20.925Z","repository":{"id":242067547,"uuid":"807630053","full_name":"Litlyx/litlyx","owner":"Litlyx","description":"Powerful Analytics Solution. Setup in 30 seconds. Display all your data on a Simple, AI-powered dashboard. Fully self-hostable and GDPR compliant. Alternative to Google Analytics, MixPanel, Plausible, Umami \u0026 Matomo.","archived":false,"fork":false,"pushed_at":"2025-04-13T16:15:04.000Z","size":18236,"stargazers_count":1123,"open_issues_count":5,"forks_count":60,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-13T17:28:19.349Z","etag":null,"topics":["ai","analytics","angular","charts","data","data-analysis","data-visualization","javascript","metrics","nextjs","nodejs","nuxt","open-source","react","statistics","typescript","vue","website"],"latest_commit_sha":null,"homepage":"https://litlyx.com","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Litlyx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-29T13:21:06.000Z","updated_at":"2025-04-12T11:34:49.000Z","dependencies_parsed_at":"2024-06-24T08:00:31.078Z","dependency_job_id":"e096d3a5-2ee9-435a-bbbc-08f732250c6f","html_url":"https://github.com/Litlyx/litlyx","commit_stats":{"total_commits":264,"total_committers":8,"mean_commits":33.0,"dds":0.125,"last_synced_commit":"caef67a0e14e287a8f8455ce6ac1a8eff4932db8"},"previous_names":["litlyx/litlyx"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litlyx%2Flitlyx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litlyx%2Flitlyx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litlyx%2Flitlyx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litlyx%2Flitlyx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Litlyx","download_url":"https://codeload.github.com/Litlyx/litlyx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248759758,"owners_count":21157224,"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":["ai","analytics","angular","charts","data","data-analysis","data-visualization","javascript","metrics","nextjs","nodejs","nuxt","open-source","react","statistics","typescript","vue","website"],"created_at":"2024-10-31T12:11:41.276Z","updated_at":"2025-04-13T18:27:45.388Z","avatar_url":"https://github.com/Litlyx.png","language":"Vue","readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/claim.png\"/\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e\n📚 \u003ca href=\"https://docs.litlyx.com\"\u003eDocs\u003c/a\u003e 👾 \u003ca href=\"https://discord.gg/9cQykjsmWX\"\u003eJoin Discord\u003c/a\u003e 🌐 \u003ca href=\"https://litlyx.com\"\u003eWebsite\u003c/a\u003e  🔥 \u003ca href=\"https://dashboard.litlyx.com\"\u003eTry Litlyx Cloud. It's Free forever.\u003c/a\u003e \n\u003c/h4\u003e\n\n#\n\u003cp align=\"center\"\u003e\n  Litlys is a modern, developer-friendly, cookie-free analytics tool.\u003cbr\u003e\n  Setup takes less than 30 seconds! Completely self-hostable with docker.\u003cbr\u003e\n  Alternative to Google Analytics, Matomo, Umami, Plausible \u0026 Simple Analytics.\n\u003c/p\u003e\n\n#\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/dashboard-clip.png\"/\u003e\n\u003c/p\u003e\n\n#\n\n## Get Started on our Cloud Version\n\nSign-up on [Litlyx.com](https://dashboard.litlyx.com) and create a project. Then simply use your `project_id` to connect Litlyx to your website.\n\n## Universal Installation\n\n```html\n\u003cscript defer data-project=\"your_project_id\" src=\"https://cdn.jsdelivr.net/gh/litlyx/litlyx-js/browser/litlyx.js\"\u003e\u003c/script\u003e\n```\n\nImporting Litlyx with a direct script instantly starts tracking `Visits`, `Top Pages`, `Bouncing Rate`,  `Real-Time Online Users`, `Unique Visitors`, `Countries`, and `Average Session Duration`.\n\n# All Javascript Runtimes\n\nYou can install Litlyx using `npm`, `pnpm` or any modern package managers:\n\n```sh\nnpm i litlyx-js\n```\n\nLitlyx natively works with all JavaScript / TypeScript frameworks. You can use Litlyx in all WordPress Websites by injecting JS code using a third party plug-in. \n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/tech.png\" /\u003e\n\u003c/p\u003e\n\n# Import using a package manager\n\nFirst, Import litlyx-js library into your code:\n\n```js\nimport { Lit } from 'litlyx-js';\n```\n\nOnce imported, you need to initialize Litlyx:\n\n```js\nLit.init('your_project_id');\n```\n\nAfter initialization, Litlyx will automatically track web analytics such as `Page visits`, `Real-Time Online Users`, `Unique Vistors`, and many more.\n\n# Track Custom Events (Actions)\n\nYou aren't just limited to the built-in KPIs. With Litlyx, you can create your own events to track in your project.\n\n```js\nLit.event('click_on_buy_item');\n```\n\nIf you want more specific tracking, you can use the `metadata` field, like this:\n\n```js\nLit.event('click_on_buy_item', {\n  metadata: {\n    'product-name': 'Coca-Cola',\n    'price': 1.50,\n    'currency': 'EUR'\n  }\n});\n```\n\nLitlyx makes it easy for you to tailor your analytics to your project's needs.\n\n\n# Fire Your First Event with cURL\n\nWant to quickly see how Litlyx works with events? Use the cURL command below to send a test event. Just replace the `project_id` with your actual project ID in your terminal.\n\n```bash\ncurl -X POST \"https://broker.litlyx.com/event\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"pid\": \"project_id\",\n    \"name\": \"testEvent1\",\n    \"metadata\": \"{\\\"test\\\": \\\"something\\\"}\",\n    \"website\": \"something\",\n    \"userAgent\": \"something\"\n  }'\n```\n\n# Self-hosting with docker\n\nTo self-host the Litlyx dashboard, first **clone** this repository. (Litlyx's Docker images are hosted on DockerHub). \n\nThen run the following command:\n```bash\ndocker-compose up\n```\n\nat localhost:3000 you will see your own instance of the Litlyx Dashboard.\n\n## Forward data to your self-hosted instance with script tag\n\nTo forward your data on your self-hosted instance, you need to set up the following variables: `data-host`, `data-port`,  `data-secure`(`true` if it is HTTPS or `false` if it is HTTP).\n\n```html\n\u003cscript defer data-project=\"your_project_id\" \n        data-host=\"your-host-name\" \n        data-port=\"your-port\" \n        data-secure=\"true/false\"\n        src=\"https://cdn.jsdelivr.net/gh/litlyx/litlyx-js/browser/litlyx.js\"\u003e\n\u003c/script\u003e\n```\n\n# Read our docs\n\nFor more info on how to use litlyx read our [documentation](https://docs.litlyx.com). \n\n\n# Stay updated with our roadmap\n\nTo keep track on what we are cooking behind the scene we have a public [Roadmap](https://litlyx.com/roadmap) for you to check. \n\n\n# Join discord\n\nIf you need more information, want to interact with us or the community, need help, or have feedback to share, feel free to join us on Litlyx's [Discord](https://discord.gg/9cQykjsmWX) channel.\n\n# Contribution\n\nIf you want to contribute to Litlyx's development, reach out to us on [Discord](https://discord.gg/9cQykjsmWX) in our `#contribution` channel.\n\n### Thank you!\n\u003ca href=\"https://github.com/litlyx/litlyx/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=litlyx/litlyx\" /\u003e\n\u003c/a\u003e\n\n# License\n\nLitlyx is licensed under the [Apache 2.0](/LICENSE) license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitlyx%2Flitlyx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitlyx%2Flitlyx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitlyx%2Flitlyx/lists"}