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

garrosh

v0.0.8

Published

garrosh is a backend framework, fast, using MVC conventions

Downloads

5

Readme

概述

简介

garrosh是基于nodejs的web应用框架,拥有安装快速便捷,使用简单迅速,功能完整等特点,特别适用于小型且快速迭代项目的搭建。它的特点包括:

  • 文件目录简单清晰,框架约束力强,避免项目复杂导致目录结构或者逻辑混乱。
  • 控制器(controller)按需加载,编写方式灵活多样。
  • 内置监控(monitor)模块,快速掌握web应用的全面信息。
  • 中间件(middleware)扩展性强。

安装

garrosh的安装和其他node插件类似,使用npm在项目根目录执行:

$ npm install garrosh

启动

您可以使用garrosh内置的脚手架工具进行项目的初始化。在命令行输入如下命令即可。

garrosh init --name someProject --author somePerson

输入命令后,脚手架工具会帮助您创建必要的文件。接着输入如下命令会调用node cluster启动数个进程,数量等于物理机cpu个数。(可在config/server.jscluster配置项进行更改)

$ node index.js

目录结构

为了保证项目的功能需求,您还必须满足一定的目录结构并编写控制器、模板页面、前端JS脚本(如果需要的话)等等。点此查看基本目录结构