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

@pubinfo-pr/core

v0.238.1

Published

Pubinfo 框架的核心运行时。这里包含应用启动入口、内置模块、布局系统、请求封装、路由和状态相关能力。

Readme

@pubinfo/core

Pubinfo 框架的核心运行时。这里包含应用启动入口、内置模块、布局系统、请求封装、路由和状态相关能力。

它在做什么

  • 提供 createPubinfo(),把 Vue、Router、Pinia、请求实例和模块系统串起来
  • 内置认证、授权、预访问校验、布局、设置、进度条、系统信息和 devtools 模块
  • 暴露请求封装、路由模块解析、图标模块解析、持久化状态工具
  • 导出一组框架组件和运行时组件

默认启动流程

createPubinfo() 在非 pure 模式下会自动注册这些内置模块:

  • PiniaPlugin
  • PreAccess
  • Authentication
  • Authorization
  • LayoutComponent
  • Settings
  • NProgress
  • SystemInfo
  • Devtools

同时会补一个 404 路由,并初始化全局 Pubinfo context。

基本用法

import { createPubinfo } from '@pubinfo/core';
import App from './App.vue';

createPubinfo({
  app: App,
  router: {
    routes: [],
  },
  request: {
    auth,
    basic,
  },
});

主要导出

  • createPubinfo
  • createRequest
  • defineRouteModule / defineIconModule
  • readProjectModules
  • LayoutLayoutSidebarLayoutTopbarToolsLogo
  • defineSettings / getSettings
  • clearPersistedState / getPersistedState / setPersistedState
  • updateWatermark
  • cleanup / storage / publicKeyEncryption

子路径与产物

  • @pubinfo/core/style.css: 框架样式
  • @pubinfo/core/runtime: 运行时组件导出,目前包含 PubinfoDev
  • @pubinfo/core/types: 类型入口

适用边界

如果你只是消费框架,通常应优先使用顶层包 pubinfo。只有在需要直接依赖内部运行时或拆分安装时,才单独使用这个包。