Registry / web-framework / liqd-framework

liqd-framework

JSON →
library1.7.13jsnpmunverified

Liqd Framework is a Node.js server framework that bundles a collection of liqd-* libraries for building web applications and APIs. Version 1.7.13 is the latest stable release, with infrequent updates. It provides a modular architecture with routing, middleware, and HTTP utilities. Compared to Express or Fastify, it is less widely adopted and has limited community support, but offers a cohesive set of tools from the same ecosystem. The framework emphasizes simplicity and minimal dependencies, making it suitable for small to medium projects.

npm install liqd-framework
INSTALL
IMPORT
SIG · LIQD-FRAMEWORK
L
liqd-framework
web-frameworkjavascriptv1.7.13
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.

Liqd
import Liqd from 'liqd-framework'
const Liqd = require('liqd-framework')
ESM-only; CommonJS require() is not supported.
Server
import { Server } from 'liqd-framework'
import Server from 'liqd-framework'
Named export, not default.
Router
import { Router } from 'liqd-framework'
import Router from 'liqd-framework'
Named export.

Creates a basic HTTP server with a single route and starts listening on port 3000.

import Liqd from 'liqd-framework'; const app = new Liqd(); app.get('/', (req, res) => { res.send('Hello, world!'); }); app.listen(3000, () => { console.log('Server running on http://localhost:3000'); });
Debug
Known issues
gotchaThe framework is ESM-only. Using require() will throw a runtime error.
fix
Use import syntax and ensure your project is configured for ESM (e.g., type: "module" in package.json).
affects: >=1.0
gotchaMiddleware and route handlers must return a Promise or use async/await; synchronous handlers may cause unexpected behavior.
fix
Always return a Promise or mark handler as async.
affects: >=1.0
deprecatedThe .use() method for mounting sub-applications is deprecated in favor of .mount().
fix
Replace .use(subApp) with .mount(subApp).
affects: >=1.5
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using require() to import an ESM-only package.
fix
Switch to import syntax and enable ESM in your project.
TypeError: router.get() is not a function
Router is imported incorrectly (using default import instead of named import).
fix
Use import { Router } from 'liqd-framework'.
Upgrade
Version history
1.7.13latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
liqd-framework — npm install liqd-framework · libregistry