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

artipub-frontend

v0.2.1

Published

Article publishing platform that automatically distributes your articles to various media channels

Downloads

6

Readme

ArtiPub 前端模块

从 0.1.6 开始前后端分开打包, 对应后端包 artipub-backend

启动命令

//全局安装
npm i -g artipub-frontend --production

//默认启动 http://localhost:8000 ,前台运行,命令终端关闭,则服务也关闭。
artipub-fe start

//查看其他配置参数
artipub-fe start --help

//如果不部署在本地,可以通过 -h 参数指定后端服务地址(默认请求 http://127.0.0.1:3000), -D 将用pm2 作为静态服务器,在后台运行。
artipub-fe start -h http://192.168.1.1:3000 -D

// 加 -D 之后就可以使用pm2的一系列命令来管理服务, 除 list 外,其他命令后面可以跟 服务id,来操作相应服务
pm2 list //查看服务状态
pm2 logs //查看日志
pm2 restart //重启服务
pm2 delete //删除服务
pm2 stop //停止服务

static-page-server-8000 为前端服务
id 0/1 为集群模式启动的两个后端服务

┌─────┬────────────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├─────┼────────────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ server │ default │ 0.2.1 │ cluster │ 158073 │ 2D │ 0 │ online │ 0% │ 68.8mb │ root │ disabled │ │ 1 │ server │ default │ 0.2.1 │ cluster │ 158080 │ 2D │ 0 │ online │ 0% │ 69.2mb │ root │ disabled │ │ 3 │ static-page-server-8000 │ default │ 4.5.5 │ fork │ 956375 │ 43m │ 0 │ online │ 0% │ 44.5mb │ root │ disabled │ └─────┴────────────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

//非全局安装
npm i artipub-frontend --production

//安装目录下执行, 确保npm 5+, 有npx命令
npx artipub-fe start

//或者
./node_modules/.bin/artipub-fe start

//查看其他配置参数
npx artipub-fe start --help