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

@kwaeri/node-kit

v0.4.2

Published

A simple, yet powerful, and fully-featured tooling for Node.js.

Downloads

49

Readme

Patreon kwaeri-node-kit PayPal

A Massively Modified Open Source Project by kirvedx

GPG/Keybase Google GitLab GitHub npm

node-kit is the entry point to the @kwaeri suite of components, which collectively provide a platform that makes it easy to develop applications with Node.js.

pipeline status coverage report CII Best Practices

Table of Contents

| MMOD DOCUMENTATION WIKI (node-kit SERIES) | |:------------------------------------------------------------------------------| |Introduction| |The History of NK| |How to Build a Kwaeri Application

In this Article

A Prelude to Getting Started

kwaeri/node-kit is not ready for production, but published for testing and development purposes. It is in a beta state that is intended for allowing a larger audience of users to try out anything that may already be available, but please be aware that there is likely many aspects of the platform which are not working and/or completely broken; This is intended to allow users to find and report such issues so that they may be fixed. Updated documentation and complete examples and tutorials for getting started will be provided as the platform rewrite nears completion.

As an aside, the README.md file used to be very large and quite informal; while certain major aspects of the README.md file's intent are going to be preserved - we will strive to get documentation migrated out to the MMOD Documentation Project's wiki where it can eventually be a data-store or model for hydrating a more permanent - and future - documentation site.

Development Status

Recently kwaeri/node-kit has seen some major changes which will break any existing projects developed with it. If this is the case for you, you'll want to stick to version 0.2.2 or older - though please be advised that the 0.2.x pre-release channel will no longer see any support. Version 0.3.x and newer is the current focus, and provides some welcomed changes that inche kwaeri/node-kit closer to a release candidate.

The entire project has been over-hauled and some much needed clean-up has been done. Previously, the project was nested under the mmod group on GitLab - but has now been migrated to an Open Source project (via the GitLab Open Source Program) in the node-kit sub-group of the kwaeri group.

As only node-kit related repositories will exist within this new hierarchy, we'll be making use of the project board for the entire sub-group in managing the - now fully - componentized platform. Issues can be reported directed under the respective component-module - as they'll propogate under the group's service desk.

If you have taken an interest in node-kit, and would like to see a focus on something that you feel is more important and/or useful to you in the near future, please submit an issue.

The Implementation

node-kit is the entry point to the kwaeri suite of components, which collectively provide a platform for application development with Node.js.

node-kit couples an original MV(a)C framework with a customizable application architecture, and completes the pairing with extensible end-to-end tooling.

The Kit

node-kit's MVC framework offers several application architectures.

  • Use a kwaeri REST application for your back-end application, and leverage React - in a kwaeri React app - for your front-end.
  • Use a Kwaeri MV(a)C application, which offers built-in support for themes (called 'layouts'), modules, and comes complete with a HTML Template Engine. Render a response entirely server-side - or render an initial container server-side that's followed up with React, similar technologies, or a custom client-side application.
  • Use a kwaeri XRM application as your product solution. The XRM is a two-faced application that implements and specializes entirely through its extension system.
  • Choose from a variety of options for session support, or develop your own; REDIS is the latest addition to the session store collection, which includes Memcached, MySQL, PostgreSQL, a file-based solution. As a bottom line, one can spin up an application on the fly that leverages an in-memory store.
  • Enjoy file-based routing.
  • Every application template [per app architecture] is complimented by a full set of docker builds, compose definitions and supporting resources, and pipeline templates.
  • ...to be continued.

The CLI

