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

vagogedms

v1.0.1

Published

Shared Next.js UI, layouts, Redux, and APIs for VGG DMS apps

Readme

vagogedms

Thư viện UI và hạ tầng dùng chung cho các ứng dụng Next.js trong hệ sinh thái VGG DMS: layout, namespace / quyền, bảng lọc, Redux, API client, i18n và tiện ích.

Yêu cầu

Ứng dụng host cần cài các peer dependencies (phiên bản tham chiếu trong package.json):

React 18, Next.js 14, Ant Design 4, AG Grid 31, Redux, axios, next-auth, cookies-next, i18next / react-i18next, react-use, @ant-design/icons, và next-http-proxy-middleware (khi dùng proxy).

Cài đặt gói này cùng các peer tương thích để tránh lỗi thiếu module hoặc lệch kiểu TypeScript.

Cài đặt

Theo registry nội bộ của team (nếu có, cấu hình qua .npmrc):

yarn add vagogedms
# hoặc
npm install vagogedms

Đóng gói cục bộ để thử trong monorepo:

yarn pack:local

Sau đó cài file .tgz sinh ra vào app consumer.

Sử dụng

Entry chính

Mã nguồn phát triển nằm trong src/; bản build xuất ra thư mục components/ (đây là nội dung được publish trong trường files của npm).

import {
  DMSLayout,
  NamespaceWrapper,
  GridTable,
  Filters,
} from "vagogedms";

Export con (types)

package.json khai báo exports cho một số submodule, ví dụ:

import type { /* ... */ } from "vagogedms/components/types/api";
import type { /* ... */ } from "vagogedms/components/types/user";

Danh sách export đầy đủ nằm trong src/index.ts (sau build sẽ tương ứng trong components/index.js / .d.ts).

Phạm vi gói (tóm tắt)

| Nhóm | Ví dụ | |------|--------| | Layout & điều hướng | DMSLayout, Sidebar, dropdown namespace / ACL, NamespaceSettingContainer | | Wrapper | NamespaceWrapper, AccessLevelWrapper, PermissionWrapper | | Component | GridTable, Filters, Buttons, Inputs, ContentLayout, upload, MFE động | | Dữ liệu | API (_api, namespace, permissions, upload), Redux (address, app-configs, permission, mfe) | | Khác | constants, utils, i18n, handlers (vggDMSHandler, healthCheck), FilterProvider, HOC filter |

Tài liệu chi tiết hơn cho màn namespace có thể xem tại src/layouts/namespaceSetting/README.md.

Phát triển

Scripts

| Lệnh | Mô tả | |------|--------| | yarn build | Xóa components/, chạy tsc, copy styles & assets vào components/ | | yarn clean | Xóa thư mục components/ | | yarn gen-styles | Copy src/stylescomponents/styles | | yarn gen-assets | Copy src/assetscomponents/assets | | yarn format | Prettier ghi đè | | yarn format:check | Prettier chỉ kiểm tra |

Hook prepare chạy build sau khi cài dependency (phù hợp khi phụ thuộc qua git hoặc file:).

Môi trường build

Các script mặc định dùng lệnh kiểu Unix (rm, cp). Trên Windows, chạy trong Git Bash, WSL, hoặc CI Linux để build ổn định.

Phiên bản & cấp phép

  • Phiên bản hiện tại: xem trường version trong package.json.
  • Giấy phép: ISC (theo package.json).