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

dynassets

v1.2.2

Published

Dynassets creates a simple server to serve static files like JavaScript, CSS etc. with specific delay and execution time.

Downloads

2

Readme

Dynassets

Dynassets creates a simple server to serve static files like JavaScript, CSS etc. with specific delay.

E.g.

http://localhost:3000/asset/js/3000 would serve a JavaScript file that would take at least 3s before the 1st byte to return.

Use this to create HTMl pages with different delay value on different assets to check their impact on load-time performance in different browser.

E.g.

Load up a web font with 5s delay to see how different browsers behaves when waiting for the font to download.

Load up a CSS in different parts of HTML with 2s delay to see how it impacts rendering in different browsers.

I needed a quick way to generate different kinds of static files with different delay values to understand how different browsers handle them and how it impacts the application that I create. And the result is dynassets

Installation

$ npm i dynassets -g

Usage

$ dynassets

Now, you can start using delayed assets in your templates.

E.g.

  • Javascript: http://localhost:3000/js/1000
  • Stylesheet: http://localhost:3000/css/1000
  • Font: http://localhost:3000/font/1000 (Serves Roboto font from Google)
  • Image: http://localhost:3000/image/1000 (Serves random image from lorempixel)

If you need to use a different port number:

$ dynassets -p 3001

If you need to serve assets on a url reachable via the internet

$ dynassets -t