Converts LoopBack model definitions into JSON Schema objects for use with form generation libraries like Angular Schema Form. Version 0.0.8 is the latest and was last updated in 2017; the package is unmaintained and has no recent releases. It provides both a CLI and an API to load all models from a LoopBack app or a single model. Unlike alternatives that convert JSON Schema to LoopBack models (e.g., loopback-jsonschema), this package does the reverse direction. It requires a running LoopBack application to introspect models and has no dependencies other than a LoopBack app instance.
npm install loopback-json-schema-builderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use loadAllModels and loadModel with a LoopBack app to generate JSON schemas.
Migrate to a maintained alternative or write custom schema generation using LoopBack 4's built-in JSON Schema support.
Ensure the model is loaded in the LoopBack app before calling loadModel, or handle undefined return.
Run the command from the loopback project directory: node node_modules/.bin/loopback-json-schema-builder ./server/server.js
Run `npm install loopback-json-schema-builder` in your project root.
Use const schemaBuilder = require('loopback-json-schema-builder'); then schemaBuilder.loadAllModels(app);No dependency data recorded yet.