Registry / database / wate-engine

wate-engine

JSON →
library3.19.5jsnpmunverified

Wate Engine is a CMS engine for Node.js/Express applications, using SQLite as its database and EJS for templating. Current stable version is 3.19.5 (release cadence: irregular, last updated 2021). It dynamically generates CRUD interfaces from database tables, similar to a low-code admin panel. Differentiators: minimalist, no external dependencies beyond Express and SQLite3; entirely DB-driven schema without migrations; supports multi-tenant and plugin architecture. Designed for small to medium projects needing a quick admin backend.

npm install wate-engine
INSTALL
IMPORT
SIG · WATE-ENGINE
W
wate-engine
databasejavascriptv3.19.5
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.

default
const Wate = require('wate-engine')
import Wate from 'wate-engine'
Package uses CommonJS; ESM import may fail without transpilation.
Wate
const Wate = require('wate-engine').Wate
const { Wate } = require('wate-engine')
Wate is a property on the default export, not a named export in CommonJS.
types
const { Wate } = require('wate-engine')
import { Wate } from 'wate-engine'
Type definitions are not shipped; use @types/wate-engine if available.

Initializes Wate Engine with Express, SQLite database, and mounts admin router at /admin.

const express = require('express'); const Wate = require('wate-engine'); const app = express(); app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.set('view engine', 'ejs'); const wate = new Wate({ dbPath: './database.sqlite', secret: 'mysecret', plugins: [] }); app.use('/admin', wate.router); const PORT = process.env.PORT || 3000; app.listen(PORT, () => console.log(`Running on ${PORT}`));
Debug
Known issues
breakingUpgrading from v2 to v3: database schema auto-migration may drop custom columns.
fix
Backup database before upgrade; manually migrate using migration scripts.
affects: >=3.0.0 <3.0.0
deprecatedThe 'plugins' option in constructor is deprecated since v3.5.0. Use Wate.plugin() instead.
fix
Replace new Wate({ plugins: [...] }) with wate = new Wate({...}); wate.plugin(plugin1); wate.plugin(plugin2);
affects: >=3.5.0
gotchaDefault session store is memory-based; sessions lost on restart.
fix
Configure a persistent session store (e.g., connect-sqlite3).
affects: all
breakingRemoved support for Node.js <4.6.1 in v3.0.0.
fix
Upgrade Node.js to >=4.6.1.
affects: >=3.0.0
deprecatedThe built-in file upload handler is deprecated in v3.10.0; will be removed in v4.
fix
Migrate to a dedicated file upload module (e.g., multer).
affects: >=3.10.0
Errors
Common errors & fixes
Error: Cannot find module 'sqlite3'
sqlite3 native module not installed or not rebuilt for current Node.js version.
fix
npm install sqlite3 --build-from-source
TypeError: Wate is not a constructor
Importing Wate incorrectly (e.g., using destructured require with wrong naming).
fix
Use const Wate = require('wate-engine').Wate;
Error: listen EADDRINUSE :::3000
Another process is already using port 3000.
fix
Change PORT environment variable or kill the conflicting process.
Upgrade
Version history
3.19.5latest on npm
Audit
Dependencies
expressrequiredcore HTTP framework required
sqlite3requiredSQLite database driver
ejsoptionaldefault template engine
Agent activity
21 hits · last 30 days
node
16
Meta
2
Amazon
1
OpenAI (training)
1
Resources
wate-engine — npm install wate-engine · libregistry