Gathering detailed insights and metrics for @angular-architects/ddd
Gathering detailed insights and metrics for @angular-architects/ddd
Gathering detailed insights and metrics for @angular-architects/ddd
Gathering detailed insights and metrics for @angular-architects/ddd
Nx plugin for structuring a monorepo with domains and layers
npm install @angular-architects/ddd
Typescript
Module System
Min. Node Version
Node Version
NPM Version
36.8
Supply Chain
33
Quality
83
Maintenance
100
Vulnerability
91.7
License
TypeScript (94.92%)
JavaScript (2.85%)
HTML (1.74%)
SCSS (0.29%)
Shell (0.13%)
CSS (0.07%)
Total Downloads
802,541
Last Day
332
Last Week
4,612
Last Month
20,057
Last Year
229,252
332 Stars
47 Commits
56 Forks
6 Watchers
13 Branches
4 Contributors
Updated on Jun 30, 2025
Minified
Minified + Gzipped
Latest Version
20.0.0
Package Id
@angular-architects/ddd@20.0.0
Unpacked Size
125.37 kB
Size
25.67 kB
File Count
138
NPM Version
11.4.2
Node Version
20.19.2
Published on
Jun 30, 2025
Cumulative downloads
Total Downloads
Last Day
22.1%
332
Compared to previous day
Last Week
-6.4%
4,612
Compared to previous week
Last Month
-1.8%
20,057
Compared to previous month
Last Year
-1.7%
229,252
Compared to previous year
The package versions are aligned with the Angular version.
Breaking change in v18.1.0:
The naming of the Nx includePaths
has changed to only use one "/".
Until v18.0.1, the generated includePaths
were like this, which is illegal in npm:
1 "@org/booking/domain": ["libs/booking/domain/src/index.ts"], 2 "@org/booking/feature-test": ["libs/booking/feature-test/src/index.ts"]
Starting with v18.1.0, the generated includePaths
are using dashes instead:
1 "@org/booking-domain": ["libs/booking/domain/src/index.ts"], 2 "@org/booking-feature-test": ["libs/booking/feature-test/src/index.ts"]
This plugin installs some schematics which automate slicing your Nx workspace into domains and layers according to Nrwl's best practices and our ideas about client-side DDD with Angular:
The generated access restrictions prevent unwanted access between libraries respecting layers and domains:
--ngrx
switch, needs @ngrx/schematics)Add this plugin to a Nx workspace:
npm i @angular-architects/ddd
nx g @angular-architects/ddd:init
Instead, you can also use ng add, however, Nx currently emits a warning when using ng add:
nx add @angular-architects/ddd
Add domains and features manually:
nx g @angular-architects/ddd:domain booking --addApp
nx g @angular-architects/ddd:domain boarding --addApp
nx g @angular-architects/ddd:feature search --domain booking --entity flight
nx g @angular-architects/ddd:feature cancel --domain booking
nx g @angular-architects/ddd:feature manage --domain boarding
For NGRX support, just add the --ngrx
switch:
nx g @angular-architects/ddd:domain luggage --addApp --ngrx
nx g @angular-architects/ddd:feature checkin --domain luggage --entity luggage-list --ngrx
[...]
This example assumes that you have an app flight-app
in place.
These schematics also wire up the individual libs. To see the result, create a dependency graph:
npm run dep-graph
To see that the skeleton works end-to-end, call the generated feature component in your app.component.html
:
1<booking-search></booking-search>
You don't need any TypeScript or Angular imports. The plugin already took care about that. After running the example, you should see something like this:
All generators have a switch --standalone
to support Standalone Components:
nx g @angular-architects/ddd:domain booking --addApp --standalone
nx g @angular-architects/ddd:feature search --domain booking --entity flight --standalone
Don't mix Standalone Components and traditional ones within the same domain.
Since version 19, standalone defaults to true.
The included schematics generate a folder for each domain. This folder contains feature libs as well as a library with the domain logic:
The domain layer is subdivided into three parts:
BehaviorSubject
, feel free to add a library like NGRX underneath. As such a modifications changes nothing from the component's perspective, you can use facades to introduce NGRX later on demand.As the access restrictions defined with Nx use linting, you can check against them at the command line too. Hence, you might consider including this into your automated build process.
see https://github.com/angular-architects/ddd-demo
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/25 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
25 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More