{"ref":"content:using-cloud-sdk-for-ai-in-a-commonjs-cap-project","page":"/content/using-cloud-sdk-for-ai-in-a-commonjs-cap-project","json":"/content/using-cloud-sdk-for-ai-in-a-commonjs-cap-project.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"using-cloud-sdk-for-ai-in-a-commonjs-cap-project","title":"How to use Cloud SDK for AI in an existing CAP NodeJS Project in CommonJS","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/how-to-use-cloud-sdk-for-ai-in-an-existing-cap-nodejs-project-in-commonjs/ba-p/14169098","content_type":"blog","explains":[{"ref":"capability:llm-integration","applies_to":{"ecosystems":["cap"]}},"capability:typescript-patterns"],"summary":"A dependency that is ESM-only inside a project that is CommonJS, and the author's judgement that converting the project was too risky. What follows is the esbuild workaround, which is the honest answer when the ecosystem has moved and your codebase has not.","short":"Using ESM-only Cloud SDK for AI in a CommonJS CAP project with esbuild","author":"Jacky_Liu1","published":"2025-08-01","sources":[{"url":"https://community.sap.com/t5/technology-blog-posts-by-sap/how-to-use-cloud-sdk-for-ai-in-an-existing-cap-nodejs-project-in-commonjs/ba-p/14169098","title":"How to use Cloud SDK for AI in an existing CAP NodeJS Project in CommonJS — SAP Community","checked":"2026-09-08"}],"provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cap-tag"}],"first_seen":"2026-09-08"},"drafted_with_ai":true,"published_on":"source:sap-community","history":[{"date":"2026-10-17","field":"explains","from":null,"to":"applies_to on capability:llm-integration (cap)","reason":"Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md)."}]},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"fair","evidence":"published 14 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"poor","evidence":"@cap-js/ai 1.0.0, 2026-04"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":1472,"unit":"views"},{"value":2,"unit":"comments"},{"value":2,"unit":"likes"}]},"signals":{"views":1472,"likes":2,"comments":2,"metrics_at":"2026-10-25"},"series":null,"edges":{"authors":[]}}