Registry / testing / kime-framework

kime-framework

JSON →
library1.0.1jsnpmunverified

Kime Framework is a lightweight Node.js web framework with a CLI for rapid application development, currently at version 1.0.1. It provides simple routing, EJS template engine support, and scaffolding commands for controllers and models. Designed for beginners or small projects, it differentiates itself with an all-in-one CLI workflow. The package has not been updated since initial release, and its ecosystem is minimal.

npm install kime-framework
INSTALL
IMPORT
SIG · KIME-FRAMEWORK
K
kime-framework
testingjavascriptv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Kime
const { Kime } = require('kime-framework');
import { Kime } from 'kime-framework';
CJS only; no ESM support.
Router
const { Router } = require('kime-framework');
const Router = require('kime-framework').Router;
Named export from main module.
Template
const { Template } = require('kime-framework');
new Template(app.app, 'views');
Requires express app instance (app.app) and views directory.

Sets up a basic Kime server with routing and template engine.

const { Kime, Router, Template } = require('kime-framework'); const app = new Kime(); const router = new Router(); new Template(app.app, 'views'); router.get('/', (req, res) => { res.send('Hello World!'); }); router.apply(app.app); app.listen(3000, () => { console.log('Server running on port 3000'); });
Debug
Known issues
gotchaTemplate constructor expects specific Express app instance: `new Template(app.app, 'views')` where `app` is a Kime instance.
fix
Use the Kime instance's `app` property for the Template constructor.
affects: >=1.0.0
gotchaRouter's `apply` method must be called to attach routes to the Express app.
fix
Call `router.apply(app.app)` after defining routes.
affects: >=1.0.0
deprecatedThe CLI command `kime serve` is undocumented and may not work as expected.
fix
Use `npm start` or `node app/server.js` instead.
affects: 1.0.1
Errors
Common errors & fixes
TypeError: app.app is undefined
Accessing `app.app` on Kime instance before initialization or using wrong property.
fix
Ensure `const app = new Kime();` and then use `app.app` as the Express app instance.
Cannot find module 'ejs'
EJS is required by Template engine but not installed.
fix
Run `npm install ejs` in your project.
kime: command not found
Global installation missing or not in PATH.
fix
Install globally: `npm install -g kime-framework` or use `npx kime-framework`.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies
ejsrequiredTemplate engine dependency
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
kime-framework — npm install kime-framework · libregistry