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

@subf/config

v0.1.3

Published

Universal configuration for TypeScript, oxlint (+unocss, +solid), oxfmt, and tsdown.

Readme

@subf/config

Universal configuration for TypeScript, oxlint (+unocss, +solid), oxfmt, and tsdown.

Quick start

bun i -D @subf/config

Usage

tsconfig

{
  "extends": "@subf/config/tsc-lib"
}

Available configs:

  • tsc-lib: for libraries.
  • tsc-node: for Node.js apps.
  • tsc-web: for SolidJS apps.
  • tsc-base: base config for custom setups.

tsdown

Helpers to create tsdown build configs.

Example: use lib() in your tsdown.config.ts:

import { defineConfig } from 'tsdown'
import { lib } from '@subf/config/tsdown'

export default lib({
  entry: 'shallow',
  excludeDeps: ['oxlint', 'oxfmt', 'tsdown'],
  overrides: {
    exports: {
      customExports(exports) {
        exports['./custom'] = './you-custom-file.js'
        return exports
      },
    },
  },
})

For Node builds use nodeLib():

import { nodeLib } from '@subf/config/tsdown'
export default nodeLib({ entry: 'src/index.ts' })

For Solid builds (requires vite-plugin-solid) use solidLib():

import { defineConfig } from 'tsdown'
import { solidLib } from '@subf/config/tsdown'

export default solidLib({ entry: 'src/index.tsx' })

oxfmt

In oxfmt.config.ts:

import { CONFIG } from '@subf/config/oxfmt'
export default CONFIG

Helper

Use subfFmt() helper to create a config with opinionated presets for lib, solid, unocss, etc.

import { subfFmt } from '@subf/config/oxfmt'
export default subfFmt({
  // your custom oxfmt config here
})

oxlint

In oxlint.config.ts:

import { CONFIG } from '@subf/config/oxlint'

export default CONFIG

or use defineConfig() with extend if you want to extend it:

import { defineConfig } from 'oxlint'
import { CONFIG } from '@subf/config/oxlint'

export default defineConfig({
  extend: [CONFIG],
  // your custom config here
})

Helper

Use subf() helper to create a config with opinionated presets for lib, solid, unocss, etc.

import { subf } from '@subf/config/oxlint'

export default subf({
  lib: true,
  solid: true,
  unocss: true,
  // your custom oxlint config here
})

CLI

Scaffold tsconfig.json, oxlint.config.ts, and oxfmt.config.ts into your project.

Quick start (no install)

bunx @subf/config          # recommended
npx -y @subf/config        # fallback
bunx @subf/config -f       # force overwrite existing files

After scaffolding you'll be prompted to install the package so your configs stay in sync with future updates:

bun i -D @subf/config

Installed locally

bun i -D @subf/config
bun subf                   # or just `subf` if on PATH
bun subf -f                # force overwrite existing files

License

MIT