Registry / web-framework / isomor-server

isomor-server

JSON →
library3.0.4jsnpmunverified

Server-side library for isomor, a framework that abstracts frontend-backend communication layers to allow direct function calls from UI code. Version 3.0.4 is current; release cadence is irregular. Key differentiators: automatic layer generation via Babel transpilation, eliminates REST/GraphQL overhead, strong TypeScript consistency by colocating frontend and backend code. Targets Node >=11.

npm install isomor-server
INSTALL
IMPORT
SIG · ISOMOR-SERVER
I
isomor-server
web-frameworkjavascriptv3.0.4
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.

IsomorServer
✓ import { IsomorServer } from 'isomor-server'
✗ const { IsomorServer } = require('isomor-server')
ESM-only package; CJS require will not work.
default import
✓ import isomorServer from 'isomor-server'
✗ const isomorServer = require('isomor-server')
Default export is named export; prefer named import for clarity.
type imports
✓ import type { IsomorServerOptions } from 'isomor-server'
✗ import { IsomorServerOptions } from 'isomor-server' (if used at runtime)
Types are exported; use type-only imports to avoid runtime inclusion.

Creates and starts an IsomorServer instance on port 4000.

import { IsomorServer } from 'isomor-server'; const server = new IsomorServer({ port: 4000, // other options }); server.start();
Debug
Known issues
breakingVersion 3.0.0 dropped support for Node < 11.
fix
Upgrade Node to >= 11.
affects: >=3.0.0 <3.1.0
deprecatedThe `config` option in constructor is deprecated in 3.0.x; use `options` instead.
fix
Replace `new IsomorServer({ config: {...} })` with `new IsomorServer({...})`.
affects: >=3.0.0
gotchaRequires isomor-transformer to be installed as a peer dependency (automatically with isomor).
fix
Install isomor-transformer: npm install isomor-transformer
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'isomor-server'
Package not installed or not installed in the correct directory.
fix
Run `npm install isomor-server` in your project root.
TypeError: IsomorServer is not a constructor
Using CommonJS require() instead of ESM import.
fix
Change `const { IsomorServer } = require('isomor-server')` to `import { IsomorServer } from 'isomor-server'`.
Property 'start' does not exist on type 'typeof IsomorServer'
Forgetting to instantiate the class, using it as a static method.
fix
Create an instance: `const server = new IsomorServer({}); server.start();`
Upgrade
Version history
3.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
isomor-server — npm install isomor-server · libregistry