ebade 0.2.2 → 0.4.0
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/CHANGELOG.md +5 -0
- package/README.md +49 -38
- package/ROADMAP.md +19 -14
- package/cli/scaffold.js +502 -186
- package/cli/simulate.js +102 -0
- package/cli/templates/feature-grid.tsx +80 -0
- package/cli/templates/footer.tsx +121 -0
- package/cli/templates/hero-section.tsx +34 -0
- package/cli/templates/login-form.tsx +124 -0
- package/cli/templates/navbar.tsx +53 -0
- package/cli/templates/pricing-table.tsx +140 -0
- package/cli/templates/signup-form.tsx +111 -0
- package/demo.tape +2 -2
- package/examples/saas-dashboard.ebade.yaml +2 -0
- package/netlify.toml +7 -0
- package/package.json +3 -1
- package/packages/mcp-server/README.md +3 -3
- package/packages/mcp-server/package.json +2 -2
- package/packages/mcp-server/src/index.ts +12 -16
- package/packages/mcp-server/src/tools/scaffold.ts +153 -404
- package/packages/vscode-extension/README.md +45 -0
- package/packages/vscode-extension/ebade-0.1.0.vsix +0 -0
- package/packages/vscode-extension/ebade-0.3.0.vsix +0 -0
- package/packages/vscode-extension/ebade-0.3.1.vsix +0 -0
- package/packages/vscode-extension/ebade-0.3.2.vsix +0 -0
- package/packages/vscode-extension/images/icon.png +0 -0
- package/packages/vscode-extension/language-configuration.json +24 -0
- package/packages/vscode-extension/package.json +54 -0
- package/packages/vscode-extension/snippets/ebade.json +86 -0
- package/packages/vscode-extension/syntaxes/ebade.tmLanguage.json +54 -0
- package/www/README.md +36 -0
- package/www/app/favicon.ico +0 -0
- package/www/app/globals.css +1256 -0
- package/www/app/layout.tsx +66 -0
- package/www/app/page.tsx +374 -0
- package/www/app/playground/page.tsx +627 -0
- package/www/components/ThreeCanvas.tsx +156 -0
- package/www/next.config.ts +19 -0
- package/www/package-lock.json +1779 -0
- package/www/package.json +27 -0
- package/www/postcss.config.mjs +7 -0
- package/www/public/logo.png +0 -0
- package/www/tsconfig.json +42 -0
- package/landing/index.html +0 -237
- package/landing/main.js +0 -147
- package/landing/style.css +0 -616
- /package/{demo.gif → assets/demo.gif} +0 -0
- /package/{demo.mp4 → assets/demo.mp4} +0 -0
- /package/{landing → www/public}/_headers +0 -0
- /package/{landing → www/public}/favicon.svg +0 -0
- /package/{landing → www/public}/og-image.png +0 -0
- /package/{landing → www/public}/og-readme.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
+
- **Playground UI** - Interactive "Battle Mode" simulation comparing Legacy AI vs ebade-powered Agent.
|
|
13
|
+
- **Shadcn/UI Integration** - All component templates now use Shadcn design patterns.
|
|
14
|
+
- **20+ Component Templates** - navbar, footer, pricing-table, login-form, signup-form, and more.
|
|
15
|
+
- **File-based Template System** - Dynamic template loading from `cli/templates/`.
|
|
16
|
+
- **Real-time Token Savings** - CLI now displays actual token savings during scaffold.
|
|
12
17
|
- MCP Server branding update to **ebade**.
|
|
13
18
|
- Green AI Metrics and Carbon Impact calculations.
|
|
14
19
|
- Turkish identity integration (Badik mascot 🐣 and "The Essence of Code" vision).
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ebade
|
|
1
|
+
# ebade
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
@@ -8,17 +8,18 @@
|
|
|
8
8
|
[](./packages/mcp-server)
|
|
9
9
|
[](./ROADMAP.md)
|
|
10
10
|
[](./docs/GREEN-AI.md)
|
|
11
|
+
[](./SYNTAX.md)
|
|
11
12
|
[](https://github.com/sponsors/hasankemaldemirci)
|
|
12
13
|
|
|
13
14
|
> **The first framework designed for AI agents, readable by humans.**
|
|
14
15
|
>
|
|
15
16
|
> `Code = f(ebade)`
|
|
16
17
|
>
|
|
17
|
-
>
|
|
18
|
+
> _Capture the essence of code. Less tokens. Less carbon. Same result._ 🌱
|
|
18
19
|
|
|
19
20
|
## 🎬 See it in action
|
|
20
21
|
|
|
21
|
-

|
|
22
|
+

|
|
22
23
|
|
|
23
24
|
```typescript
|
|
24
25
|
|
|
@@ -70,42 +71,51 @@ Then AI agents can use:
|
|
|
70
71
|
### For Humans (CLI)
|
|
71
72
|
|
|
72
73
|
```bash
|
|
73
|
-
# Scaffold a new project
|
|
74
|
-
npx ebade scaffold
|
|
74
|
+
# Scaffold a new project from an ebade file
|
|
75
|
+
npx ebade scaffold examples/saas-dashboard.ebade.yaml ./my-app
|
|
75
76
|
|
|
76
|
-
#
|
|
77
|
-
npx ebade
|
|
78
|
-
|
|
79
|
-
# Watch mode
|
|
80
|
-
npx ebade dev
|
|
77
|
+
# See all commands
|
|
78
|
+
npx ebade --help
|
|
81
79
|
```
|
|
82
80
|
|
|
83
81
|
---
|
|
84
82
|
|
|
83
|
+
## 🤖 Integrated AI Synergy
|
|
84
|
+
|
|
85
|
+
**ebade** projects automatically configure themselves for AI collaboration. When you scaffold a project, it generates specialized instruction files for major AI agents:
|
|
86
|
+
|
|
87
|
+
- **Cursor**: `.cursorrules`
|
|
88
|
+
- **Claude / Windsurf**: `.clauderules`
|
|
89
|
+
- **GitHub Copilot**: `.github/copilot-instructions.md`
|
|
90
|
+
|
|
91
|
+
These files teach the AI agents exactly how to work with ebade intents, ensuring they never "hallucinate" boilerplate and always stay token-efficient.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
85
95
|
## 📊 Benchmark: ~70% Fewer Tokens (Tested)
|
|
86
96
|
|
|
87
97
|
We measured token usage across common development tasks:
|
|
88
98
|
|
|
89
|
-
| Task
|
|
90
|
-
|
|
|
91
|
-
| Checkout Page
|
|
92
|
-
| Product Listing
|
|
93
|
-
| User Auth
|
|
94
|
-
| SaaS Dashboard ⭐ | 1,850 tokens | 245 tokens | **86.8%** | 7.6x
|
|
95
|
-
| **Average**
|
|
99
|
+
| Task | Next.js | ebade | Savings | Efficiency |
|
|
100
|
+
| :---------------- | :----------- | :--------- | :-------- | :--------- |
|
|
101
|
+
| Checkout Page | 258 tokens | 66 tokens | **74.4%** | 3.9x |
|
|
102
|
+
| Product Listing | 133 tokens | 63 tokens | **52.6%** | 2.1x |
|
|
103
|
+
| User Auth | 148 tokens | 56 tokens | **62.2%** | 2.6x |
|
|
104
|
+
| SaaS Dashboard ⭐ | 1,850 tokens | 245 tokens | **86.8%** | 7.6x |
|
|
105
|
+
| **Average** | | | **68.8%** | **4.1x** |
|
|
96
106
|
|
|
97
|
-
>
|
|
107
|
+
> _For full project scaffolding, savings can reach 75-92%._
|
|
98
108
|
|
|
99
109
|
### 💰 Cost Impact
|
|
100
110
|
|
|
101
111
|
At scale (1M AI coding sessions):
|
|
102
112
|
|
|
103
|
-
| Framework | Token Cost | Savings
|
|
104
|
-
|
|
|
105
|
-
| Next.js
|
|
113
|
+
| Framework | Token Cost | Savings |
|
|
114
|
+
| :-------- | :--------- | :--------- |
|
|
115
|
+
| Next.js | $5,390 | - |
|
|
106
116
|
| **ebade** | **$1,850** | **$3,540** |
|
|
107
117
|
|
|
108
|
-
>
|
|
118
|
+
> _The greenest code is the code you don't generate._
|
|
109
119
|
|
|
110
120
|
📄 [Full Benchmark Results](./benchmarks/RESULTS.md) | 🌱 [Green AI Manifesto](./docs/GREEN-AI.md)
|
|
111
121
|
|
|
@@ -139,12 +149,12 @@ Human describes → AI writes intent → ebade compiles → Working code
|
|
|
139
149
|
|
|
140
150
|
## 📦 Packages
|
|
141
151
|
|
|
142
|
-
| Package
|
|
143
|
-
|
|
|
144
|
-
| **`ebade`**
|
|
145
|
-
| [@ebade/mcp-server](./packages/mcp-server) | MCP Server for AI agents | ✅ Alpha
|
|
146
|
-
| `@ebade/compiler`
|
|
147
|
-
| `@ebade/vscode`
|
|
152
|
+
| Package | Description | Status |
|
|
153
|
+
| :----------------------------------------- | :----------------------- | :---------- |
|
|
154
|
+
| **`ebade`** | Core Framework & CLI | ✅ Alpha |
|
|
155
|
+
| [@ebade/mcp-server](./packages/mcp-server) | MCP Server for AI agents | ✅ Alpha |
|
|
156
|
+
| `@ebade/compiler` | Advanced Intent Compiler | 🚧 Planning |
|
|
157
|
+
| `@ebade/vscode` | VS Code extension | 📋 Planned |
|
|
148
158
|
|
|
149
159
|
---
|
|
150
160
|
|
|
@@ -204,15 +214,16 @@ pages:
|
|
|
204
214
|
- hero-section
|
|
205
215
|
- featured-products
|
|
206
216
|
- testimonials
|
|
207
|
-
|
|
217
|
+
|
|
208
218
|
- path: /products
|
|
209
219
|
intent: product-listing
|
|
210
220
|
components:
|
|
211
221
|
- search-bar
|
|
212
222
|
- product-grid
|
|
213
223
|
- pagination
|
|
214
|
-
|
|
224
|
+
|
|
215
225
|
- path: /checkout
|
|
226
|
+
|
|
216
227
|
intent: checkout-flow
|
|
217
228
|
auth: required
|
|
218
229
|
components:
|
|
@@ -226,12 +237,12 @@ pages:
|
|
|
226
237
|
|
|
227
238
|
## 🎭 The Paradigm Shift
|
|
228
239
|
|
|
229
|
-
| Era
|
|
230
|
-
|
|
|
231
|
-
| 2000s
|
|
232
|
-
| 2013
|
|
233
|
-
| 2024
|
|
234
|
-
| **2026** | **ebade** | **"What if Code = f(intent)?"**
|
|
240
|
+
| Era | Paradigm | Core Question |
|
|
241
|
+
| :------- | :-------- | :------------------------------- |
|
|
242
|
+
| 2000s | jQuery | "How do I manipulate DOM?" |
|
|
243
|
+
| 2013 | React | "What if UI = f(state)?" |
|
|
244
|
+
| 2024 | AI Coding | "AI writes code, but for humans" |
|
|
245
|
+
| **2026** | **ebade** | **"What if Code = f(intent)?"** |
|
|
235
246
|
|
|
236
247
|
---
|
|
237
248
|
|
|
@@ -277,5 +288,5 @@ MIT © ebade Contributors — Made with ❤️ in Türkiye 🇹🇷
|
|
|
277
288
|
|
|
278
289
|
**Built for AI. Readable by humans. Revolutionary by design.**
|
|
279
290
|
|
|
280
|
-
|
|
281
|
-
|
|
291
|
+
_TypeScript made JavaScript better for humans._
|
|
292
|
+
_ebade makes frameworks better for AI._
|
package/ROADMAP.md
CHANGED
|
@@ -14,12 +14,12 @@ It's more efficient, deterministic, and KIND TO EARTH. 🌱
|
|
|
14
14
|
|
|
15
15
|
## Phase 1: Foundation (Week 1-2) ✅ COMPLETE
|
|
16
16
|
|
|
17
|
-
### 1.1 MCP Server ✅
|
|
17
|
+
### 1.1 MCP Server ✅ (v0.3.1 Synced)
|
|
18
18
|
|
|
19
|
-
Make ebade usable by AI agents RIGHT NOW.
|
|
19
|
+
Make ebade usable by AI agents RIGHT NOW. Direct integration with Claude Desktop & Cursor.
|
|
20
20
|
|
|
21
21
|
- [x] Create MCP server package
|
|
22
|
-
- [x] `ebade_scaffold` tool -
|
|
22
|
+
- [x] `ebade_scaffold` tool - Updated to v0.3.1 templates (SaaS, E-commerce, Landing)
|
|
23
23
|
- [x] `ebade_validate` tool - validate ebade file
|
|
24
24
|
- [x] `ebade_compile` tool - compile single ebade to code
|
|
25
25
|
- [x] `ebade_generate` tool - infer ebade from natural language
|
|
@@ -44,25 +44,30 @@ Replace string templates with actual AST-based compilation.
|
|
|
44
44
|
- [ ] Code generator (AST → React/Next.js)
|
|
45
45
|
- [ ] Support for multiple framework targets
|
|
46
46
|
|
|
47
|
-
### 1.5 CLI
|
|
47
|
+
### 1.5 CLI & Developer Experience ✅ (v0.3.1)
|
|
48
48
|
|
|
49
|
-
- [
|
|
50
|
-
- [
|
|
49
|
+
- [x] `ebade init` - interactive project setup
|
|
50
|
+
- [x] `ebade dev` - watch mode with local agent sync
|
|
51
|
+
- [x] Agent Synergy - Auto-gen rules for Cursor/Claude/Copilot
|
|
52
|
+
- [x] **TDD by Default** - Automatic Vitest config & .test.tsx generation 🧪
|
|
53
|
+
- [x] **Tailwind CSS Native** - Built-in styling engine integration
|
|
51
54
|
|
|
52
55
|
---
|
|
53
56
|
|
|
54
|
-
## Phase 2: Developer Experience (
|
|
57
|
+
## Phase 2: Developer Experience ✅ (v0.3.1 Core / v0.3.2 Extension)
|
|
55
58
|
|
|
56
|
-
### 2.1 VS Code Extension
|
|
59
|
+
### 2.1 VS Code Extension ✅
|
|
57
60
|
|
|
58
|
-
- [
|
|
59
|
-
- [
|
|
61
|
+
- [x] Syntax highlighting for ebade decorators
|
|
62
|
+
- [x] Snippets for project/page/api/data
|
|
60
63
|
- [ ] Inline token usage counter (Carbon counter! 🌱)
|
|
61
64
|
|
|
62
65
|
### 2.2 Playground Website
|
|
63
66
|
|
|
67
|
+
- [x] **Battle Mode Simulation** - Legacy AI vs ebade comparison
|
|
68
|
+
- [x] Real-time token counter and speed metrics
|
|
69
|
+
- [x] Output comparison (code quality)
|
|
64
70
|
- [ ] Live editor (Monaco)
|
|
65
|
-
- [ ] Real-time compilation preview
|
|
66
71
|
- [ ] Share ebade via URL
|
|
67
72
|
|
|
68
73
|
### 2.3 Documentation Site
|
|
@@ -122,10 +127,10 @@ Replace string templates with actual AST-based compilation.
|
|
|
122
127
|
|
|
123
128
|
## Current Status
|
|
124
129
|
|
|
125
|
-
|
|
130
|
+
### Phase 1 - Foundation ✅ (v0.3.1 - The Testing Era)
|
|
126
131
|
|
|
127
|
-
The MCP server is live. CLI has premium UX
|
|
132
|
+
The MCP server is live and fully synced. CLI has premium UX and now generates **production-ready code** with Tailwind CSS and automatic Unit Testing (Vitest). AI agents can now use ebade to scaffold full Next.js apps with **~80% fewer tokens** while maintaining high code quality through TDD.
|
|
128
133
|
|
|
129
134
|
---
|
|
130
135
|
|
|
131
|
-
|
|
136
|
+
Last updated: 2026-01-09 (Playground & Shadcn Update)
|