@adaas/a-concept 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -78
- package/benchmarks/feature-chaining.bench.ts +465 -0
- package/benchmarks/feature-lifecycle.bench.ts +245 -0
- package/benchmarks/feature-optimize.bench.ts +205 -0
- package/benchmarks/feature-profiling.bench.ts +415 -0
- package/benchmarks/feature-template.bench.ts +211 -0
- package/benchmarks/helpers.ts +97 -0
- package/benchmarks/run-all.ts +58 -0
- package/benchmarks/scope-resolve.bench.ts +245 -0
- package/benchmarks/step-manager.bench.ts +146 -0
- package/dist/browser/index.d.mts +72 -3
- package/dist/browser/index.mjs +2 -2
- package/dist/browser/index.mjs.map +1 -1
- package/dist/node/index.cjs +244 -87
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.mts +72 -3
- package/dist/node/index.d.ts +72 -3
- package/dist/node/index.mjs +244 -87
- package/dist/node/index.mjs.map +1 -1
- package/package.json +11 -1
- package/src/lib/A-Context/A-Context.class.ts +155 -60
- package/src/lib/A-Entity/A-Entity.class.ts +3 -3
- package/src/lib/A-Feature/A-Feature.class.ts +46 -41
- package/src/lib/A-Feature/A-Feature.types.ts +6 -10
- package/src/lib/A-Meta/A-Meta.class.ts +18 -3
- package/src/lib/A-Scope/A-Scope.class.ts +98 -5
- package/tests/A-Feature.test.ts +101 -0
- package/tsconfig.json +1 -0
package/README.md
CHANGED
|
@@ -1,99 +1,85 @@
|
|
|
1
1
|
<img align="left" style="margin-right:40px; margin-bottom:80px;" width="200" height="200" src="https://raw.githubusercontent.com/ADAAS-org/adaas-a-concept/main/docs/a-concept-logo.png" alt="A-Concept Logo">
|
|
2
2
|
|
|
3
|
-
# A-Concept
|
|
3
|
+
# A-Concept
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**A paradigm shift for software development in the age of AI and [Industry 5.0](https://research-and-innovation.ec.europa.eu/research-area/industrial-research-and-innovation/industry-50_en).**
|
|
6
6
|
|
|
7
7
|

|
|
8
8
|

|
|
9
9
|

|
|
10
|
-
|
|
11
10
|

|
|
12
11
|

|
|
13
12
|

|
|
14
13
|

|
|
15
14
|
|
|
15
|
+
<br clear="left"/>
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
##
|
|
20
|
-
|
|
21
|
-
1. [Overview](#-overview)
|
|
22
|
-
2. [Why Choose A-Concept?](#-why-choose-a-concept)
|
|
23
|
-
3. [Core Principles](#-core-principles)
|
|
24
|
-
- [Technology](#-technology)
|
|
25
|
-
- [Collaboration](#-collaboration)
|
|
26
|
-
- [Bridging Architecture & Code](#-bridging-architecture--code)
|
|
27
|
-
4. [Getting Started](#-getting-started)
|
|
28
|
-
5. [Challenges in Modern Development](#-challenges-in-modern-development)
|
|
29
|
-
- [AI Hallucinations and Incorrect Code Outputs](#-ai-hallucinations-and-incorrect-code-outputs)
|
|
30
|
-
- [The Gap Between Software Design and Implementation](#-the-gap-between-software-design-and-implementation)
|
|
31
|
-
- [Scaling and Product Evolution](#-scaling-and-product-evolution)
|
|
32
|
-
- [Inappropriate Role Combinations and Team Structures](#-inappropriate-role-combinations-and-team-structures)
|
|
33
|
-
- [Outdated SDLC Methodologies](#-outdated-sdlc-methodologies)
|
|
34
|
-
6. [About the Team](#-about-the-team)
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
19
|
+
## Table of Contents
|
|
38
20
|
|
|
39
|
-
|
|
21
|
+
1. [Overview](#overview)
|
|
22
|
+
2. [Core Principles](#core-principles)
|
|
23
|
+
3. [Getting Started](#getting-started)
|
|
24
|
+
4. [Challenges We Solve](#challenges-we-solve)
|
|
25
|
+
5. [Performance](#performance)
|
|
26
|
+
6. [About the Team](#about-the-team)
|
|
27
|
+
7. [License](#license)
|
|
40
28
|
|
|
41
|
-
|
|
29
|
+
---
|
|
42
30
|
|
|
43
|
-
|
|
31
|
+
## Overview
|
|
44
32
|
|
|
45
|
-
|
|
33
|
+
A-Concept is a modern framework built by the ADAAS R&D team to redefine how software is designed and developed in the Industry 5.0 era. It is three things in one:
|
|
46
34
|
|
|
47
|
-
|
|
35
|
+
**The A-Concept Paradigm** — an architectural framework designed to permanently close the gap between software design and actual implementation. Architecture and code are treated as a single artifact, not two separate concerns that drift apart over time.
|
|
48
36
|
|
|
49
|
-
|
|
37
|
+
**The A-Concept Framework** — a software development toolkit that brings the paradigm to life with tools, APIs, and integrations that work across any platform or domain.
|
|
50
38
|
|
|
51
|
-
|
|
39
|
+
**The A-Concept Ecosystem** — a suite of AI-prepared components, libraries, and modules designed to ensure AI-generated code is not only functional but architecturally sound.
|
|
52
40
|
|
|
53
|
-
|
|
41
|
+
---
|
|
54
42
|
|
|
55
|
-
|
|
56
|
-
- Offers tools, not rules.
|
|
57
|
-
- Encourages flexibility to build, combine, and innovate across platforms.
|
|
58
|
-
- Provides AI-ready modules for faster and more accurate development.
|
|
43
|
+
## Core Principles
|
|
59
44
|
|
|
60
|
-
###
|
|
45
|
+
### Tools, Not Rules
|
|
61
46
|
|
|
62
|
-
|
|
63
|
-
- Simplifies processes for solo entrepreneurs and lean enterprises.
|
|
64
|
-
- Eliminates unnecessary rituals, focusing instead on results and innovation.
|
|
65
|
-
- Enhances developer productivity by automating repetitive tasks, enabling teams to focus on optimized, high-quality code.
|
|
47
|
+
A-Concept does not dictate how you build. It offers composable primitives that give you flexibility to innovate across platforms, while AI-ready modules accelerate development without sacrificing quality.
|
|
66
48
|
|
|
67
|
-
###
|
|
49
|
+
### Results Over Ritual
|
|
68
50
|
|
|
69
|
-
|
|
70
|
-
- Extending the C4 model to include design capabilities.
|
|
71
|
-
- Ensuring architecture and code stay in sync with AI-assisted tools.
|
|
72
|
-
- Empowering developers to become architects with intuitive and self-documented workflows.
|
|
51
|
+
SCRUM was designed for a different era. A-Concept takes a leaner approach — eliminating unnecessary process overhead, simplifying collaboration for solo engineers and lean teams alike, and focusing effort on code that ships rather than ceremonies that don't.
|
|
73
52
|
|
|
53
|
+
### Architecture and Code as One
|
|
74
54
|
|
|
75
|
-
|
|
55
|
+
The persistent disconnect between high-level design and day-to-day implementation is one of the industry's oldest problems. A-Concept solves it by merging the two into a single self-documenting workflow. Architecture stays synchronised with code automatically — giving developers, architects, and stakeholders a single source of truth at all times.
|
|
76
56
|
|
|
57
|
+
---
|
|
77
58
|
|
|
59
|
+
## Getting Started
|
|
78
60
|
|
|
79
|
-
|
|
61
|
+
Install the package:
|
|
80
62
|
|
|
81
63
|
```bash
|
|
82
64
|
cd /your/project/location
|
|
83
|
-
npm
|
|
65
|
+
npm install @adaas/a-concept
|
|
84
66
|
```
|
|
85
|
-
Then export
|
|
86
67
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
68
|
+
Create a concept:
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import { A_Concept } from '@adaas/a-concept';
|
|
72
|
+
|
|
73
|
+
const concept = new A_Concept({
|
|
90
74
|
name: 'my-concept'
|
|
91
75
|
});
|
|
92
76
|
```
|
|
93
77
|
|
|
94
|
-
and
|
|
78
|
+
Extend it with fragments and containers:
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
import { A_Concept, A_Config, A_ConfigLoader } from '@adaas/a-concept';
|
|
95
82
|
|
|
96
|
-
```ts
|
|
97
83
|
(async () => {
|
|
98
84
|
const concept = new A_Concept({
|
|
99
85
|
name: 'test-simple',
|
|
@@ -118,55 +104,107 @@ and extend
|
|
|
118
104
|
})();
|
|
119
105
|
```
|
|
120
106
|
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Challenges We Solve
|
|
110
|
+
|
|
111
|
+
### AI Hallucinations and Incorrect Code Outputs
|
|
112
|
+
|
|
113
|
+
AI code generation tools produce plausible-looking but architecturally flawed output. Without boundaries, AI contributions drift from the intended design.
|
|
114
|
+
|
|
115
|
+
A-Concept provides self-documenting primitives and well-defined structural contracts that constrain AI to operate within the correct architectural context — making generated code both functional and sound.
|
|
121
116
|
|
|
117
|
+
### The Gap Between Design and Implementation
|
|
122
118
|
|
|
123
|
-
|
|
119
|
+
Documentation becomes outdated the moment it is written. Architecture diagrams and the actual codebase diverge within weeks, leaving teams navigating an increasingly unreliable map.
|
|
124
120
|
|
|
125
|
-
|
|
121
|
+
A-Concept merges design and implementation into a single process. The framework's self-documenting capabilities keep architecture permanently synchronised with code, providing clarity for developers and stakeholders without any manual upkeep.
|
|
126
122
|
|
|
123
|
+
### Scaling and Long-term Evolution
|
|
127
124
|
|
|
125
|
+
As products grow, technical debt compounds. Most frameworks provide no structural answer to this — teams are left to manage accumulating complexity by hand.
|
|
128
126
|
|
|
129
|
-
|
|
127
|
+
A-Concept is built for long-term evolution. Its modular design allows products to adapt, pivot, and scale without compromising the integrity of the underlying architecture.
|
|
130
128
|
|
|
131
|
-
###
|
|
129
|
+
### Role Fragmentation and Burnout
|
|
132
130
|
|
|
133
|
-
|
|
131
|
+
Developers are routinely expected to operate across every level of abstraction simultaneously — from low-level performance work to high-level product decisions. The result is burnout and consistently suboptimal output at every level.
|
|
134
132
|
|
|
135
|
-
|
|
136
|
-
A-Concept creates an ecosystem where AI operates within clearly defined boundaries, leveraging self-documenting primitives and an extended C4 model. This ensures that AI’s contributions align with the intended design and functionality.
|
|
133
|
+
A-Concept separates concerns clearly: specialists optimise performance, product-focused engineers drive outcomes, and AI handles routine tasks. Each role operates in its natural domain.
|
|
137
134
|
|
|
138
|
-
###
|
|
135
|
+
### Outdated Development Methodologies
|
|
139
136
|
|
|
140
|
-
|
|
137
|
+
SCRUM and Waterfall were created for a world without AI, remote-first teams, or continuous deployment. They are ritual-heavy, slow to adapt, and poorly matched to modern development realities.
|
|
141
138
|
|
|
142
|
-
|
|
143
|
-
A-Concept merges design and implementation into a single, seamless process. The framework’s self-documenting capabilities mean that architecture is always synchronized with the code, offering clarity for both developers and stakeholders.
|
|
139
|
+
A-Concept promotes a streamlined approach — leaner processes, AI-assisted execution, and a clear focus on shipping results rather than attending standups.
|
|
144
140
|
|
|
145
|
-
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Performance
|
|
144
|
+
|
|
145
|
+
Benchmarks measure the core `A_Feature` primitive that underlies every component operation in the engine. All results are from a Node.js environment on standard developer hardware.
|
|
146
|
+
|
|
147
|
+
### Construction
|
|
148
|
+
|
|
149
|
+
| Benchmark | ops/sec | mean (ms) | ± % | samples |
|
|
150
|
+
|-----------|--------:|----------:|----:|--------:|
|
|
151
|
+
| new A_Feature (from component) | 65,413 | 0.0153 | ±11.86% | 47 |
|
|
152
|
+
| new A_Feature (from template, 1 step) | 34,465 | 0.0290 | ±19.72% | 32 |
|
|
153
|
+
| new A_Feature (from template, 5 steps) | 18,255 | 0.0548 | ±22.42% | 61 |
|
|
154
|
+
|
|
155
|
+
Construction from a component reference is the fastest path at ~0.015ms per instance. Template-based construction adds parsing overhead — roughly 2× for a single step and 3.6× for five steps.
|
|
156
|
+
|
|
157
|
+
### Sync Execution
|
|
158
|
+
|
|
159
|
+
| Benchmark | ops/sec | mean (ms) | ± % | samples |
|
|
160
|
+
|-----------|--------:|----------:|----:|--------:|
|
|
161
|
+
| call feature (1 sync step) | 53,673 | 0.0186 | ±4.55% | 84 |
|
|
162
|
+
| call feature (3 sync extensions) | 58,663 | 0.0170 | ±2.52% | 89 |
|
|
163
|
+
| call feature (5 sync extensions) | 35,000 | 0.0286 | ±5.29% | 84 |
|
|
146
164
|
|
|
147
|
-
|
|
165
|
+
Sync execution is stable up to 3 extensions with virtually no overhead over a single step. At 5 extensions the cost rises to ~0.029ms — still well within a single 16.6ms frame budget.
|
|
148
166
|
|
|
149
|
-
|
|
150
|
-
A-Concept introduces an ecosystem built with scalability in mind. Its modular design enables projects to adapt, evolve, and scale without compromising the integrity of the underlying architecture.
|
|
167
|
+
### Full Lifecycle (construct + execute)
|
|
151
168
|
|
|
152
|
-
|
|
169
|
+
| Benchmark | ops/sec | mean (ms) | ± % | samples |
|
|
170
|
+
|-----------|--------:|----------:|----:|--------:|
|
|
171
|
+
| construct + process (1 step) | 50,865 | 0.0197 | ±11.32% | 71 |
|
|
172
|
+
| construct + process (3 extensions) | 56,259 | 0.0178 | ±1.53% | 90 |
|
|
153
173
|
|
|
154
|
-
The
|
|
174
|
+
The full construct-and-execute lifecycle costs ~0.02ms for both 1 and 3 extensions. The lower variance on the 3-extension run suggests the engine reaches a more stable execution path with multiple extensions.
|
|
155
175
|
|
|
156
|
-
|
|
157
|
-
A-Concept reimagines collaboration by enabling developers to focus on their strengths. The framework’s tools allow low-level specialists to optimize performance while product-focused professionals drive business outcomes. AI handles routine tasks, freeing teams to innovate.
|
|
176
|
+
### Inheritance Impact
|
|
158
177
|
|
|
159
|
-
|
|
178
|
+
| Benchmark | ops/sec | mean (ms) | ± % | samples |
|
|
179
|
+
|-----------|--------:|----------:|----:|--------:|
|
|
180
|
+
| construct + process (base class) | 89,174 | 0.0112 | ±3.17% | 84 |
|
|
181
|
+
| construct + process (1-level child) | 65,307 | 0.0153 | ±1.57% | 91 |
|
|
182
|
+
| construct + process (2-level grandchild) | 61,470 | 0.0163 | ±2.57% | 88 |
|
|
160
183
|
|
|
161
|
-
|
|
184
|
+
Each inheritance level adds ~0.004ms. This cost is fixed and does not compound with further depth, making inheritance chains predictable.
|
|
162
185
|
|
|
163
|
-
|
|
164
|
-
A-Concept promotes a streamlined approach. By leveraging AI and rethinking team structures, we eliminate unnecessary rituals and focus on achieving results. This makes the development process leaner, faster, and more aligned with business goals.
|
|
186
|
+
### Summary
|
|
165
187
|
|
|
188
|
+
| Operation | mean (ms) | ops per 60fps frame |
|
|
189
|
+
|-----------|----------:|--------------------:|
|
|
190
|
+
| Fastest construction | 0.011ms | ~1,500 |
|
|
191
|
+
| Template construction (5 steps) | 0.055ms | ~300 |
|
|
192
|
+
| Full lifecycle (3 extensions) | 0.018ms | ~900 |
|
|
193
|
+
| 2-level inheritance | 0.016ms | ~1,000 |
|
|
194
|
+
|
|
195
|
+
All operations complete well within a single 16.6ms frame budget.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## About the Team
|
|
200
|
+
|
|
201
|
+
The [ADAAS R&D](https://adaas.org) team is made up of engineers and architects who have lived through decades of evolving software practices. We built A-Concept out of genuine frustration with tools and methodologies that stopped serving developers — and a conviction that the industry deserves something better.
|
|
202
|
+
|
|
203
|
+
---
|
|
166
204
|
|
|
167
205
|
## License
|
|
168
206
|
|
|
169
207
|
This project is licensed under the [Apache License 2.0](LICENSE).
|
|
170
208
|
|
|
171
|
-
© 2025 ADAAS YAZILIM LİMİTED
|
|
172
|
-
All original code and concepts are the intellectual property of ADAAS YAZILIM LİMİTED
|
|
209
|
+
© 2025 ADAAS YAZILIM LİMİTED ŞİRKETİ. All rights reserved.
|
|
210
|
+
All original code and concepts are the intellectual property of ADAAS YAZILIM LİMİTED ŞİRKETİ.
|