{"id":21244416,"url":"https://github.com/unyt-org/example-simple-messenger","last_synced_at":"2025-07-14T16:38:16.782Z","repository":{"id":195053956,"uuid":"691713651","full_name":"unyt-org/example-simple-messenger","owner":"unyt-org","description":"A simple messenger based on UIX and DATEX","archived":false,"fork":false,"pushed_at":"2025-03-21T23:00:30.000Z","size":835,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T12:17:49.491Z","etag":null,"topics":["datex","messenger","pointers","typescript","uix","uix-example","unyt"],"latest_commit_sha":null,"homepage":"https://messenger.example.unyt.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/unyt-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"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},"funding":{"github":["unyt-org"],"patreon":"unyt","custom":["https://unyt.org/donate"]}},"created_at":"2023-09-14T18:22:43.000Z","updated_at":"2025-03-21T23:00:33.000Z","dependencies_parsed_at":"2023-09-16T10:17:03.562Z","dependency_job_id":"8720aed7-5d12-4913-ba43-62a6e82ae3c9","html_url":"https://github.com/unyt-org/example-simple-messenger","commit_stats":null,"previous_names":["unyt-org/example-simple-messenger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-simple-messenger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-simple-messenger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-simple-messenger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unyt-org%2Fexample-simple-messenger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unyt-org","download_url":"https://codeload.github.com/unyt-org/example-simple-messenger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813825,"owners_count":21165631,"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":["datex","messenger","pointers","typescript","uix","uix-example","unyt"],"created_at":"2024-11-21T01:25:00.470Z","updated_at":"2025-04-14T02:51:40.979Z","avatar_url":"https://github.com/unyt-org.png","language":"TypeScript","funding_links":["https://github.com/sponsors/unyt-org","https://patreon.com/unyt","https://unyt.org/donate"],"categories":[],"sub_categories":[],"readme":"# Example: Simple Messenger\n\nThis repository demonstrates some essential concept of the\n[UIX](https://uix.unyt.org) framework such as\n[pointers](https://unyt.org/glossary#pointer) and\n[Web components](https://unyt.org/glossary#web-components) using the example of\na **simple messenger**.\n\nThe repository includes persistent data storage and implements\n[front-end](https://unyt.org/glossary#back-end) rendering.\n\n## Installation\n\n1. Install the **UIX command line tool** following the\n   [Getting Started](https://docs.unyt.org/manual/uix/getting-started#the-uix-command-line-tool)\n   guide in our documentation.\n\n2. Clone this repository to your local machine:\n\n   ```bash\n   $ git clone https://github.com/unyt-org/example-simple-messenger.git\n   ```\n3. Run the project local\n   ```bash\n   $ uix --port 8000\n   ```\n4. Navigate to your favourite web browser and open http://localhost:8000 to see\n   everything in action.\n\n## Structure\n\nThis diagram outlines the UIX default project structure. We split our code base\nin [back-end](https://unyt.org/glossary#back-end),\n[front-end](https://unyt.org/glossary#front-end), and commons folder.\n\n```\n.\n└── example-simple-messenger/\n    ├── backend/\n    │   ├── .dx                 // Config file for deployment\n    │   └── entrypoint.tsx      // Back-end entrypoint\n    ├── common/\n    │   └── components/\n    │       ├── ChatPage.scss   // Chat style declaration\n    │       ├── ChatPage.tsx    // Chat component\n    │       ├── Overview.scss   // Overview style declaration\n    │       └── Overview.tsx    // Overview component\n    ├── frontend/\n    │   ├── entrypoint.css      // Front-end style declaration\n    │   └── entrypoint.tsx      // Front-end entrypoint\n    ├── app.dx                  // Endpoint config file\n    └── deno.json               // Deno config file\n```\n\n## Features\n\n- Multiple chat rooms\n- Synchronized messages\n\n## Preview\n\n\u003cimg src=\".github/screenshot.png\" width=\"400\"\u003e\n\n## Explanation\n\n### Concept of Pointers\n\nIn [UIX](https://uix.unyt.org), [Pointers](https://unyt.org/glossary#pointer)\nare a fundamental concept for managing shared data across different parts of\nyour application. Pointers allow different components or\n[endpoints](https://unyt.org/glossary#endpoint) to access and modify the same\ndata. In the context of our chat application, a Pointer could represent a single\nmessage.\n\nPointers are synchronized over the\n[Supranet](https://unyt.org/glossary#supranet), based on our powerful\n[DATEX](https://datex.unyt.org) networking protocol that ensures real-time\nupdates and consistency across endpoints. When one user sends a message, the\nchanges are propagated to the recipient through the Supranet, keeping the data\nin sync.\n\n### Persistent Storage of Pointer Data\n\nTo provide a seamless experience, our messenger app also demonstrates how to\npersistently store Pointer data. This means that even if the application is\nrestarted, the chat histories are up-to-date.\n\n---\n\n\u003csub\u003e\u0026copy; unyt 2025 • [unyt.org](https://unyt.org)\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funyt-org%2Fexample-simple-messenger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funyt-org%2Fexample-simple-messenger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funyt-org%2Fexample-simple-messenger/lists"}