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

@composy/website-vanilla

v0.0.2

Published

Vanilla website application built on LDesign website core

Downloads

34

Readme

@composy/website-vanilla

基于 LDesign Website Core 的 Vanilla 网站应用,同时发布可复用的 npm API。应用运行与 npm 包构建共用一个 Submodule:src/main.ts 是本地站点入口,src/index.ts 是包入口。

目录

  • src/core/:网站启动、认证与运行时集成。
  • src/apps/default/:默认网站场景。
  • src/types/:公开类型入口。
  • .ldesign/:Builder、Launcher、TypeScript 与 ESLint 的权威配置。
  • Vite 依赖缓存按工作区路径隔离在系统临时目录,不写入 Submodule。

开发与验证

pnpm install
pnpm dev
pnpm build          # Launcher 构建站点,Builder 构建 npm 包
pnpm build:app      # 只构建站点到 dist/
pnpm build:lib      # 构建并检查 es/、esm/、lib/、dist/ 发布产物
pnpm preview
pnpm type-check
pnpm lint:check
pnpm format:check

Launcher 默认开发端口为 3000、预览端口为 4173。开发服务器将 /api 代理到 API_TARGET,默认值为 http://localhost:37217。

npm 使用

import { createWebsiteVanillaApp } from '@composy/website-vanilla'
import '@composy/website-vanilla/style.css'

createWebsiteVanillaApp({ selector: '#app' })

分层入口还包括 @composy/website-vanilla/core、@composy/website-vanilla/apps/default 与 @composy/website-vanilla/types。

浏览器 UMD

UMD 包会引用构建配置标记为 external 的 LDesign 依赖,因此不能视为零依赖的独立脚本。普通 npm/ESM 使用方式由 package exports 提供;直接加载 UMD 时,调用方需要确保 external 依赖可用。

登录 API

默认网站提供 NestAPI 登录与会话恢复能力。请求使用同源 /api/v1;CSRF 初始化通过 /api/health 握手。开发时可用 API_TARGET 覆盖本地 API 地址。