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

@liujitcn/kratos-taro-app-system

v0.0.29

Published

Kratos Taro system module with profile, settings, and AI views.

Readme

@liujitcn/kratos-taro-app-system

@liujitcn/kratos-taro-app-system 是默认应用业务模块,提供个人中心、设置、个人资料和 AI 助手页面。模块只依赖 core 与 UI 的公开入口,不持有宿主配置。

页面与视图键

| 页面 | 视图键 | 用途 | | --- | --- | --- | | pages/my/my | PROFILE_HOME | 我的 tab 与登录概览。 | | pagesMember/profile/profile | PROFILE | 头像、昵称、性别和地区资料。 | | pagesMember/settings/settings | SETTINGS | 设置与退出登录。 | | pagesMember/ai/index | AI | AI 会话、流式消息、附件和快捷入口。 |

页面配置统一登记在 src/pages.ts,运行时映射位于 src/index.ts,构建期描述位于 src/build.ts。页面私有组件放在页面目录的 components 中,不会被 runner 扫描为路由。

AI 助手

AI 页面支持会话创建与切换、历史会话搜索、消息加载、附件上传、复制、删除、再生成、工具提示和快捷入口。H5 使用 Fetch SSE,微信小程序使用 chunked 请求,两端共用增量 SSE 解析器和相同事件契约。

请求统一封装在 src/api,RPC 类型由 backend Buf 模板生成。页面不能直接写 Taro.request,也不能手工修改 src/rpc

验证

pnpm --filter @liujitcn/kratos-taro-app-system tsc
pnpm test
pnpm build:h5
pnpm build:mp-weixin