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

annil

v1.18.2

Published

微信小程序(原生开发)插件

Readme

Annil

简介

Annil(安奈儿)是面向微信小程序原生开发的 TypeScript 插件,提供类型安全的组件构建方式、响应式能力和类型化导航 API,帮助提升开发体验与代码质量。

快速开始

在线文档

  • 在线文档:https://missannil.github.io/annil/
  • 文档使用 VitePress 构建,并通过 GitHub Pages 部署。

特点

  • 更强大的组件构建 API

    新的组件构建 API 提供 computedwatchstore(基于 MobX 的全局响应式数据)等能力。

  • 结构清晰的组件构建方式

    通过根组件(RootComponent)和子组件(CustomComponent / ChunkComponent)拆分组件逻辑,使组件结构更清晰、更易维护。

  • 极致的类型安全

    DefineComponent 可以定义组件和页面,并通过组件文档类型配合 typeEqual 校验;CustomComponent / ChunkComponent 会提供属性、事件和页面路径的类型提示与检查。

  • 轻量、无侵入

    Annil 提供的 API 是原生 API 的语法糖,不强制改变项目结构,适合在现有小程序项目中渐进式引入。

  • 官方类型补充

    Annil 提供了对微信小程序官方类型的补充,并通过 ES 模块导出,不污染全局类型。

  • 第三方组件类型支持

    可以使用 CreateComponentDoc 根据组件文档定义第三方组件类型。Annil 也导出了原生组件类型 Wm 和 Vant 组件类型 Vant

  • VS Code 插件 vscode-annil

    在插件市场搜索 annil 并安装,可获得 WXML 和 JSON 检查及相关辅助能力。

更新日志

CHANGELOG