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

wang-wujie

v0.0.3

Published

[无界](https://github.com/Tencent/wujie) 和Angular集成的示例。

Readme

Angular+无界(WuJie)微前端示例

无界 和Angular集成的示例。

Angular是 一个常用的前端开发框架(Github), 无界是 腾讯开源的微前端框架(Github)。

使用 angular@19 以及 [email protected] 版本。

本地开发使用了 yalc ,避免重复的 npm link 操作。

主要文件说明

📒 $project //应用根目录
  📁 app-lib/projects/lib1 //通用代码提取库
    📄 wujie.router.ts //封装无界路由监听
    📄 wujie.define.ts //定义windows上的变量,防止编译错误
    📄 wujie.component.ts //封装无界组件
    📄 wujie.service.ts //封装无界初始化服务
  📁 app-main //主应用,端口42001
    📄 package.json //添加无界依赖
    📄 angular.json //关闭ng serve的缓存,避免yalc版本失效
    📁 src
      📄 main.ts //引入window定义
      📁 app
        📄 app.config.ts //初始化路由监听
        📄 app.routes.ts //添加子应用路由匹配
        📄 app.component.ts //配置子应用端点,以及是否预加载,此时还没有开启
        📄 pages/shop/shop.component.ts //开启子应用
  📁 app-shop //子应用1,端口42002
    📄 package.json //添加无界依赖
    📄 angular.json //关闭ng serve的缓存,避免yalc版本失效。同时添加headers以便在开发时允许跨域访问
    📁 src
      📄 main.ts //引入window定义,改造生命周期函数
      📄 app.config.ts //初始化路由监听
  📄 README.md //说明文件

问题

子应用配置跨域访问

angular.json 中配置,路径为: /projects/${yourAppName}/architect/serve/configurations/development:

"development": {
  "buildTarget": "app-shop:build:development",
  "disableHostCheck": true,
  "headers": {
    "Access-Control-Allow-Credentials": "true",
    "Access-Control-Allow-Origin": "*",
    "Access-Control-Allow-Headers": "*",
    "Access-Control-Allow-Methods": "*",
    "Upgrade": "$http_upgrade",
    "Connection": "upgrade"
  }
}

webpack缓存了yalc导致代码更新失效

angular.json 中添加下面的代码来关闭缓存:

"cli": {
  "cache": {
    "enabled": false
  }
},