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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ghost-upyun

v0.5.10

Published

Ghost with upyun support.

Readme

Ghost with Upyun Support

介绍

Ghost 原版只维护了本地储存,该版本将其修改为上传至又拍云。
本版本基于 Ghost 的官方稳定版,随官方版本进行更新。
支持通过 npm 模块启动 npm install ghost-upyun
又拍云 Storage 代码修改自 GhostChina 发布的 Ghost 0.4.2 又拍云集成
又拍云上传代码来自又拍云 Node.js SDK。

目前版本:0.5.10

0.5.9 只支持 Node v0.10.x,请您自行检查是否兼容。
0.5.9 起的适配加入了是否将图片文件保存在本地的选项,请您升级时在配置文件中加入新的设置项,否则无法启动。
0.5.9 起的适配修改了在远端的储存位置结构,请您注意。
0.5.10 起支持 Node 0.12 和 io.js V1.2

修改部分

  • 修改了 core/server/storage/index.js 使其只支持又拍云上传
    (由于 Storage 只会被初始化一次,配置文件内的内容尚未被被读取,无法判断配置是否存在)
  • 修改了 core/server/config/index.js 判断又拍云配置是否存在,将读取到的又拍云配置插入 config 对象
    (新版的配置载入并非直接载入所有配置,而且第一次初始化时并不会读取到又拍云配置)
  • 添加了 core/server/storage/upyun.jscore/server/storage/upyun 实现又拍云支持

配置

以下为示例

upyun: {
    bucketname: 'my-first-bucket', //空间名称
    username: 'somebody', //操作员名称
    password: 'secret', //密码
    root: '/images/', //文件存储在哪个目录。可以设置为 `/` 表示存储在根目录
    prefix: 'http://cdn.my-domainname.com',  //上传的文件的 URL 前缀,可以是你自己绑定的二级域名或者又拍云默认分配的二级域名。
    savelocal: true  //配置是否将上传的图片文件保存在本地,默认为 true
}

上传文件在又拍云上的存储结构

首先计算上传文件的 md5 值,然后获得日期(格式为 YYYY-MM-DD,来自服务器时间),取 md5 值作为文件名。例如:

某上传文件的 md5 值为:6fb2a38dc107eacb41cf1656e899cf70;扩展名为 .jpg ;目录及文件组织结构为:YYYY-MM-DD/6fb2a38dc107eacb41cf1656e899cf70.jpg

注意

  • content/images 目录必须设置正确的写权限。

版权和许可证