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

hunt

v0.7.1

Published

High level nodejs framework build on top of expressjs, mongoose, sequilize, socketio and passportjs

Downloads

165

Readme

HuntJS

NPM version Codacy Badge Build Status Stories in Ready Dependency Status ![Gitter](https://badges.gitter.im/Join Chat.svg)

"Hello, world!" Example

This is short, basic, "hello, world!" example, to start http server on 3000 port.


  require('hunt')({
   'port': 3000
  })
  .extendController('/', function (core, router) {
    router.get('/', function (req, res) {
      res.send('Hello, world!');
    });
  })
  .startWebServer();

Documentation and live example

https://huntjs.herokuapp.com/

Tutorials

More examples

https://github.com/vodolaz095/hunt/tree/master/examples/

Shameless advertisement

You can hire the author of this package by Odesk - https://www.odesk.com/users/~0120ba573d09c66c51

Use cases

http://pageshooter.herokuapp.com/ - application to make site screenshots as PNG images. Some income from Google Adsense.

What do you get from the box?

Just run npm install hunt and you get ready to use high level nodejs framework, that links together many preconfigured and working perfectly together modules. This is it. Hunt...

  • works on latest versions of NodeJS >=0.10.26

  • is a real event driven (by pattern Observer) framework build on top of ExpressJS, suitable not only for creating HTTP-based web applications, but background services, binary protocol applications, websockets or even xmpp based applications.

  • Mongo database and Mongoose ORM support from the box

  • sequelizejs ORM for MySQL, PostgreSQL, sqlite and MariaDB via official plugin - Hunt-Sequilize.

  • The best sides of express.js framework are supported: routing, middlewares, controllers. And this is done in clever way - expressjs application can be easily converted to Hunt application.

  • Popular template engines are supported - Mustache, Swig, jade.

  • Powerful users model to use at your application, with customizable profile, groups, and compatibility with majority of passport.js strategies, custom profile data and build up with Active Record and Observer patterns

  • Redis database support from the box, with default use of it as session storage and socket.io backend.

  • Hunt applications are easy to run on Heroku hosting - many config values (mongo/redis database access URLs, etc...) are populated automatically

  • Clustering by the means of nodejs build in load balancer

  • Websocket, Htmlfile, xhr-polling, jsonp-polling for real time push messages are supported by the means of socket.io and works from the box, even with websockets working on nginx and heroku

  • socket.io is perfectly linked with user model and passportjs authorization system, so you can send realtime notifications to users online just like this

  • Possibility to run HuntJs as Telnet - server with TLS support, authentication and expandable commands' list, created with help of RAI server

System requirements

  • Linux (this is your problem, if you want to build this package on other operating systems)
  • NodeJS >= 0.10.26 (version build from source is preferable, because hunt builds some dependencies from source)
  • Redis >= 2.6.16
  • Mongo >= 2.4.6 (optional)
  • MySQL >= 5.6.16 (optional)
  • PostgreSQL >= 9.2 (optional)

Important!

Without understanding how express.js framework operates, including

this module is hard to understand. Please, read this information above before processing with this framework.

Deploying the HuntJS application for production

We will post some advices and configuration examples: https://github.com/vodolaz095/hunt/tree/master/examples/serverConfigsExamples

License

The MIT License (MIT)

Copyright (c) 2013 Ostroumov Anatolij ostroumov095(at)gmail(dot)com et al.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.