{"id":51701752,"url":"https://github.com/wireapp/core-crypto-playground","last_synced_at":"2026-07-16T11:35:54.053Z","repository":{"id":345054501,"uuid":"1184254903","full_name":"wireapp/core-crypto-playground","owner":"wireapp","description":"A minimal React + TypeScript + Vite app for exploring the CoreCrypto WebAssembly library.","archived":false,"fork":false,"pushed_at":"2026-07-16T07:52:01.000Z","size":3011,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-16T11:35:48.177Z","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/wireapp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-17T12:09:54.000Z","updated_at":"2026-07-15T13:33:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wireapp/core-crypto-playground","commit_stats":null,"previous_names":["wireapp/core-crypto-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wireapp/core-crypto-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fcore-crypto-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fcore-crypto-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fcore-crypto-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fcore-crypto-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wireapp","download_url":"https://codeload.github.com/wireapp/core-crypto-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wireapp%2Fcore-crypto-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35542951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":"2026-07-16T11:35:53.465Z","updated_at":"2026-07-16T11:35:54.045Z","avatar_url":"https://github.com/wireapp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wire CoreCrypto Playground\n\nA minimal React + TypeScript + Vite app for exploring the [`@wireapp/core-crypto`](https://github.com/wireapp/core-crypto) WebAssembly library. It demonstrates MLS (Messaging Layer Security) conversation creation and identity resolution using the Wire end-to-end encryption SDK.\n\n## Getting Started\n\n```bash\nnpm install\nnpm run dev\n```\n\nThe app is served at `http://localhost:5173`.\n\n\u003e **Note:** The WASM binary (`core-crypto-ffi_bg.wasm`) must be served from the root `/`. Vite synchronizes the installed package binary into `public/` automatically.\n\n## Project Structure\n\n```\nsrc/\n  CoreCryptoWrapper.ts   # Singleton CoreCrypto instance + all crypto logic\n  App.tsx                # UI — consumes wrapper functions, renders results\n  main.tsx               # React entry point\npublic/                  # Static assets (WASM binary served from here)\n```\n\n## Architecture\n\nAll `@wireapp/core-crypto` interactions are encapsulated in `CoreCryptoWrapper.ts`. `App.tsx` only calls the exported helper functions and manages UI state — it has no direct dependency on the CoreCrypto API.\n\n### CoreCryptoWrapper.ts — Exported API\n\n| Function | Description |\n|---|---|\n| `getCoreCryptoInstance()` | Returns the singleton `CoreCrypto` instance, initializing it once on first call. |\n| `createConversationID()` | Generates a random `ConversationId`. |\n| `checkConversationExists(id)` | Returns `true` if the given conversation exists in the local store. |\n| `createConversationAndGetIdentities(id)` | Creates an MLS conversation and returns the `WireIdentity[]` for the current user. |\n\n## Scripts\n\n| Command | Description |\n|---|---|\n| `npm run dev` | Start development server with HMR |\n| `npm run build` | Type-check and build for production |\n| `npm run preview` | Preview the production build locally |\n| `npm run lint` | Run ESLint |\n\n## Dependencies\n\n- [`@wireapp/core-crypto@9.3.0`](https://www.npmjs.com/package/@wireapp/core-crypto) — Wire MLS/Proteus E2E encryption SDK (WASM)\n- React 19, Vite, TypeScript\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwireapp%2Fcore-crypto-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwireapp%2Fcore-crypto-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwireapp%2Fcore-crypto-playground/lists"}