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 ๐Ÿ™

ยฉ 2024 โ€“ย Pkg Stats / Ryan Hefner

buildkarium

v0.0.2

Published

๐Ÿงฑ An enchanting JavaScript build ecosystem!

Downloads

21

Readme

cover npm version npm downloads bundle License

Buildkarium

๐Ÿงฑ An enchanting JavaScript build ecosystem!

๐Ÿ“ฆ Optimized bundler

Robust rollup based bundler that supports typescript and generates commonjs and module formats + type declarations.

๐Ÿช„ Automated config

Automagically infer build config and entries from package.json.

๐Ÿ“ Bundleless build

Integration with mimikra for generating bundleless dists with file-to-file transpilation.

โœจ Passive watcher

Stub dist once using dynot and you can try and link your project without needing to watch and rebuild during development.

โœ Typiqus Generator

Integration with typiqus.

๐Ÿ›ก๏ธ Secure builds

Automatically check for various build issues such as potential missing and unused dependencies and fail CI.

CLI output also includes output size and exports for quick inspection.

โš™๏ธ Usage

๐Ÿ“„ Create src/index.ts:

export const log = (...args) => { console.log(...args) }

๐Ÿ”„ Update package.json:

{
  "type": "module",
  "exports": {
    ".": {
      "import": "./dist/index.mjs",
      "require": "./dist/index.cjs"
    }
  },
  "main": "./dist/index.cjs",
  "types": "./dist/index.d.ts",
  "files": [
    "dist"
  ]
}

๐Ÿ”จ Build with buildkarium:

npx buildkarium

โœ… Configuration is automatically inferred from fields in package.json mapped to src/ directory. For more control, continue with the next section.

โš™๏ธ Configuration

๐Ÿ“„ Create karium.config.ts:

export default {
  entries: [
    './src/index'
  ]
}

โœ… You can either use the buildkarium key in package.json or create a karium.config.{js,ts,json} file to specify the configuration.

โœ… See options here. ๐Ÿ“š

๐Ÿ’ก Example:

import { defineBuildConfig } from 'buildkarium'

export default defineBuildConfig({
    // If entries is not provided, will be automatically inferred from package.json
    entries: [
        // default
        './src/index',
        // mkdist builder transpiles file-to-file keeping original sources structure
        {
            builder: 'mimikra',
            input: './src/package/components/',
            outDir: './build/components'
        },
    ],

    // Change outDir, default is 'dist'
    outDir: 'build',

    // Generates .d.ts declaration file
    declaration: true,
})

๐ŸŒฑ Development

  • ๐Ÿ™ Clone this repository
  • ๐Ÿ”ง Enable Corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • ๐Ÿ“ฆ Install dependencies using nyxi
  • ๐Ÿƒ Run interactive tests using nyxr dev

๐Ÿ“œ License

MIT - Made with ๐Ÿ’ž