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

asai-vue-host-base

v0.2.12

Published

asai for you

Readme

asai-vue-host-base — 宿主基础模块

包信息

| 建议 npm 名 | 入口文件 | $fn / 注入键 | 类型 | |------------|---------|-------------|------| | @estun/asai-vue-host-base | src/components/index.ts | $engineasai1(provide/inject) | Host |

概述

asai-vue-host-base 是宿主框架的基础扩展模块,提供 WS 连接、HTTP API、心跳等能力,使用独立注入 key $engineasai1,与核心宿主并行安装。

集成方式

// monorepo — webclient/src/utils/index.ts(Host 栈第二位)
import AsaiVueHostBase from '../plugs/asai-vue-host-base/src/components/index';
// import '/node_modules/asai-vue-host-base/dist/asai-vue-host-base.css';
// npm
// import AsaiVueHostBase from '@estun/asai-vue-host-base';

app.use(AsaiVueHostBase, lib);

独立性约束

  • 禁止 cross-import 其它 plugs/*
  • asai-vue-host 共享 install 机制,但通过不同 inject key 隔离命名空间。

主要 API / 导出

| 导出 | 说明 | |------|------| | install(app, opt) | Vue 插件安装 | | $engineasai1 | 基础 composable(asengine/*/use*.ts) | | 全局组件 | asui/*/*.vue 懒加载 |

性能说明

  • TypeScript 模块 eager: true;Vue 组件 lazy
  • asai-vue-host 同时安装,注意避免重复注册同名全局组件。

peerDependencies 建议

{
  "peerDependencies": {
    "vue": "^3.4.0",
    "@estun/asai-vue-host": "^1.0.0"
  }
}

与核心宿主的关系

| 项 | asai-vue-host | asai-vue-host-base | |----|---------------|-------------------| | 注入 key | $engineasai | $engineasai1 | | 职责 | 核心框架、路由、初始化 | WS/API/心跳等基础扩展 | | 安装机制 | 相同 loadts/loadvue | 相同 |

文件结构

asai-vue-host-base/
├── src/components/
│   ├── index.ts
│   ├── asengine/common/ + */use*.ts
│   └── asui/
└── README.md

安装方式

app.use(AsaiVueHostBase, {
  loadts: (options) => { /* 加载 TS 模块 */ },
  loadvue: (options) => { /* 加载 Vue 组件 */ },
  loadfn: (path) => { /* 加载函数 */ },
});