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

@oas-ui/core

v2.4.0

Published

OAS-UI 基础运行时(Web Components 基类与工具)

Readme

@oas-ui/core

中文 | English

OAS-UI 组件运行时基础包 —— 提供 OASElement 组件基类(Shadow DOM 生命周期、属性观察、oas-* 事件封装、locale / 配置注入、DSD 水合支持)。@oas-ui/ui 中所有组件均继承自该类。

大多数情况不需要直接使用 —— 仅当编写自定义组件或需要底层能力时才引入。

import { OASElement } from '@oas-ui/core'

提供的能力

  • render() / updating() 生命周期模板
  • observedAttributes 静态声明 + attributeChanged 自动触发更新
  • emit() 派发 oas-* 前缀事件(可选 bubbles / composed
  • t() 国际化文案查询(配合 @oas-ui/i18n
  • 主题上下文(data-theme)与 DSD 水合衔接

相关包

| 包 | 作用 | | --- | --- | | @oas-ui/ui | 组件库主包(基于本包构建) | | @oas-ui/i18n | 框架无关 locale registry |

中文 | English

@oas-ui/core — the runtime base package of OAS-UI. It provides the OASElement base class (Shadow DOM lifecycle, attribute observation, oas-* event helpers, locale / config injection, DSD hydration support). Every component in @oas-ui/ui extends this class.

You normally don't need to use it directly — only when authoring custom components or needing lower-level capabilities.

import { OASElement } from '@oas-ui/core'

What it provides

  • render() / updating() lifecycle templates
  • observedAttributes static declaration + automatic updates on attributeChanged
  • emit() dispatches oas-* prefixed events (optional bubbles / composed)
  • t() localized text lookup (with @oas-ui/i18n)
  • Theme context (data-theme) and DSD hydration integration

Related packages

| Package | Purpose | | --- | --- | | @oas-ui/ui | Main UI library (built on this package) | | @oas-ui/i18n | Framework-agnostic locale registry |