{"ref":"artifact:root3287-cap-segw","page":"/artifacts/root3287-cap-segw","json":"/artifacts/root3287-cap-segw.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"root3287-cap-segw","name":"@root3287/cap-segw","artifact_type":"build-tool","ecosystem":"cap","serves_ecosystems":["abap"],"domain":"protocols-and-apis","origin_ring":"independent","description":{"one_line":"A CAP build tool that compiles a CDS service into the ABAP Model Provider and Data Provider classes a SAP Gateway SEGW project expects, for OData V4 by default or V2.","short":"Compiler from a CDS service to SEGW model and data provider classes","what_it_solves":"Writes the ABAP half of a Gateway service from the model already maintained in CDS: `cds compile srv -s all --to segw` produces Model Provider Class and Data Provider Class code, OData V4 by default and V2 with `--odata-version 2`, and `cds build --for segw` puts the same step in the build pipeline. Entity sets, associations and annotations come across from the CAP definitions, and a set of `@segw.*` annotations carries what SEGW has and CDS does not: sortable, filterable, pageable, addressable, an ABAP DDIC type or field name, an HTTP method for a V2 action. [@cap-js-community/odata-v2-adapter](artifact:cap-js-community-odata-v2-adapter) answers the same older clients by translating inside the CAP runtime; this leaves the runtime in the ABAP system and generates the classes that system runs.","when_not_to_use":"The generated files are copied or deployed into the ABAP system by hand, the fourth step of its own usage list, so nothing keeps an activated service in step with the model it was generated from. Its peer dependency is `@sap/cds` ^9.8, so it does not install into a project on an earlier CAP release."},"links":{"npm":"https://www.npmjs.com/package/@root3287/cap-segw","repo":"https://github.com/Root3287/cap-segw"},"identity":{"author":"Timothy Gibbons","license":"Apache-2.0"},"source_available":true,"framework_contexts":[{"framework":"cap","role":"plugin","source":{"url":"https://github.com/Root3287/cap-segw","title":"Root3287/cap-segw — README","checked":"2026-09-18","quote":"This is a custom SAP CAP Plugin that generates ABAP code for SEGW Model Provider Class (MPC) and Data Provider Class (DPC) definitions."}}],"compat":{"runtimes":["build-time"],"cds_range":"^9.8"},"type_properties":{"distribution":{"value":["npm"],"sources":[{"url":"https://github.com/Root3287/cap-segw","title":"@root3287/cap-segw — README","checked":"2026-10-18","quote":"npm install @root3287/cap-segw"}]}},"provides":[{"capability":"capability:odata","what_it_does":"Turns a CDS service into an OData service served by SAP Gateway rather than by the CAP runtime: the MPC and DPC classes are generated from the model, V4 by default and V2 on a flag, for a system whose clients call the Gateway.","sources":[{"url":"https://github.com/Root3287/cap-segw","title":"Root3287/cap-segw — README","checked":"2026-09-18","quote":"It provides a bridge between modern CAP services and legacy SAP Gateway (OData V2) and (OData V4) environments, enabling interoperability with existing ABAP systems."},{"url":"https://github.com/Root3287/cap-segw","title":"Root3287/cap-segw — README, usage","checked":"2026-09-18","quote":"By default this will generate an ODataV4 classes. To switch to ODataV2 run with `--odata-version 2` parameter."}]}],"provenance":{"discovered_via":[{"source":"source:discover"},{"source":"source:npm"}],"first_seen":"2026-09-18"},"drafted_with_ai":true,"maintainers":["actor:root3287"],"contributors":["actor:root3287"]},"effective_normative_relations":[{"instrument":"instrument:sap-developer-license-3-2-cap","relation":"use-constrained-by","sections":["1","2","3"],"applies_when":"A cds-plugin is used with SAP CAP materials, or an artifact is explicitly identified as a CAP plugin or application.","note":"This is inherited applicability, not a licence verdict about the artifact itself. Review the agreement for the actual materials and use; an explicit artifact relationship to another revision takes precedence.","scope":{"kind":"artifact"},"sources":[{"url":"https://cap.cloud.sap/resources/license/developer-license-3_2_CAP.txt","title":"SAP Developer License Agreement 3.2 CAP","checked":"2026-09-16","quote":"documentation, plug-ins, templates, scripts and sample code, libraries, software development kits"}],"inherited_from":"cap-plugins-and-applications","relevant_capabilities":["agent-systems-access","async-processing","data-import-export","database-connectors","deployment","destinations","llm-integration","mcp-servers","plugin-authoring","replication","retrieval-augmented-generation","rfc-connectivity"]}],"readings":{"liveness":[{"label":"Maintenance","tier":"good","evidence":"1 month since release"},{"label":"Continuity","tier":"fair","evidence":"2 contributors, 1 publisher"},{"label":"Repository","tier":"good","evidence":"pushed 2026-10, not archived"}],"compatibility":[{"label":"Declared for","tier":"good","evidence":"^10.1.1 — includes cds 10"},{"label":"Survived majors","tier":"good","evidence":"released before and after @sap/cds 10"},{"label":"Maintainer's CI","tier":"fair","evidence":"configured outside GitHub Actions"}],"practice":[{"label":"Tests","tier":"good","evidence":"41 test files, npm test"},{"label":"Docs","tier":"fair","evidence":"README 4 KB"},{"label":"Changelog","tier":"good","evidence":"CHANGELOG in the repo"}],"reach":[{"value":7,"unit":"installs/week"},{"value":0,"unit":"watching"}]},"signals":{"crawled_at":"2026-10-26","latest_version":"1.1.6","majors":{"1":{"version":"1.0.0","date":"2025-12-07"}},"license":"Apache-2.0","first_release":"2025-12-05","last_release":"2026-10-09","releases":13,"cadence_days":4,"maintainers":1,"repository":"git+https://github.com/Root3287/cap-segw.git","repository_directory":null,"peer_cds":"^10.1.1","test_script":true,"types":true,"downloads_weekly":7,"stars":0,"forks":0,"open_issues":1,"archived":false,"pushed_at":"2026-10-09","license_spdx":"Apache-2.0","org_owned":false,"default_branch":"master","contributors":2,"tree_truncated":false,"test_files":41,"workflows":1,"other_ci":true,"readme_bytes":3965,"docs_files":0,"changelog":true,"license_file":true,"dts_files":0,"first_commit":"2025-10-24","last_commit":"2026-10-09","commits":224,"readme_path":"README.md","readme_sha":"8844cf956de957d0738e896d761881010989f84b","months_since_release":1,"dormant":false,"dependencies":0,"node_engine":null,"downloads_monthly":193,"created_at":"2025-10-26T02:19:10Z","open_prs":1,"repo_read":"2026-10-26"},"release_notes":{"license":"Apache-2.0","quotable":true,"prereleases":6,"source":{"kind":"repo","path":"CHANGELOG.md","ref":"master","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md"},"format":"keep-a-changelog","releases":[{"version":"1.1.6","date":"2026-10-09","date_source":"registry","heading":"[1.1.6]","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#116","sections":[{"kind":"fix","heading":"Fix","items":1}],"hash":"819cc7faed0dc3db"},{"version":"1.1.5","heading":"[1.1.5]","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#115","sections":[{"kind":"change","heading":"Changed","items":1}],"hash":"8530fe44f72b1fdd"},{"version":"1.1.4","date":"2026-06-08","date_source":"registry","heading":"[1.1.4]","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#114","sections":[{"kind":"feature","heading":"Feature","items":1}],"hash":"d6231f9dfcea2666"},{"version":"1.1.3","date":"2026-05-19","date_source":"heading","heading":"[1.1.3] - 2026-05-19","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#113---2026-05-19","sections":[{"kind":"fix","heading":"Fix","items":1}],"hash":"f6c2a4dd4f7dd231"},{"version":"1.1.2","date":"2026-05-19","date_source":"heading","heading":"[1.1.2] - 2026-05-19","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#112---2026-05-19","sections":[{"kind":"fix","heading":"Fix","items":1},{"kind":"change","heading":"Changed","items":2}],"hash":"04c23f33b8f8b62c"},{"version":"1.1.1","date":"2026-05-15","date_source":"heading","heading":"[1.1.1] - 2026-05-15","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#111---2026-05-15","sections":[{"kind":"fix","heading":"Fix","items":1}],"hash":"b1201d06d7d3dd8d"},{"version":"1.1.0","date":"2026-04-01","date_source":"heading","heading":"[1.1.0] - 2026-04-01","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#110---2026-04-01","sections":[{"kind":"feature","heading":"Feature","items":1},{"kind":"fix","heading":"Fix","items":1}],"hash":"0b086e3d18ab272b"},{"version":"1.0.0","date":"2025-12-06","date_source":"heading","heading":"[1.0.0] - 2025-12-06","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#100---2025-12-06","sections":[],"hash":"e3b0c44298fc1c14"},{"version":"1.0.0-rc.6","date":"2025-12-06","date_source":"heading","heading":"[1.0.0-rc.6] - 2025-12-06","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#100-rc6---2025-12-06","sections":[{"kind":"fix","heading":"Fixed","items":1}],"hash":"bf2fd44cc3bc34df"},{"version":"1.0.0-rc.5","date":"2025-12-06","date_source":"heading","heading":"[1.0.0-rc.5] - 2025-12-06","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#100-rc5---2025-12-06","sections":[{"kind":"fix","heading":"Fixed","items":1}],"hash":"bf2fd44cc3bc34df"},{"version":"1.0.0-rc.4","date":"2025-12-06","date_source":"heading","heading":"[1.0.0-rc.4] - 2025-12-06","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#100-rc4---2025-12-06","sections":[{"kind":"fix","heading":"Fixed","items":1}],"hash":"bf2fd44cc3bc34df"},{"version":"1.0.0-rc.3","date":"2025-12-05","date_source":"heading","heading":"[1.0.0-rc.3] - 2025-12-05","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#100-rc3---2025-12-05","sections":[{"kind":"fix","heading":"Fixed","items":1}],"hash":"bf2fd44cc3bc34df"},{"version":"1.0.0-rc.2","date":"2025-12-05","date_source":"heading","heading":"[1.0.0-rc.2] - 2025-12-05","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#100-rc2---2025-12-05","sections":[{"kind":"fix","heading":"Fixed","items":1}],"hash":"bf2fd44cc3bc34df"},{"version":"1.0.0-rc.1","date":"2025-12-05","date_source":"heading","heading":"[1.0.0-rc.1] - 2025-12-05","url":"https://github.com/Root3287/cap-segw/blob/master/CHANGELOG.md#100-rc1---2025-12-05","sections":[{"kind":"feature","heading":"Added","items":4},{"kind":"change","heading":"Changed","items":2},{"kind":"other","heading":"Build/CI","items":2}],"hash":"b9097264c976e788"}],"versions":[{"version":"1.1.6","date":"2026-10-09"},{"version":"1.1.4","date":"2026-06-08"},{"version":"1.1.3","date":"2026-05-19"},{"version":"1.1.2","date":"2026-05-19"},{"version":"1.1.1","date":"2026-05-15"},{"version":"1.1.0","date":"2026-04-01"},{"version":"1.0.0","date":"2025-12-07"}],"crawled_at":"2026-10-25"},"edges":{"maintainers":[{"ref":"actor:root3287","name":"Timothy Gibbons","json":"/actors/root3287.json"}],"contributors":[{"ref":"actor:root3287","name":"Timothy Gibbons","json":"/actors/root3287.json"}],"explained_by":[],"alternative_to_this":[],"needed_by":[],"available_via":[],"parts":[],"add_ons":[],"answered_through_parts":[]}}