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

@kordar/easyui-tpl

v2.0.3

Published

基于 rc-easyui 和 @kordar 系列库的后台模板工程。内置布局、菜单/标签联动、权限与国际化示例,可作为业务项目的起步模板。

Downloads

603

Readme

@kordar/easyui-tpl

基于 rc-easyui 和 @kordar 系列库的后台模板工程。内置布局、菜单/标签联动、权限与国际化示例,可作为业务项目的起步模板。

特性

  • 布局:BaseLayout(头部工具区 + 侧边栏 + 标签页 + 内容区)
  • 列表与表单:useLocalTable/useRemoteTable、PaginationPanel、通用表单工具
  • 权限:基于 @kordar-lib/base 的权限校验与按钮显隐
  • 国际化:@kordar-lib/i18n 集成 + 示例语言包(en/zh_CN)
  • 示例路由:用户/角色/权限/字典/路由/设置等页面

安装

npm install

开发

npm run -w @kordar/easyui-tpl dev

默认入口:/examples/main.tsx(Vite)

构建

npm run -w @kordar/easyui-tpl build

产物输出到 dist(包含 ESM、CJS 与 index.min.css)。

关键依赖(外部)

  • React 生态:react、react-dom、react-router、react-router-dom、react-i18next
  • UI:rc-easyui、rc-drawer、@kordar/easyui、@kordar/react-screen
  • 工具:axios、lodash-es
  • Kordar 库:@kordar-lib/base、common、crud、i18n、menus、reducers、request

样式

示例样式在 examples/example.scss 中已引入:

@import '@kordar-lib/iconfont/dist/index.min.css';
@import '@kordar/easyui/dist/index.min.css';
@import '@kordar/react-screen/dist/index.min.css';

index.html 会按本地持久化主题加载 rc-easyui 主题与 react.css。

初始化(示例)

examples/init.ts 展示了语言包与请求初始化的方式。你可以按需接入实际后端接口,完善登录、菜单、权限等配置。

目录

  • src/components:基础组件(布局、工具条、提示等)
  • src/composable:通用 Hook(启动器、表格、标签页联动等)
  • src/service:Admin/Rbac/Resource 等服务封装
  • src/views:页面示例(含搜索、表格、表单/对话框)
  • examples:演示应用(路由、Store、入口)

许可证

MIT