# openim-sdk-js-wasm **Repository Path**: github_repo/openim-sdk-js-wasm ## Basic Information - **Project Name**: openim-sdk-js-wasm - **Description**: No description available - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-09 - **Last Updated**: 2026-04-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JavaScript/TypeScript Client SDK for OpenIM ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ’ฌ Use this SDK to add instant messaging capabilities to your application. By connecting to a self-hosted [OpenIM](https://www.openim.online/) server, you can quickly integrate instant messaging capabilities into your app with just a few lines of code. The underlying SDK core is implemented in [OpenIM SDK Core](https://github.com/openimsdk/openim-sdk-core). Using the [WebAssembly](https://webassembly.org/) support provided by Go language, it can be compiled into wasm for web integration. The web interacts with the [OpenIM SDK Core](https://github.com/openimsdk/openim-sdk-core) through JSON, and the SDK exposes a re-encapsulated API for easy usage. In terms of data storage, JavaScript handles the logic of the SQL layer by virtualizing SQLite and storing it in IndexedDB using [sql.js](https://sql.js.org/). ## Documentation ๐Ÿ“š Visit [https://docs.openim.io/](https://docs.openim.io/) for detailed documentation and guides. For the SDK reference, see [https://docs.openim.io/sdks/quickstart/browser](https://docs.openim.io/sdks/quickstart/browser). ## Installation ๐Ÿ’ป ### Adding Dependencies ```shell npm install @openim/wasm-client-sdk --save ``` ### Obtaining Required Static Resources for WASM Follow these steps to obtain the static resources required for WebAssembly (WASM): 1. Locate the `@openim/wasm-client-sdk` subdirectory in the `node_modules` directory of your project. Copy all the files in the `assets` folder to your project's public resource directory. The files to be copied are: - `openIM.wasm` - `sql-wasm.wasm` - `wasm_exec.js` 2. After copying the files, import the `wasm_exec.js` file in your `index.html` file using a `