How we could potentially have nestjs as runtime for SAP CAP
A proof-of-concept that swaps @sap/cds@sap/cdsThe CAP Node.js runtime, which compiles the CDS model, serves the services declared in it, answers generic requests before any handler runs, and loads every cds-plugin.sap official, cap's ApplicationService and ODataAdapter dispatch for NestJS controllers, providers and interceptors, built by the author to learn NestJS rather than to ship a runtime. It works through CAP's run-dispatch-handle loop and AsyncLocalStorage-based transaction boundaries in detail before mapping them onto NestJS dependency injection and interceptors — one community answer to the controller-service-repository layering question core TypeScript support leaves open. The author's own conclusion is that the result reimplements CAP Java in Node.js, and they do not plan to take it further.
Where it sits
Who is behind it
Before you read it
ApplicabilityVersion driftcds 8, line ended
The piece names the version it was written against, and that line has since been crossed by a breaking one. The steps may need translating; nothing here says which.
Properties
About this work
Details
Graph
Source
History
- Entered the atlasDiscovered via SAP Community.
For your agent
- Ref
content:how-we-could-potentially-have-nestjs-as-runtime-for-sap-cap- JSON
- /content/how-we-could-potentially-have-nestjs-as-runtime-for-sap-cap.json
- MCP
- Connecting an agent