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

oiii

v0.6.8

Published

1、全局安装 ``` > npm i oiii -g ``` 2、初始化项目(项目目录) ``` > bot init > bot init 1 # 覆盖已有文件 ``` 3、开启图像界面服务 ``` > bot open ui ``` 4、关闭图像界面服务 ``` > bot close ui ``` 默认访问端口: 请求代理端口为:80 对应静态资源访问路径为:localhost/admin 相应服务请求端口:8080 请求代理修改文件:./proxy.mjs

Downloads

7

Readme

简易后端解决方案

一、初始化后端服务项目

1、全局安装

> npm i oiii -g

2、初始化项目(项目目录)

> bot init
> bot init 1 # 覆盖已有文件

3、开启图像界面服务

> bot open ui

4、关闭图像界面服务

> bot close ui

默认访问端口: 请求代理端口为:80 对应静态资源访问路径为:localhost/admin 相应服务请求端口:8080 请求代理修改文件:./proxy.mjs 服务请求端口修改文件:./config.mjs

二、更新基于若伊前端开发项目

1、拉取项目

> git clone https://github.com/yangzongzhuan/RuoYi-Vue3.git

2、更新文件

> bot update

三、功能说明

1、使用简易微服务(UDP/TCP)

import {udpService} from './index.mjs'
const pools = {
    s: {test: 'localhost:9000/test'}
}
// 9000端
const s = udpService(pools, {port: 9000, callback(path, data, next) {

    next('9000')
}})
// s.close()
// 9001端
const map = new Map
map.set('/test', data => new Promise((resolve, reject) => reject('9001')))
udpService(pools, {port: 9001, map}).s.test().then(r => console.log(r.toString())) // '9000'

也可以通过后台“系统工具”->“服务管理”里面辅助维护导出辅助mjs文件。

2、服务托管使用的是pm2库支持。

3、MySQL数据库库tools2/mysql2ssh2.mjs,基于mysql2和ssh2。

import Query from 'tools2/mysql2ssh2.mjs'

const query = new Query({...}, {...}) // mysqlConfig、sshConfig

query`SELECT * FROM t_test`.then(...)

query.close()

4、NoSql小型数据库操作见dmb3的README。

5、资源上传,可以将任何资源上传到config里面的静态目录。

6、实现接口时建议先阅读tools2的README里面封装express部分,开发管理系统接口建议继承Admin、AdminAuth、AdminAuthPerm这几个类, 开发其他接口也建议参考这几个类。

7、使用bot close ui命令可以关闭图形界面和图形界面支撑服务,使用bot open ui可以再次打开。

8、下个功能更新将用简易加密和clientKey+serveKey实现JWT。