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

@jamsite/jamsite

v0.0.30

Published

Jamsite - JAMstack framework

Downloads

31

Readme

jamsite

Jamsite - JAMstack framework where static goes dynamic.

Overview

This package is intended for production use only: jamsite server or static files generation.

See @jamsite/jamsite-dev for development mode.

Usage

Install jamsite-cli globally with npm i -g @jamsite/jamsite-cli.

Execute jamsite start in a folder with site template (e.g. https://github.com/jamsite/site-starter-hello-world):

% jamsite start

Open url from output in a browser:

jamsite: Accepting connections on http://127.0.0.1:3000

TODO

  • :heavy_check_mark: implement frontmatter rewrite rules handling
  • :heavy_check_mark: implement custom destination file path handling
  • :heavy_check_mark: impement multifile handling
  • :heavy_check_mark: setup test system
  • :heavy_check_mark: support for api and file system routing
  • :heavy_check_mark: use micro programmatically
  • :heavy_check_mark: split jamsite and jamsite-dev
  • :heavy_check_mark: pluggable server middleware (gzip, html minification, etc)
  • :heavy_check_mark: static templates (dynamic frontmatter, but static page content)
  • :heavy_check_mark: support toml for data-static files
  • :heavy_check_mark: windows support
  • :heavy_check_mark: pluggable core
  • :heavy_check_mark: support jamsite-config
  • :heavy_check_mark: task runner
  • :heavy_check_mark: support .env
  • :heavy_check_mark: config: error pages, headers, redirects, rewrite, etc.
  • save generated pages as static files
  • i18n concept (locale aware templates, locale aware data)
  • data explorer
  • fix premature ready event in chokidar

Performance

% ./test-performance.sh
Running 40s test @ http://127.0.0.1:3000/hello-world.html
100 connections with 10 pipelining factor

┌─────────┬──────┬──────┬───────┬───────┬─────────┬─────────┬───────────┐
│ Stat    │ 2.5% │ 50%  │ 97.5% │ 99%   │ Avg     │ Stdev   │ Max       │
├─────────┼──────┼──────┼───────┼───────┼─────────┼─────────┼───────────┤
│ Latency │ 0 ms │ 0 ms │ 12 ms │ 13 ms │ 1.22 ms │ 3.67 ms │ 100.33 ms │
└─────────┴──────┴──────┴───────┴───────┴─────────┴─────────┴───────────┘
┌───────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐
│ Stat      │ 1%      │ 2.5%    │ 50%     │ 97.5%   │ Avg     │ Stdev   │ Min     │
├───────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤
│ Req/Sec   │ 61663   │ 61663   │ 79167   │ 79743   │ 78612.4 │ 2769.29 │ 61650   │
├───────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┤
│ Bytes/Sec │ 9.44 MB │ 9.44 MB │ 12.1 MB │ 12.2 MB │ 12 MB   │ 424 kB  │ 9.43 MB │
└───────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘

Req/Bytes counts sampled once per second.

3144k requests in 40.05s, 481 MB read