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

espack

v0.0.1

Published

placeholder

Downloads

4

Readme

Deployment

Rename js files to match hash and push to CDN Rename images to match hash and push to CDN. Compile stylesheets with image hashes. Rename stylesheets to match hash and push to CDN.

Compile HTML with configuration details for backend services along with js, css and image hashes.

Static configuration:

  • Hashes of js and css

Runtime configuration:

  • Root URL
  • DB locations
  • Locations of other services

./node_modules/.bin/tsc --outDir bld --rootDir src --sourceMap --noImplicitAny --strictNullChecks --module es2015 --target es5 --jsx react --allowJs true --lib ES6,DOM --moduleResolution node src/index.tsx

-Install dependencies to lib directory using ???- Install client side dependencies mixed with server side dependencies using npm

Translate typescript to es6 modules Use rollup to compile test bundle Use rollup to compile app bundle Use uglify/??? to minify app bundle

output:

  • compiled css + optional source maps
  • compiled js + optional source maps
  • application.json:
    • list of css sources to include, and their checksums
    • list of js sources to include, and their checksums
    • title of application
    • no-script fallback message

build/app/tsc_out/ build/app/rollup_out/ build/app/uglify_out/

build/tests/tsc_out/ build/tests/rollup_out/

Bake app bundle for dev Bake app bundle for prod

styles/*.sass
src/*.tsx
tests/*.ts
index.jinja2




build/ts_out
build/app.js
build/app.js.map
build/app.min.js
build/app.min.js.map
build/tests.js
build/tests.js.map


dist/firebase.json
dist/index.html
dist/scripts/app-deadbeaf.min.js
dist/scripts/react-deadbeaf.min.js
dist/scripts/react-dom-deadbeaf.min.js

tsc uglify cp build/app.min.js dist/app-sha256 build/app.min.js.min.js

Libraries

minor version:

  • external dependencies
  • type definitions (hopefully exported from typescript)

patch:

  • internal dependencies (not required when using rolled up files)
  • directory containing es6 modules (hopefully compiled from typescript)
  • un-minified rolled up library with source map
  • minified rolled up library with source map (and hash for cdn)

upload:

Unpacked library: /library/lib.json /library/types/library.d.ts

Applications

App source code

List of dependencies, and whether they should be bundled or not. External dependencies of un-bundled dependencies must also be un-bundled.

(optional) Pinned version numbers of all bundled and external dependencies

Output:

  • A js application bundle

Need to provide

  • A contrib repository of build scripts to generate packages from upstreams
  • A build tool for generating the compiled files
  • A build tool for outputting commonjs and uploading to npm
  • conventions for writing and running tests

[email protected] -> lib.d.ts

[email protected] -> {lib.min.js, lib.js}