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

es-application-template

v0.0.11

Published

Reusable Setting and Shortcut runtime/management package for ES applications.

Readme

es-application-template

Shared Setting and Shortcut infrastructure for ES applications.

The package layout/build convention follows client/es-document-template: src/index.tsx, src/package/index.ts, rollup.config.mjs, one package tsconfig.json, CJS + ESM + declaration + extracted CSS output.

Install

npm install es-application-template

Host applications provide the peer dependencies declared in package.json, including React 18, TanStack React Query and es-grid-template >=1.9.72 <2.

Package CSS is emitted at:

dist/styles/index.css

Host applications must import the extracted stylesheet once from their application entry, after the host global styles:

import 'es-application-template/dist/styles/index.css'

The package style metadata does not make CRA/Webpack load the stylesheet automatically.

Provider

import { AppProvider } from 'es-application-template'

<AppProvider>
  <App />
</AppProvider>

The package uses the host QueryClientProvider; it does not create its own QueryClient.

Setting

import { setting } from 'es-application-template'

const visible = setting.get(
  'PurchaseRequest.ui.form.field.Code.visible',
  true
)

The public Setting contract remains setting.get(key[, fallback]). No public useSetting() API is added.

Shortcut

import {
  Shortcuts,
  SHORTCUT_ACTION,
  type ShortcutActions
} from 'es-application-template'

const actions: ShortcutActions = {
  [SHORTCUT_ACTION.RECORD_EDIT]: {
    handler: handleEdit,
    enabled: canEdit
  }
}

<Shortcuts actions={actions} />

Management pages

The management screens stay independent:

import {
  SettingsPage,
  ShortcutsPage
} from 'es-application-template'

The host owns routing/menu placement. These are full management pages, not modal content.

Public API

AppProvider

setting
SettingsPage

ShortcutsPage
Shortcuts
SHORTCUT_ACTION
ShortcutTooltip
ShortcutOverlayScope
useShortcutHint

ShortcutActionId
ShortcutActions

Deliberate differences from es-document-template

The package follows its package/build skeleton, but does not copy unrelated document dependencies. In particular this package does not use:

@esvndev/becoxy-ui
@syncfusion/ej2-react-dropdowns
react-custom-scrollbars
rollup-plugin-dts

The Setting Feature tree selector is package-owned and implemented with react-select while preserving hierarchy/search/expand-collapse behavior.

Build

yarn install
yarn typecheck
yarn test
yarn build
npm pack

Expected output:

dist/index.js
dist/index.mjs
dist/index.d.ts
dist/styles/index.css