Registry / web-framework / flexbiz-server

flexbiz-server

JSON →
library12.6.8jsnpmunverified

Flexbiz Server is the backend service for the Flexbiz business application, providing API endpoints for business operations. The current stable version is 12.6.8. It is released on an irregular cadence with breaking changes between major versions. Key differentiators: built for the Flexbiz ecosystem, tightly coupled with the Flexbiz client, and not designed as a general-purpose server framework. Underlying dependencies include Express.js for HTTP handling and Sequelize for ORM, though these may vary by version.

npm install flexbiz-server
INSTALL
IMPORT
SIG · FLEXBIZ-SERVER
F
flexbiz-server
web-frameworkjavascriptv12.6.8
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

FlexbizServer
import { FlexbizServer } from 'flexbiz-server'
const FlexbizServer = require('flexbiz-server')
ESM-only since v10; CommonJS require() fails with ERR_REQUIRE_ESM.
createApp
import { createApp } from 'flexbiz-server'
import createApp from 'flexbiz-server'
Named export, not default export. Do not use default import.
Config
import type { Config } from 'flexbiz-server'
import { Config } from 'flexbiz-server'
TypeScript type export; use type import for compilation only.
initializeDatabase
import { initializeDatabase } from 'flexbiz-server/db'
import { initializeDatabase } from 'flexbiz-server'
Subpath export for database utilities; not re-exported from main entry.

Shows how to import and instantiate FlexbizServer with configuration, including database credentials from environment variables.

import { FlexbizServer, Config } from 'flexbiz-server'; const config: Config = { port: parseInt(process.env.PORT ?? '3000'), db: { host: process.env.DB_HOST ?? 'localhost', port: parseInt(process.env.DB_PORT ?? '5432'), database: process.env.DB_NAME ?? 'flexbiz', username: process.env.DB_USER ?? 'admin', password: process.env.DB_PASSWORD ?? '', }, }; const server = new FlexbizServer(config); await server.start(); console.log(`Server running on port ${config.port}`);
Debug
Known issues
breakingESM-only starting from v10. CommonJS require() will throw ERR_REQUIRE_ESM.
fix
Switch to ESM by using import syntax, or downgrade to v9.x if CJS is required.
affects: >=10.0.0
deprecatedThe method `server.listen()` is deprecated; use `server.start()` instead.
fix
Replace `server.listen()` with `await server.start()`.
affects: >=11.0.0
breakingConfiguration format changed: `db.host` is now required, `db.hostname` removed.
fix
Update config to use `host` property instead of `hostname`. Ensure `host` is provided.
affects: >=12.0.0
gotchaDefault export removed in v10; only named exports available.
fix
Use named imports like `import { FlexbizServer } from 'flexbiz-server'`.
affects: >=10.0.0
gotchaDatabase initialization must be called explicitly before starting the server; no auto-connect.
fix
Call `initializeDatabase(config.db)` before `new FlexbizServer(config)`.
affects: >=12.0.0
Errors
Common errors & fixes
ERR_MODULE_NOT_FOUND: Cannot find module 'flexbiz-server'
Forgetting to install the package or incorrect import path.
fix
Run `npm install flexbiz-server` and ensure the package is in node_modules.
TypeError: flexbiz_server_1.FlexbizServer is not a constructor
Using a default import when FlexbizServer is a named export.
fix
Replace `import FlexbizServer from 'flexbiz-server'` with `import { FlexbizServer } from 'flexbiz-server'`.
Error: listen is not a function
Calling deprecated `server.listen()` on versions >=11.0.0.
fix
Use `await server.start()` instead of `server.listen()`.
SequelizeConnectionError: getaddrinfo ENOTFOUND undefined
Database host not provided or undefined in config.
fix
Ensure `config.db.host` is set to a valid hostname or IP address.
Upgrade
Version history
12.6.8latest on npm
Audit
Dependencies
expressrequiredHTTP server framework used for routing and middleware
sequelizerequiredORM for database operations, typically PostgreSQL or MySQL
Agent activity
10 hits · last 30 days
node
9
Resources
flexbiz-server — npm install flexbiz-server · libregistry