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

@augejs/module-core

v1.0.2-rc.4

Published

`@augejs/module-core` is a module framework which support using `dependency injection` way to composite kinds of `Modules` and `Providers` to complex application.

Downloads

64

Readme

augejs

npm version standard-readme compliant

augejs is a progressive Node.js framework for building applications.

:star2: Star us on GitHub — it helps! :clap:

Table of Contents

Description

augejs is a progressive Node.js framework for building applications. It uses modern JavaScript built with TypeScript.

Look at a diagram below:

An application is composite of 3 types of element:

Provider is an abstract logic unit which can provide for Module.

Decorator is an abstract logic unit which can decorate for Module and Provider.

Module is consists of Provider and Module.

This is the one of fundamental concept for augejs.

Features

  • :penguin: The core layer is small, simple and extensible.

  • :baby_chick: Progressive Development.

Install

This project uses node and npm. Go check them out if you don't have them locally installed.

npm install @augejs/module-core

Usage

import { Module, boot } from '@augejs/module-core';

// we use a @Module decorator to define a module
@Module()
class AppModule {
  async onInit() {
    // the onInit lifecycle method will be called when application boot
    console.log('hello augejs');
  }
}

(async () => {
  // boot the whole application by module.
  await boot(AppModule);
})();

Package Dependencies

Lifecycle

There is the lifecycle name for Module And Provider.

Please take a look at this link provider-scanner-hook, augejs is on top of that. augejs application boot flow is a middleware execute mode.

Cluster Decorator

See examples/cluster

@Cluster({
  workers: 2
}) 
@Module()
class AppModule() {
}

The above code, the program will startup as a master daemon process and the AppModule will startup as a worker process. If the worker process is exit with an exception or killing by other cases then the master process will fork a new work process for AppModule.

If the master process is exit with signal(SIGTERM), the work process will shutdown gracefully.

Document

visit augejs.github.io. :tada:

Examples

see the Examples. :open_book:

Related Efforts

Maintainers

Alex Zhang.

Contributing

Feel free to dive in! Open an issue or submit PRs.

augejs follows the Contributor Covenant Code of Conduct.

Contributors

This project exists thanks to all the people who contribute.

...

License

MIT © augejs