npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flare-im/sdk

v1.0.6

Published

Flare IM client SDK for TypeScript — runtime-agnostic core with per-runtime transports (web/WASM, Tauri, React Native, uni-app).

Readme

@flare-im/sdk

Flare IM 的 TypeScript 客户端 SDK —— 对 Rust 核心(flare-im-core-sdk)的类型化封装。

真正的 IM 逻辑(连接、同步、存储、时间线)全在 Rust 核心里;这个包负责把它接到 各个 JS 运行时上,并提供完整的 TypeScript 类型。

安装

npm install @flare-im/sdk

按运行时选择入口

不同运行时的传输与存储能力不同,所以入口是分开的 —— 直接从对应子路径导入:

| 运行时 | 导入路径 | 传输 / 存储 | |---|---|---| | 浏览器 / H5 | @flare-im/sdk/web | WebSocket(WASM)+ IndexedDB | | Tauri 桌面 | @flare-im/sdk/tauri | QUIC + SQLite | | uni-app | @flare-im/sdk/uni-app | 原生核心 | | React Native | @flare-im/sdk/react-native | 原生核心 |

import { FlareCoreSdk } from "@flare-im/sdk/uni-app";

浏览器端换成 /web,Tauri 换成 /tauri,其余代码不变。

Tauri 入口需要 peer 依赖 @tauri-apps/api ^2.0.0

其它子路径

import { SdkOperations, SdkEvents } from "@flare-im/sdk/contract";

api / listener / model / callback / contract / media / lifecycle 分别导出操作、事件监听、数据模型、回调、协议契约、媒体与生命周期。

可运行的完整示例

本包是 SDK 层,跑起来需要配套的运行时桥与服务端。完整可运行的应用见仓库 examples/,其中 flare-core-uni-app 是接线最完整的一个。

服务端起法见 flare-im-core 仓库的 QUICKSTART.md(五分钟跑通,无需自建用户体系)。

给贡献者

不要在这里加 IM 业务逻辑。 行为应当加进 flare-im-core-sdk(Rust), 经 bindings/c 暴露,再更新 sdk-spec/manifest.json。这个包只做类型化转发 —— 逻辑下沉到核心才能让七个端共享同一份实现。

  • 契约状态:contract-synced
  • 异步模型:Promise + 事件订阅
  • FFI 契约:flare-im-ffi/v1

许可

Apache-2.0