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

swpp-backends

v2.3.11

Published

Generate a powerful ServiceWorker for your website.

Downloads

592

Readme

swpp

欢迎使用 SwppBackends

swpp-backends(以下简称 swpp)插件的功能是为网站生成一个高度可用的 ServiceWorker(以下简称 SW),为网站优化二次加载、提供离线体验、提高可靠性,并为此附带了一些其它的功能。

swpp 的全拼为“Service Worker Plus Plus”(或“Service Worker++”),但是其与已有的插件“hexo-service-worker”并没有关系,插件中所有代码均为我个人开发,这一点请不要误解。

swpp 生成的 SW 与其它插件的对比:

| | swpp | hexo-offline | |:---------------:|:-------------:|:------------:| | 本地缓存 | ✔️ | ✔️ | | 缓存增量更新 | ✔️ | ❌ | | 缓存过期时间 | ❌ | ✔️ | | 缓存大小限制 | ❌ | ✔️ | | 预缓存 | ❌1 | ✔️ | | Request 篡改 | ✔️ | ❌ | | URL 竞速 | ✔️ | ❌ | | 备用 URL | ✔️ | ❌ | | 204 阻塞响应 | ✔️ | ❌ | | 逃生门 | ✔️ | ❌ | | 请求合并 | ✔️ | ❌ | | 跨平台2 | ✔️ | ❌ | | 高度自由 | ✔️ | ❌ | | 更新 | 非常频繁 | 超过两年没有更新 |

  • ✔️:支持
  • ❌:不支持
  1. 预缓存可以在前端实现,SW 实现这个功能容易拖延注册时间
  2. 跨平台是指跨越框架(可在 NodeJS 平台中的任意框架下工作)

目前支持的平台:

| 平台 | 插件名 | 文档 | 作者 | |:----:|:-----------:|:---------------------------------------------------------:|:-----------------------:| | hexo | hexo-swpp | github | 空梦 |

如果你为某一个平台做了适配,可以在 gh 上发布 issue 或者在文档页面发布评论~

文档:Swpp Backends 官方文档 | 山岳库博