PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

openui5-model-json-crud

An OpenUI5 library that extends JSONModel to send CRUD requests over HTTP with fetch, so its calls return Promises; the README documents the read method only.

A plain JSONModel holds data and leaves the request to the application. CRUDModel (openui5/model/json/crud/CRUDModel) is constructed with a service URL and sends its requests with fetch rather than jQuery.ajax, so its calls return Promises. The one method the README shows is read(servicePath, modelPath): the service path is appended to the service URL, and the model path names the property the response is written into; with no model path the local model is left alone and the response is only returned. The README names create, update and delete in its description and documents no call for them. It is installed from npm and registered in the host app's manifest under sap.ui5/dependencies/libs and sap.ui5/resourceRoots.

Facts

Latestv1.0.0ReleasedLast pushLicenceMIT

Where it sits

Lives in
Provides
Data bindingUI5Data bindingcapabilityKeeping a control and a model in step in both directions, including the formatting, type conversion and validation that sit between the two.
Add-on to
@openui5/sap.ui.core@openui5/sap.ui.coreartifactThe OpenUI5 core: the module loader, the MVC runtime, data binding, routing, theming and the test stack, which is everything a UI5 app does before a single community package is added.
Requires
@openui5/sap.ui.core@openui5/sap.ui.coreartifactThe framework whose JSONModel it extends: the host app declares the library in its manifest and loads the model with sap.ui.require.

Who is behind it

Mauricio LaufferMauricio LaufferPersonMaintains this
In the atlas: maintains 16, contributes to 41, wrote 4
@mauriciolauffer
maintainer

What it declares

Every artifact

Type
Package
Origin
Independently maintained

As a package

Where it runs
Inside its host
Distributed through
npm

Connections2

Install

npm add openui5-model-json-crud

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from mauriciolauffer/openui5-model-json-crud under MIT, read
mauriciolauffer/openui5-model-json-crud/README.mdOn GitHub

openui5-model-json-crud

npm test

An OpenUI5 library which extends JSONModel to support CRUD (Create, Read, Update, Delete) operations. It uses fetch (not jQuery.ajax) to send requests to the server and populates a JSON Model with the responses. As aforementioned, OpenUI5 CRUD JSON Model uses fetch hence it returns Promises.

Demo

You can check out a live demo here:

https://mauriciolauffer.github.io/openui5-model-json-crud/demo/webapp/index.html

Demo Screenshot

Project Structure

  • demo - Library's live demo
  • dist - Distribution folder which contains the library ready to use
  • src - Development folder
  • test - Testing framework for the library

Getting started

Installation

Install openui5-model-json-crud as an npm module

$ npm install openui5-model-json-crud
Configure manifest.json

Add the library to sap.ui5/dependencies/libs and set its path in sap.ui5/resourceRoots in your manifest.json file, as follows:

{
  "sap.ui5": {
    "dependencies": {
      "libs": {
        "openui5.model.json.crud": {}
      }
    },
    "resourceRoots": {
      "openui5.model.json.crud": "./FOLDER_WHERE_YOU_PLACED_THE_LIBRARY/openui5/model/json/crud/"
    }
  }
}
How to use

Import openui5-model-json-crud to your UI5 controller using sap.ui.define or sap.ui.require:

sap.ui.require([
  'openui5/model/json/crud/CRUDModel'
], function(CRUDModel) {
  const serviceUrl = 'https://api.jikan.moe/v3/'; //backend root URL
  const crudModel = new CRUDModel(serviceUrl);
  this.getView().setModel(crudModel, 'CRUDModel');
  //'search/anime?q=DBZ' is the path to the service to be called, it'll be concatenated to serviceUrl
  //'/DBZ' is the path to the property into the model, in case you want to updated the model with the response;
  // empty value does not update the local model, it only returns the response
  crudModel.read('search/anime?q=DBZ', '/DBZ')
    .then(function() {
      console.log('Data selected from API');
    })
    .catch(function(err) {
      console.error(err.toString());
    });
});

Author

Mauricio Lauffer

License

This project is licensed under the MIT License - see the LICENSE file for details

MIT, read

History

Latest

v1.0.0

Breaking 1, Features 1

Notes
⚠ BREAKING CHANGES
  • Use new sap.ui.core.Lib from v1.120.0
Features
  • Use new sap.ui.core.Lib from v1.120.0 (8251352)
1downloads per week, npm
Weekly downloads for openui5-model-json-crud26 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 1.20 Apr – 26 Apr: 3827 Apr – 3 May: 224 May – 10 May: 1911 May – 17 May: 5018 May – 24 May: 525 May – 31 May: 101 Jun – 7 Jun: 498 Jun – 14 Jun: 1915 Jun – 21 Jun: 2522 Jun – 28 Jun: 2529 Jun – 5 Jul: 76 Jul – 12 Jul: 1513 Jul – 19 Jul: 020 Jul – 26 Jul: 1927 Jul – 2 Aug: 83 Aug – 9 Aug: 6810 Aug – 16 Aug: 2817 Aug – 23 Aug: 1224 Aug – 30 Aug: 2131 Aug – 6 Sept: 227 Sept – 13 Sept: 2114 Sept – 20 Sept: 2421 Sept – 27 Sept: 728 Sept – 4 Oct: 55 Oct – 11 Oct: 1812 Oct – 18 Oct: 1
Data binding
  1. ui5-antaresSAPUI5 library generating OData V2 metadata-based dialogs and pagesfrom UI5
  2. openui5-model-odata-v2-odatapromiseOpenUI5 OData V2 model extension with Promisesfrom UI5
  3. openui5-validatorOpenUI5 library validating view fields against JSON schemafrom UI5
  4. @openui5/sap.ui.coreFramework core: module loader, MVC runtime, binding, routing, themingfrom UI5

Details

Sources4
Added by handdiscovered herechecked
npm registry, openui5-model-json-crudversion, releases, installschecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv1.0.0
first release
releases and cadence15, ~114d median
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainui5, ui-and-frontend-bridge
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:mauriciolauffer-openui5-model-json-crud
JSON
/artifacts/mauriciolauffer-openui5-model-json-crud.json
MCP
Connecting an agent