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

hyper.io

v0.7.7

Published

MicroServices so fast they've gone plaid!

Downloads

131

Readme

Build Status Coverage Status License Dependency Status devDependency Status

NPM

Features

  • Auto Service Discovery
  • Encourage Modular based design
    • Services
    • Controllers
    • Resolvers
    • Resources
    • Factories
    • Adapters
  • Modern
    • DI
    • Promises
    • Streams
  • Production Ready
    • Session Management
    • SSL Support
    • Configuration Management
    • Logging Management
    • Secure
    • Stats Collection
    • Throttling/Service Protection
    • Input Validation
    • API Doc Generation
    • Load tests
    • Benchmarking Tools
  • Middleware Plugins
    • Plugin manager (yanpm)
    • Configuration management (default: transfuser)
    • Logging (default: stumpy)
    • Template Engines (default: ejs)
    • Monitor Server Stats (default: statsd)
    • Authentication
      • basic auth
      • SSO (default: passport)
  • CLI
    • Keep Alive (default: forever)
    • Scaffolding Generator
    • Build/Package/Deploy
    • Load tests
    • Benchmarking Tools

Note: Bold items are on the roadmap, not in the current release.

Example

See Examples directory

API

Config Loading/Merge Order

  1. Built in config
  2. Current working directory (most likely, dir server was run in)
    • config.json
    • config.js
    • <app/project name>.config.json
    • <app/project name>.config.js
  3. User home directory
    • config.custom.json
    • config.custom.js
    • <app/project name>.config.custom.json
    • <app/project name>.config.custom.json

Functions Dependency Injection

  • $hyper: instance of the current hyper server
  • $q: promise library used in hyper (default: when)
  • _: util library used in hyper (default: lodash)
  • $logger: logger library used in hyper (default: stumpy)
  • $rawRequest: raw route request from httpFramework
  • $rawResponse: raw route response from httpFramework
  • $next: route next function
  • $done: route done function
  • $error: route error function
  • $fatal: route fatal function
  • $session: req.session
  • $cookies: req.cookies
  • $input
    • $input.body: POST data
    • $input.query: GET query data
    • $input.params: GET query data

Releases

Current Release

  • 0.6.0 - Release
    • Service Export
    • Added Resource Manager
    • Lint Cleanup/Fixes

Next Release

  • 0.6.x - More Polish

    • [ ] Error checks
  • 1.0.0 - ES Next!

    • [ ] ES6 Classes, decorators
    • [ ] General route pipeline
    • [ ] Move Express out of the framework to its own plugin (hyper.io-express)
    • [ ] API documentation
    • [ ] Cleanup/Remove old features not heavily used

Road Map


  • 1.x.0 - Release
    • add Koa support
    • Move Service router adapter to plugins and use external repos
    • Examples:
      • Auth middleware
        • JWT
        • Passport
    • Input validation
      • Express
        • https://github.com/ctavan/express-validator
        • https://github.com/petreboy14/express-joi
    • Unit Tests
    • Route Throttling
      • Express
        • https://github.com/ivolo/express-rate
    • API Doc generation
      • Express
        • https://github.com/fliptoo/swagger-express
    • CLI
      • Keep Alive
        • Forever - https://github.com/foreverjs/forever
        • PM2 - https://github.com/Unitech/pm2
      • Add API Doc generation
      • Create Route for a Controller
      • Create Basic Server with Service
      • Build/Package/Deploy
    • Support Clustering

  • 2.0.0 - Release
    • Load tests
    • Benchmarking Tools
    • Polish and bug fixes
    • More Documentation
      • How To
        • Server production setup
      • Update API
    • Push to Service Store

Prev Release(s)

  • 0.2.0 - Release

    • Add Resolvers
    • Add middleware system
      • Add required option to route
      • Add basic auth middleware
  • 0.3.0 - Release

    • Add Resource type
      • Resource Examples
        • Basic
        • SQLite
      • Add Resource per Service
    • Add Multi Service Example
      • Single File
      • Multi File
    • Add Basic Auth Example
    • Add Config Examples
    • Add DI to Services and Controllers Constructors
    • API Tests
      • Routes
      • Controllers
      • Services
      • Resolvers
      • Resources
      • Custom paths
  • 0.4.0 - Release

    • Update Dependencies
    • Add Service Router
      • Add HTTP Adapter
    • Add $services DI
      • .find(<service name>)
      • .get(<route>, [<query/hash data URL format>])
    • Add tests for all examples
    • Add auto-exec $init function waiting on return promise
    • Examples
      • External Services
      • Sessions
      • Input
  • 0.5.0 - Release

    • Replace Middleware with yanpm plugin manager
    • Refactor Service Manager - breaking it into smaller modules
    • Custom binary responses
    • Examples:
      • Auth middleware - Basic

License

MIT licence information.