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

rsflat

v0.3.1

Published

Start flat projects faster

Downloads

34

Readme

rsflat

Start flat projects faster

How can use:

yarn add -D rsflat

options

serve

Starting your flat project

  • --c

Select the evolve profile for the flat project ,default: flatjs-evolve.config.ts

evolve的配置文件。默认是flatjs-evolve.config.ts

  • --m

Select the mock profile for the flat project ,default: flatjs-mock.config.ts

mock的配置文件,默认是flatjs-mock.config.ts

  • --n

Whether to enable loading flat mock, If you carry this parameter, mock is not turned on, default: false

是否加载flat mock,默认开启, 不带--n 就是忽略flat mock,如果flatMock配置和evolve配置的端口不一致就用mock的端口,如果一致就在端口号+1,

  • --p

Whether to enable the built-in api proxymap,Local mock is turned on when set to true, default: true

是否开启内置 api 代理,开启后会通过请求携带的header中的 rs-host 将对应请求代理到 rs-host的值【需要是服务器地址】,默认开启,--p 就是不开启内置 api 代理


So,You wang to run a flat project width local mock service, you can run

rsflat serve

If run it whitout mock, you can run

rsflat serve --n true
// default:false

If run it whithout buildin api proxy, you can run

rsflat serve --p true
// default:false

build

Build your flat project

  • --c

Select the evolve profile for the flat project ,default: flatjs-evolve.config.ts

evolve的配置文件。默认是flatjs-evolve.config.ts

  • --m

Select the mock profile for the flat project ,default: flatjs-mock.config.ts

mock的配置文件,默认是flatjs-mock.config.ts

  • --f

Filter for build entiry

构建的过滤条件, 包含哪些入口

  • --t

Switch the typescript checker, default: false

是否开启typescript检查,默认关闭