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

oirepo

v1.0.2

Published

Simple tool for OIer to save C++ source file into repo and replace current file with template source file.

Readme

oirepo

介绍

oirepo是一个用Node.js构建的,为OI训练准备的自用小工具,可以通过简单的命令将当前源文件存入仓库、载入源文件模板、编译执行单个源文件并按照配置启用响应编译参数。避免手动复制源文件、切题时花时间在删代码或写#include、using namespace std、freopen之类的鬼地方上,还可以一键载入各种提前设定好的模板,比如快读模板、邻接表模板... 暂时想到这些功能233

使用oirepo的工作流(部分):

  1. 当写出AC代码或反面教材或一题多解时,使用oirepo save xxx或直接orp s xxx,将当前源文件复制进repo(源文件仓库)的xxx.cpp
  2. 当写出了一堆垃圾时,使用oirepo clear或直接orp c,清空当前源文件,并替换成默认模板文件。也可以在后面加上模板文件名来指定其它模板
  3. 当AC了一道题,想要切题时,可以分别执行步骤1和2,也可使用oirepo push xxx或直接orp p xxx,将当前源文件复制进repo(源文件仓库)并用模板替换当前源文件
  4. (待施工)想编译运行当前源文件,oirepo run或者orp r将使用预先配置好的命令编译并运行代码;也可以选择先将所有输入存进文件或流(用Ctrl+Z结束),再一次性传给待运行程序来模拟文件输入输出,计时并运行,输出结果和用时。
  5. ...

oirepo需要配置一个repo(源文件仓库)文件夹,来存放写好的源文件;还有一个template(模板)文件夹,存放模板源文件,详见下文

快速入门

1. 安装Node.js

2. 安装oirepo

  • 从npm下载(推荐):
    • 通过命令行执行npm install oirepo -g直接将oirepo全局安装至本地,npm会自动下载所有依赖包
  • 从github获取源码包
    • 从github下载源码包并解压,或直接使用命令git clone https://github.com/CuberQAQ/oirepo.git(先确保安装了git)
    • 在源码目录下执行npm i -g,将oirepo全局安装至本地,npm会自动下载所有依赖包

3. 配置oirepo及更多

使用 oirepo helpoirepo help <子命令>来获取帮助...