0.7.7 • Published 4 years ago

hyper.io v0.7.7

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

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



  • 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.

0.7.7

4 years ago

0.7.6

5 years ago

0.7.5

6 years ago

0.7.4

7 years ago

0.7.3

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.6

7 years ago

0.6.5

8 years ago

0.6.4

8 years ago

0.6.3

8 years ago

0.6.2

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.0-alpha6

8 years ago

0.5.0-alpha5

8 years ago

0.5.0-alpha4

8 years ago

0.4.2

8 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.14

9 years ago

0.3.13

9 years ago

0.3.12

9 years ago

0.3.11

9 years ago

0.3.10

9 years ago

0.3.9

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.2.13

9 years ago

0.2.12

9 years ago

0.2.11

9 years ago

0.2.10

9 years ago

0.2.9

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.1

9 years ago

0.2.0

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago