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

jaina

v0.0.1

Published

A web application framework based on nodeJS. See more at http://node.baidu.com/

Downloads

4

Readme

概述

简介

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

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

安装

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

$ npm install node-framework

启动

首先您需要建立一个程序启动入口。一般命名为index.js并放置在项目根目录下。一个示例启动文件如下:

// 项目启动文件index.js
var Application = require('node-framework').Application;
var app = new Application();
app.run();

线上方式,会调用node cluster启动数个进程,数量等于物理机cpu个数。(可在config/server.jscluster配置项进行更改)

$ node index.js

目录结构

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