Need private packages and team management tools?Check out npm Teams »

kado

4.1.0 • Public • Published

Kado

pipeline status Build Status npm version Join the chat at https://gitter.im/KadoOrg/Lobby

npm install kado

JavaScript Framework Libraries for Node.JS

Features

  • Easily setup web servers to replace Apache, NGINX, etc.
  • Build command line applications quickly.
  • Create back ends for existing applications and save resources.
  • Trusted by applications serving billions of page views.
  • 0 external dependencies. The buck stops here!
  • Libraries for most common application needs.
  • Thoroughly tested, continuously integrated, actively developed.
  • Make your own framework in just a few minutes!
  • Code is peer reviewed, openly developed, openly licensed.
  • Assertion, validation, and test running built in.
  • LGPL 3.0 License. Use Kado where you need it.

Quick Hello Server

Place the following code into an empty JavaScript file, example: app.js.

const HyperText = require('kado/lib/HyperText')
const app = require('kado').getInstance()
const http = new HyperText.HyperTextServer()
app.http.addEngine('http', http.createServer(app.router))
app.get('/', (req, res) => { res.end('Hello') })
app.start().then(() => app.listen())

After saving the file, execute the code by running the following command from the same folder as the JavaScript file.

node app

Once the command has executed, a web server that says "Hello" will be available on port 3000 of your local machine, example: http://localhost:3000.

See kado.org for more guides and examples.

Kado Library List

This is an exhaustive lise of all the JavaScript libraries provided with Kado. Each library has a link to its documentation as well as a short description of what is provided by the library.

  • Application - Create a new application containing most Kado features.
  • Assert - Make assertions on input or tests.
  • Asset - Store, filter, and query static application files.
  • ChildProcess - Child process library adding convenience and functionality to the core child_process functions.
  • Cluster - Cluster library for constructing and operating process clusters.
  • Command - Build CLI applications with ease.
  • CommandServer - Execute CLI applications like a web server.
  • Connect - Framework for housing external resource connections.
  • ConnectEngine - Interface for creating an engine to be used with a Connect system.
  • Cron - Execute functions on a schedule similar to UNIX cron jobs.
  • Database - Connect system made for Databases.
  • Email - Connect system made for Email.
  • ETag - Class for determining ETag header.
  • Event - Create, track and handle application events with log levels.
  • FileSystem - Consistent API for use with File System methods.
  • Format - Commonly used String, Number, and Date format methods.
  • GetOpt - Parse command line string input into an object.
  • History - Track user navigation history throughout a session.
  • HyperText - Connect system made for HTTP servers.
  • Language - Internationalization helpers including loading, parsing, and displaying languages.
  • Library - Dynamic library loader.
  • Lifecycle - Start and stop systems with events.
  • Log - Connect system made for Logs.
  • Mapper - ECMA Map functionality on Objects.
  • Message - Create, track and handle messages from various inputs and outputs.
  • Module - Super class for creating Kado modules.
  • Mime - Class for determining file types.
  • Navigation - Create and manage application menus.
  • Parser - Parse input strings to variables such as objects.
  • PathExp - Use path notation to validate routes on URIs.
  • Permission - Create and test permission sets to allow fine grained user control.
  • Profiler - Track application resource usage and timing.
  • Router - Store and process application route points.
  • Search - Connect system for made for search.
  • Session - Session system for storing data against users.
  • TestRunner - Define and run Test Suites and Tests.
  • Util - Misfit useful functions.
  • Validate - Validate input.
  • View - Connect system made for rendering.

Questions or Problems?

Please see our bug tracker

Change Log

Please see the CHANGELOG

Contributing

Please see the Contribution Guidelines

License

Kado Copyright (C) 2013-2020 Bryan Tong, NULLIVEX LLC. All rights reserved. Kado is licensed under the Lesser GNU Public License version 3.0 or newer see LICENSE.md for a complete copy of applicable licenses.

Install

npm i kado

DownloadsWeekly Downloads

107

Version

4.1.0

License

LGPL-3.0

Unpacked Size

640 kB

Total Files

147

Homepage

kado.org

Last publish

Collaborators

  • avatar