The kue binary provides a project CLI (command-line interface) for developers to leverage with kwaeri projects. With the CLI, developers can save time they would otherwise spend on redundant processes and tasks. A subset of functionality the CLI provides:

  • Generate a project, either a kwaeri MVC, kwaeri REST or kwaeri React application. Kwaeri XRM extension project templates are planned to be included with a future release.
  • Generate template resources (i.e. REST endpoints) on the fly.
  • Generate template React components on the fly (either presentation or container, with or without Redux support).
  • Seed a database from the command line (using a seed, or *.sql file).
  • Generate database migrations.
  • Execute database migrations. It's easy to script kue within your containerized applications (when authoring pipelines), to - for instance - apply migrations as part of a pipeline. Examples of this are included in the project templates.
  • Create an administrative user (when leveraging kwaeri's provided context-based user management).

The CLI leverages a configuration (kwaeri.config.json in React projects, or kwaeri.{default|development|production}.json in MVC/REST/XRM projects) through out the life of a kwaeri project to assist with generating content on a per-file basis, and with performing administrative tasks (i.e. migrations).

The CLI takes its functionality from extensions (specified in cli.json) through its publisher/subscriber system. The idea is similar to that of the Kwaeri XRM in that the extension system itself is the essence of the entire product, with its specializations provided by the extensions - the core functionality included.

Both the CLI and the XRM come with default core extensions; In the case of the CLI the extensions support the Kwaeri framework and applications specific to it - though what's to stop a developer from authoring extensions that turn kue into an express tooling or tooling for their favorite framework or DBMS?

NOTE: The entry point to the user-executable has not yet been published. It's being worked on in tandem with the node-kit entry and as the template applications are updated to work with the rewrite of the platform, the user executable - and its extensions - will be adjusted, published, and released.

The XRM

With the XRM, one can wholly replace the core extension(s). The gist of the XRM is that its a Cross-Relational Management system, providing the foundational backbone and extension ecosystem needed to cater specifically to product specialization, rather than content management. Think of it like a CMS for developers.

The XRM has been fully tested, is tried and true, but is a complex beast under the hood; In rewriting the entire platform the XRM needed an overhaul too - it was implemented over the previously linear - and monolothic - platform and is being updated for the platform rewrite. This offers an opportunity to not only clean it up, but to improve efficiency and offer more in terms of functionality and versatility.

Look forward to its release!

How it works

kwaeri/node-kit is the entry point for kwaeri applications. In rewriting the platform that is exactly how it is implemented. A local (to the project) copy of node-kit will be installed when npm install . is run after generating a project.

To install the tooling, run npm install -g @kwaeri/user-executable. This will give you a global install of the CLI (COMING SOON!).

A kwaeri project's structure is important when considering how project structure, files, and other content are generated. This can often be manipulated through the use of a configuration (app.environment.json) which is expected either at the root (React projects) - or within the conf (REST/XRM projects) - directory of any kwaeri project.

For a deeper understanding of a kwaeri application, especially the inner workings of the MVC framework - browse the respective documentation within the MMOD Documentation Project's wiki (Please note that this may be outdated at this point. Stay tuned!)

Usage

As we complete kwaeri/node-kit and release the kue CLI, this section will be expanded.

As an example of using node-kit from end-to-end, we'll build a REST project. Let's start by generating a new project:

kue new project --type rest MyRestProject

Let's enter the root of our new project:

cd my-rest-project

And add a new endpoint:

kue add end-point --type rest MyNewEndpoint

Let's say several iterations have happened and we are ready to manage some migrations, let us generate one:

kue add migration --type mysql AddUserToAppMigration

And after defining the migration we'll go ahead and apply it:

kue run migrations

Oops! We messed up, let's undo it:

kue run migrations --step-back 1

Finally, let's test the app (go ahead, set some break points first):

npm run debug

NOTE

As mentioned earlier, the README used to be a giant beast that spelled out everything and in a wordy way. The plan is to continue development of the platform and as we near a release candidate prepare some clear and clean documentation.

How to Contribute Code

Our Open Source projects are always open to contribution. If you'd like to cocntribute, all we ask is that you follow the guidelines for contributions, which can be found at the Massively Modified Wiki

There you'll find topics such as the guidelines for contributions; step-by-step walk-throughs for getting set up, Coding Standards, CSS Naming Conventions, and more.

The project also leverages Keybase for communication and alerts - outside of standard email. To join our keybase chat, run the following from terminal (assuming you have keybase installed and running):

keybase team request-access kwaeri

Alternatively, you could search for the team in the GUI application and request access from there.

Other Ways to Contribute

There are other ways to contribute to the project other than with code. Consider testing the software, or in case you've found an Bug - please report it. You can also support the project monetarly through donations via PayPal.

Regardless of how you'd like to contribute, you can also find in-depth information for how to do so at the Massively Modified Wiki

Bug Reports

To submit bug reports, request enhancements, and/or new features - please make use of the issues system baked-in to our source control project space at Gitlab

You may optionally start an issue, track, and manage it via email by sending an email to our project's support desk.

For more in-depth documentation on the process of submitting bug reports, please visit the Massively Modified Wiki on Bug Reports

Vulnerability Reports

Our Vulnerability Reporting process is very similar to Gitlab's. In fact, you could say its a fork.

To submit vulnerability reports, please email our Security Group. We will try to acknowledge receipt of said vulnerability by the next business day, and to also provide regular updates about our progress. If you are curious about the status of your report feel free to email us again. If you wish to encrypt your disclosure email, like with gitlab - please email us to ask for our GPG Key.

Please refrain from requesting compensation for reporting vulnerabilities. We will publicly acknowledge your responsible disclosure, if you request us to do so. We will also try to make the confidential issue public after the vulnerability is announced.

You are not allowed, and will not be able, to search for vulnerabilities on Gitlab.com. As our software is open source, you may download a copy of the source and test against that.

Confidential Issues

When a vulnerability is discovered, we create a [confidential issue] to track it internally. Security patches will be pushed to private branches and eventually merged into a security branch. Security issues that are not vulnerabilites can be seen on our public issue tracker.

For more in-depth information regarding vulnerability reports, confidentiality, and our practices; Please visit the Massively Modified Wiki on Vulnerability

Donations

If you cannot contribute time or energy to neither the code base, documentation, nor community support; please consider making a monetary contribution which is extremely useful for maintaining the Massively Modified network and all the goodies offered free to the public.

Donate via PayPal.com