{"id":13496327,"url":"https://github.com/logux/client","last_synced_at":"2025-05-14T11:13:26.150Z","repository":{"id":13202669,"uuid":"73872052","full_name":"logux/client","owner":"logux","description":"Logux base components to build web client","archived":false,"fork":false,"pushed_at":"2025-05-02T15:12:05.000Z","size":6440,"stargazers_count":696,"open_issues_count":4,"forks_count":48,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-02T16:24:34.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://logux.org/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logux.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2016-11-16T01:39:51.000Z","updated_at":"2025-05-01T10:48:42.000Z","dependencies_parsed_at":"2024-02-21T00:59:19.406Z","dependency_job_id":"ed2d991e-e117-4441-8eb4-30a5d1756a64","html_url":"https://github.com/logux/client","commit_stats":{"total_commits":1031,"total_committers":36,"mean_commits":28.63888888888889,"dds":0.08632395732298737,"last_synced_commit":"70ea410ff22d070b300e71cecbd6a70c71434954"},"previous_names":["logux/logux-client"],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logux%2Fclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logux%2Fclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logux%2Fclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logux%2Fclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logux","download_url":"https://codeload.github.com/logux/client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129529,"owners_count":22019628,"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-07-31T19:01:46.026Z","updated_at":"2025-05-14T11:13:26.112Z","avatar_url":"https://github.com/logux.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Logux Client [![Cult Of Martians][cult-img]][cult]\n\n\u003cimg align=\"right\" width=\"95\" height=\"148\" title=\"Logux logotype\"\n     src=\"https://logux.org/branding/logotype.svg\"\u003e\n\nLogux is a new way to connect client and server. Instead of sending\nHTTP requests (e.g., AJAX and GraphQL) it synchronizes log of operations\nbetween client, server, and other clients.\n\n* **[Guide, recipes, and API](https://logux.org/)**\n* **[Issues](https://github.com/logux/logux/issues)**\n  and **[roadmap](https://github.com/orgs/logux/projects/1)**\n* **[Projects](https://logux.org/guide/architecture/parts/)**\n  inside Logux ecosystem\n\nThis repository contains Logux base components to build web client:\n\n* `CrossTabClient` and `Client` to create web client for Logux.\n* `IndexedStore` to store Logux log in `IndexedDB`.\n* `badge()` widget to show Logux synchronization status in UI.\n* `status()` to write own UI to show Logux synchronization status in UI.\n* `attention()`, `confirm()`, `favicon()` to improve UX in Logux web app.\n* `log()` to print Logux synchronization status to browser DevTools.\n\nCheck **[demo page]** for widget UI.\n\n[demo page]: https://logux.github.io/client/\n[cult-img]: http://cultofmartians.com/assets/badges/badge.svg\n[cult]: http://cultofmartians.com/done.html\n\n---\n\n\u003cimg src=\"https://cdn.evilmartians.com/badges/logo-no-label.svg\" alt=\"\" width=\"22\" height=\"16\" /\u003e  Made at \u003cb\u003e\u003ca href=\"https://evilmartians.com/devtools?utm_source=logux-client\u0026utm_campaign=devtools-button\u0026utm_medium=github\"\u003eEvil Martians\u003c/a\u003e\u003c/b\u003e, product consulting for \u003cb\u003edeveloper tools\u003c/b\u003e.\n\n---\n\n\n## Install\n\n```sh\nnpm install @logux/core @logux/client nanostores\n```\n\n\n## Usage\n\nSee [documentation] for Logux API.\n\n```js\nimport { CrossTabClient, badge, badgeEn, log } from '@logux/client'\nimport { badgeStyles } from '@logux/client/badge/styles'\n\nlet userId = document.querySelector('meta[name=user]').content\nlet token = document.querySelector('meta[name=token]').content\n\nconst client = new CrossTabClient({\n  subprotocol: '1.0.0',\n  server: 'wss://example.com:1337',\n  userId,\n  token\n})\n\nbadge(client, { messages: badgeEn, styles: badgeStyles })\nlog(client)\n\nclient.start()\n```\n\n[documentation]: https://github.com/logux/logux\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogux%2Fclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogux%2Fclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogux%2Fclient/lists"}