{"id":20060601,"url":"https://github.com/oasisprotocol/demo-chat","last_synced_at":"2026-05-17T01:39:11.647Z","repository":{"id":261394228,"uuid":"883758705","full_name":"oasisprotocol/demo-chat","owner":"oasisprotocol","description":"An E2E encrypted chat with token gated group chats built on Oasis Sapphire with ROFL.","archived":false,"fork":false,"pushed_at":"2024-12-24T10:40:58.000Z","size":516,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-03-02T10:14:16.159Z","etag":null,"topics":["blockchain","dapp","demo","ethereum","evm","metamask","oasis","rofl","sapphire"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/oasisprotocol.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}},"created_at":"2024-11-05T14:21:56.000Z","updated_at":"2024-12-24T10:42:46.000Z","dependencies_parsed_at":"2024-11-06T11:04:41.885Z","dependency_job_id":"97bd2809-cdfe-4ad6-a34c-3e08423cd960","html_url":"https://github.com/oasisprotocol/demo-chat","commit_stats":null,"previous_names":["oasisprotocol/demo-chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oasisprotocol/demo-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oasisprotocol","download_url":"https://codeload.github.com/oasisprotocol/demo-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oasisprotocol%2Fdemo-chat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266664247,"owners_count":23964931,"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-23T02:00:09.312Z","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":["blockchain","dapp","demo","ethereum","evm","metamask","oasis","rofl","sapphire"],"created_at":"2024-11-13T13:15:52.713Z","updated_at":"2026-05-17T01:39:06.614Z","avatar_url":"https://github.com/oasisprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏗️ CraneChat (demo-chat)\n\nAn E2E encrypted chat with token gated group chats built on Oasis Sapphire with ROFL.\n\n## !! Disclaimer !!\n\nThis is a demo application and should not be used in production.\n\n## How It Works\n\nCraneChat is a decentralized chat application that provides:\n\n1. **Token Gated Group Chats**: Create groups that require members to hold specific token amounts on supported chains to join\n2. **Direct Messaging**: Send encrypted messages directly to other users\n3. **E2E Encryption**: All messages are encrypted using Oasis Sapphire's confidential smart contracts\n4. **ROFL Integration**: Automated token balance verification using ROFL (Remote Offchain Fault-tolerant Logic)\n\nThe application consists of:\n- Smart contracts deployed on Oasis Sapphire\n- ROFL application for off-chain token balance verification\n- Next.js frontend with Wagmi for web3 integration\n\n## Directory Structure\n\n- `/` (root): Smart contracts (Hardhat project)\n- `app/`: Next.js frontend\n- `rofl/`: ROFL application\n\n## Setup\n\n1. Install dependencies:\n\n```sh\npnpm install\ncd app\npnpm install\n```\n\n2. Configure environment variables:\n\n```sh\ncp .env.template .env\n```\n\n## Running\n\n1. Start the frontend development server:\n\n```sh\ncd app\npnpm dev\n```\n\n2. For local ROFL development:\n\nCheck the ([`rofl/README.md`](./rofl/README.md)) for instructions on running the ROFL service.\n\n3. Deploy contracts:\n\n```sh\nnpx hardhat deploy --network sapphire-localnet\n```\n\n4. To populate test groups (optional):\n\n```sh\nnpx hardhat populate --network sapphire-localnet --contract \u003cCONTRACT_ADDRESS\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisprotocol%2Fdemo-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foasisprotocol%2Fdemo-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foasisprotocol%2Fdemo-chat/lists"}