oneie 2.0.1 → 2.0.2
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 +61 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# ONE
|
|
1
|
+
# ONE - Bring Your Ideas to Life
|
|
2
2
|
|
|
3
3
|
**Version:** 2.0.0
|
|
4
4
|
**Package:** `npx oneie`
|
|
5
5
|
|
|
6
|
-
Transform your ideas into
|
|
6
|
+
Transform your ideas into high performance websites using the **ONE Ontology** and **AI agents** working inside Claude Code.
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -15,8 +15,6 @@ Transform your ideas into production-ready websites using the **ONE 6-dimension
|
|
|
15
15
|
- **CASCADE Workflow** - 8 AI agents that turn ideas into working code
|
|
16
16
|
- **Ontology-Driven Development** - Build once, scale infinitely
|
|
17
17
|
|
|
18
|
-
**Think of it as:** WordPress + React + AI Agents + Universal Data Model = ONE
|
|
19
|
-
|
|
20
18
|
---
|
|
21
19
|
|
|
22
20
|
## The Magic: From Idea to Website in 3 Commands
|
|
@@ -86,6 +84,7 @@ These specialized agents build your website:
|
|
|
86
84
|
### 3. 👤 Creates Your Profile (Ontology-Mapped)
|
|
87
85
|
|
|
88
86
|
**User Profile:** `one/people/{name}.md`
|
|
87
|
+
|
|
89
88
|
```typescript
|
|
90
89
|
{
|
|
91
90
|
type: "creator",
|
|
@@ -96,6 +95,7 @@ These specialized agents build your website:
|
|
|
96
95
|
```
|
|
97
96
|
|
|
98
97
|
**Organization Profile:** `one/organisation/{slug}.md`
|
|
98
|
+
|
|
99
99
|
```typescript
|
|
100
100
|
{
|
|
101
101
|
type: "organization",
|
|
@@ -106,6 +106,7 @@ These specialized agents build your website:
|
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
**Connections:**
|
|
109
|
+
|
|
109
110
|
```typescript
|
|
110
111
|
// You own your organization (100%)
|
|
111
112
|
you → owns → your_org
|
|
@@ -117,6 +118,7 @@ you → member_of → your_org (role: org_owner)
|
|
|
117
118
|
### 4. 🌐 (Optional) Clones Frontend Starter
|
|
118
119
|
|
|
119
120
|
Pre-configured Astro + React website:
|
|
121
|
+
|
|
120
122
|
- Astro 5 (SSR at the edge)
|
|
121
123
|
- React 19 (islands architecture)
|
|
122
124
|
- shadcn/ui (50+ components)
|
|
@@ -127,6 +129,7 @@ Pre-configured Astro + React website:
|
|
|
127
129
|
### 5. 📖 (Optional) Clones Documentation for AI
|
|
128
130
|
|
|
129
131
|
Third-party docs for offline AI access:
|
|
132
|
+
|
|
130
133
|
- Astro documentation
|
|
131
134
|
- Convex documentation
|
|
132
135
|
- Effect.ts documentation
|
|
@@ -140,6 +143,7 @@ Third-party docs for offline AI access:
|
|
|
140
143
|
ONE models reality through 6 universal dimensions:
|
|
141
144
|
|
|
142
145
|
### 1. Organizations (Dimension 1)
|
|
146
|
+
|
|
143
147
|
**Multi-tenant isolation** - Who owns what at the organization level
|
|
144
148
|
|
|
145
149
|
```typescript
|
|
@@ -153,6 +157,7 @@ ONE models reality through 6 universal dimensions:
|
|
|
153
157
|
```
|
|
154
158
|
|
|
155
159
|
### 2. People (Dimension 2)
|
|
160
|
+
|
|
156
161
|
**Authorization & governance** - Who can do what
|
|
157
162
|
|
|
158
163
|
```typescript
|
|
@@ -166,6 +171,7 @@ ONE models reality through 6 universal dimensions:
|
|
|
166
171
|
```
|
|
167
172
|
|
|
168
173
|
### 3. Things (Dimension 3)
|
|
174
|
+
|
|
169
175
|
**All entities** - 66+ types: users, courses, lessons, tokens, AI clones, etc.
|
|
170
176
|
|
|
171
177
|
```typescript
|
|
@@ -178,6 +184,7 @@ ONE models reality through 6 universal dimensions:
|
|
|
178
184
|
```
|
|
179
185
|
|
|
180
186
|
### 4. Connections (Dimension 4)
|
|
187
|
+
|
|
181
188
|
**All relationships** - 25+ types: owns, enrolled_in, part_of, etc.
|
|
182
189
|
|
|
183
190
|
```typescript
|
|
@@ -189,6 +196,7 @@ student → holds_tokens → course_token
|
|
|
189
196
|
```
|
|
190
197
|
|
|
191
198
|
### 5. Events (Dimension 5)
|
|
199
|
+
|
|
192
200
|
**All actions** - 67+ types: complete audit trail of everything
|
|
193
201
|
|
|
194
202
|
```typescript
|
|
@@ -201,6 +209,7 @@ student → holds_tokens → course_token
|
|
|
201
209
|
```
|
|
202
210
|
|
|
203
211
|
### 6. Knowledge (Dimension 6)
|
|
212
|
+
|
|
204
213
|
**Embeddings & AI** - Vector search, RAG, semantic understanding
|
|
205
214
|
|
|
206
215
|
```typescript
|
|
@@ -228,6 +237,7 @@ You: "Creators sell courses, students enroll and track progress"
|
|
|
228
237
|
|
|
229
238
|
**Level 2: PLANS**
|
|
230
239
|
Director creates feature collection:
|
|
240
|
+
|
|
231
241
|
- 2-1: Course CRUD
|
|
232
242
|
- 2-2: Lesson management
|
|
233
243
|
- 2-3: Enrollment system
|
|
@@ -273,11 +283,13 @@ Total: 20 seconds (vs 115s with traditional methods)
|
|
|
273
283
|
### Philosophy: Ontology-Driven Development
|
|
274
284
|
|
|
275
285
|
Traditional approach:
|
|
286
|
+
|
|
276
287
|
```
|
|
277
288
|
You write code → It works for this specific use case → Limited flexibility
|
|
278
289
|
```
|
|
279
290
|
|
|
280
291
|
ONE approach:
|
|
292
|
+
|
|
281
293
|
```
|
|
282
294
|
You describe reality → Ontology maps it → AI generates code → Works for ANY use case
|
|
283
295
|
```
|
|
@@ -285,6 +297,7 @@ You describe reality → Ontology maps it → AI generates code → Works for AN
|
|
|
285
297
|
### Examples of What You Can Build
|
|
286
298
|
|
|
287
299
|
**1. Course Platform**
|
|
300
|
+
|
|
288
301
|
```
|
|
289
302
|
Things: courses, lessons, students, instructors
|
|
290
303
|
Connections: enrolled_in, part_of, taught_by
|
|
@@ -292,6 +305,7 @@ Events: lesson_completed, progress_updated
|
|
|
292
305
|
```
|
|
293
306
|
|
|
294
307
|
**2. Creator Economy**
|
|
308
|
+
|
|
295
309
|
```
|
|
296
310
|
Things: creators, fans, tokens, content, ai_clones
|
|
297
311
|
Connections: owns, holds_tokens, following
|
|
@@ -299,6 +313,7 @@ Events: tokens_purchased, content_created, chat_interaction
|
|
|
299
313
|
```
|
|
300
314
|
|
|
301
315
|
**3. Marketplace**
|
|
316
|
+
|
|
302
317
|
```
|
|
303
318
|
Things: sellers, buyers, products, orders
|
|
304
319
|
Connections: owns, purchased, listed_on
|
|
@@ -306,6 +321,7 @@ Events: order_created, payment_completed, item_shipped
|
|
|
306
321
|
```
|
|
307
322
|
|
|
308
323
|
**4. Social Network**
|
|
324
|
+
|
|
309
325
|
```
|
|
310
326
|
Things: users, posts, comments, groups
|
|
311
327
|
Connections: following, member_of, commented_on
|
|
@@ -313,6 +329,7 @@ Events: post_created, user_followed, comment_added
|
|
|
313
329
|
```
|
|
314
330
|
|
|
315
331
|
**5. SaaS Platform**
|
|
332
|
+
|
|
316
333
|
```
|
|
317
334
|
Things: organizations, users, subscriptions, features
|
|
318
335
|
Connections: member_of, subscribed_to, has_access
|
|
@@ -340,6 +357,7 @@ npx oneie
|
|
|
340
357
|
```
|
|
341
358
|
|
|
342
359
|
**What it does:**
|
|
360
|
+
|
|
343
361
|
- Copies 100+ ontology files to your project
|
|
344
362
|
- Syncs 8 AI agent definitions
|
|
345
363
|
- Creates your user & organization profiles
|
|
@@ -355,6 +373,7 @@ claude
|
|
|
355
373
|
```
|
|
356
374
|
|
|
357
375
|
**What it does:**
|
|
376
|
+
|
|
358
377
|
- Starts Claude Code in your project
|
|
359
378
|
- Loads ontology context from `one/`
|
|
360
379
|
- Loads 8 agent definitions from `.claude/agents/`
|
|
@@ -369,6 +388,7 @@ claude
|
|
|
369
388
|
```
|
|
370
389
|
|
|
371
390
|
**What it does:**
|
|
391
|
+
|
|
372
392
|
- Opens CASCADE interface
|
|
373
393
|
- You describe what you want to build
|
|
374
394
|
- 8 AI agents execute in parallel
|
|
@@ -411,6 +431,7 @@ your-project/
|
|
|
411
431
|
## Why ONE is Different
|
|
412
432
|
|
|
413
433
|
### Traditional Development
|
|
434
|
+
|
|
414
435
|
```
|
|
415
436
|
1. Learn frameworks (weeks)
|
|
416
437
|
2. Set up environment (hours)
|
|
@@ -424,6 +445,7 @@ your-project/
|
|
|
424
445
|
**Total: 2-3 months per feature**
|
|
425
446
|
|
|
426
447
|
### ONE Development
|
|
448
|
+
|
|
427
449
|
```
|
|
428
450
|
1. npx oneie (5 minutes)
|
|
429
451
|
2. claude (instant)
|
|
@@ -439,6 +461,7 @@ your-project/
|
|
|
439
461
|
**ONE:** All apps share the same 6-dimension ontology
|
|
440
462
|
|
|
441
463
|
This means:
|
|
464
|
+
|
|
442
465
|
- ✅ Build once, works everywhere
|
|
443
466
|
- ✅ No boilerplate (AI generates from ontology)
|
|
444
467
|
- ✅ No framework lock-in (ontology is universal)
|
|
@@ -460,6 +483,7 @@ npx oneie
|
|
|
460
483
|
```
|
|
461
484
|
|
|
462
485
|
**What gets created:**
|
|
486
|
+
|
|
463
487
|
```
|
|
464
488
|
✓ Copied 112 ontology files
|
|
465
489
|
✓ Synced 8 agent definitions
|
|
@@ -475,6 +499,7 @@ claude
|
|
|
475
499
|
```
|
|
476
500
|
|
|
477
501
|
Claude loads:
|
|
502
|
+
|
|
478
503
|
- ✅ 100+ ontology files from `one/`
|
|
479
504
|
- ✅ 8 agent definitions from `.claude/agents/`
|
|
480
505
|
- ✅ Your profile from `one/people/`
|
|
@@ -489,6 +514,7 @@ Claude loads:
|
|
|
489
514
|
You see the CASCADE interface. Choose **"1. Start New Idea"**
|
|
490
515
|
|
|
491
516
|
You type:
|
|
517
|
+
|
|
492
518
|
```
|
|
493
519
|
Creators sell courses with lessons.
|
|
494
520
|
Students enroll and track progress.
|
|
@@ -498,6 +524,7 @@ Creators earn tokens when students complete lessons.
|
|
|
498
524
|
### Step 4: CASCADE Executes
|
|
499
525
|
|
|
500
526
|
**Engineering Director validates:**
|
|
527
|
+
|
|
501
528
|
```typescript
|
|
502
529
|
// Identifies things
|
|
503
530
|
courses (type: "course")
|
|
@@ -522,6 +549,7 @@ progress_updated
|
|
|
522
549
|
**Specialists implement in parallel:**
|
|
523
550
|
|
|
524
551
|
**Backend Specialist (8 seconds):**
|
|
552
|
+
|
|
525
553
|
```typescript
|
|
526
554
|
// Generates services/courses/CourseService.ts
|
|
527
555
|
// Generates services/lessons/LessonService.ts
|
|
@@ -531,6 +559,7 @@ progress_updated
|
|
|
531
559
|
```
|
|
532
560
|
|
|
533
561
|
**Frontend Specialist (8 seconds):**
|
|
562
|
+
|
|
534
563
|
```typescript
|
|
535
564
|
// Generates src/pages/courses/index.astro
|
|
536
565
|
// Generates src/pages/courses/[id].astro
|
|
@@ -540,6 +569,7 @@ progress_updated
|
|
|
540
569
|
```
|
|
541
570
|
|
|
542
571
|
**Integration Specialist (8 seconds):**
|
|
572
|
+
|
|
543
573
|
```typescript
|
|
544
574
|
// Generates enrollment workflow
|
|
545
575
|
// Generates progress tracking logic
|
|
@@ -548,6 +578,7 @@ progress_updated
|
|
|
548
578
|
```
|
|
549
579
|
|
|
550
580
|
**Quality Agent (3 seconds):**
|
|
581
|
+
|
|
551
582
|
```typescript
|
|
552
583
|
// Defines user flows:
|
|
553
584
|
// 1. Creator creates course with lessons
|
|
@@ -560,6 +591,7 @@ progress_updated
|
|
|
560
591
|
```
|
|
561
592
|
|
|
562
593
|
**Design Agent (2 seconds):**
|
|
594
|
+
|
|
563
595
|
```typescript
|
|
564
596
|
// Creates wireframes for:
|
|
565
597
|
// - Course creation form
|
|
@@ -570,6 +602,7 @@ progress_updated
|
|
|
570
602
|
```
|
|
571
603
|
|
|
572
604
|
**Problem Solver (monitors):**
|
|
605
|
+
|
|
573
606
|
```typescript
|
|
574
607
|
// Watches for test failures
|
|
575
608
|
// If any test fails:
|
|
@@ -580,6 +613,7 @@ progress_updated
|
|
|
580
613
|
```
|
|
581
614
|
|
|
582
615
|
**Documenter (2 seconds):**
|
|
616
|
+
|
|
583
617
|
```typescript
|
|
584
618
|
// Writes feature documentation
|
|
585
619
|
// Writes API documentation
|
|
@@ -592,6 +626,7 @@ progress_updated
|
|
|
592
626
|
**Total time: 20 seconds**
|
|
593
627
|
|
|
594
628
|
What you get:
|
|
629
|
+
|
|
595
630
|
```
|
|
596
631
|
frontend/
|
|
597
632
|
├── src/
|
|
@@ -640,6 +675,7 @@ bun run dev
|
|
|
640
675
|
```
|
|
641
676
|
|
|
642
677
|
Open `http://localhost:4321` and you have:
|
|
678
|
+
|
|
643
679
|
- ✅ Course creation working
|
|
644
680
|
- ✅ Lesson management working
|
|
645
681
|
- ✅ Enrollment system working
|
|
@@ -665,6 +701,7 @@ Open `http://localhost:4321` and you have:
|
|
|
665
701
|
### Does this work offline?
|
|
666
702
|
|
|
667
703
|
**Yes.** After `npx oneie`:
|
|
704
|
+
|
|
668
705
|
- All ontology files are local (`one/`)
|
|
669
706
|
- All agent definitions are local (`.claude/agents/`)
|
|
670
707
|
- All third-party docs are local (`docs/`)
|
|
@@ -673,6 +710,7 @@ Open `http://localhost:4321` and you have:
|
|
|
673
710
|
### Is my data stored in the cloud?
|
|
674
711
|
|
|
675
712
|
**No.** Everything runs locally:
|
|
713
|
+
|
|
676
714
|
- Ontology is on your machine
|
|
677
715
|
- Code is generated on your machine
|
|
678
716
|
- Database is your choice (Convex, Supabase, etc.)
|
|
@@ -681,6 +719,7 @@ Open `http://localhost:4321` and you have:
|
|
|
681
719
|
### Can I use a different backend?
|
|
682
720
|
|
|
683
721
|
**Yes!** The ontology is backend-agnostic:
|
|
722
|
+
|
|
684
723
|
- Default: Convex (real-time, serverless)
|
|
685
724
|
- Alternatives: Supabase, WordPress, Notion, custom APIs
|
|
686
725
|
- Frontend works with any backend that implements the 6-dimension interface
|
|
@@ -688,12 +727,14 @@ Open `http://localhost:4321` and you have:
|
|
|
688
727
|
### How much does this cost?
|
|
689
728
|
|
|
690
729
|
**FREE:**
|
|
730
|
+
|
|
691
731
|
- `npx oneie` - Free forever
|
|
692
732
|
- Claude Code - Free with Claude account
|
|
693
733
|
- Astro + React - Open source, free
|
|
694
734
|
- shadcn/ui - Open source, free
|
|
695
735
|
|
|
696
736
|
**Pay for:**
|
|
737
|
+
|
|
697
738
|
- Hosting (Cloudflare Pages has free tier)
|
|
698
739
|
- Database (Convex has free tier)
|
|
699
740
|
- AI inference (if you add AI features)
|
|
@@ -701,6 +742,7 @@ Open `http://localhost:4321` and you have:
|
|
|
701
742
|
### Can I build commercial products?
|
|
702
743
|
|
|
703
744
|
**Yes!** MIT license:
|
|
745
|
+
|
|
704
746
|
- Build and sell commercial products
|
|
705
747
|
- No revenue sharing
|
|
706
748
|
- No attribution required (but appreciated!)
|
|
@@ -709,12 +751,14 @@ Open `http://localhost:4321` and you have:
|
|
|
709
751
|
### How is this different from WordPress?
|
|
710
752
|
|
|
711
753
|
**WordPress:**
|
|
754
|
+
|
|
712
755
|
- PHP, jQuery, MySQL stack
|
|
713
756
|
- Plugin-based (limited flexibility)
|
|
714
757
|
- Themes for design only
|
|
715
758
|
- Manual coding for custom features
|
|
716
759
|
|
|
717
760
|
**ONE:**
|
|
761
|
+
|
|
718
762
|
- Modern stack (Astro, React, TypeScript)
|
|
719
763
|
- Ontology-based (infinite flexibility)
|
|
720
764
|
- AI generates everything
|
|
@@ -723,12 +767,14 @@ Open `http://localhost:4321` and you have:
|
|
|
723
767
|
### How is this different from no-code tools?
|
|
724
768
|
|
|
725
769
|
**No-code tools (Webflow, Bubble, etc.):**
|
|
770
|
+
|
|
726
771
|
- Locked into their platform
|
|
727
772
|
- Limited by their UI builder
|
|
728
773
|
- Export limitations
|
|
729
774
|
- Vendor lock-in
|
|
730
775
|
|
|
731
776
|
**ONE:**
|
|
777
|
+
|
|
732
778
|
- Full code ownership
|
|
733
779
|
- Unlimited customization
|
|
734
780
|
- Deploy anywhere
|
|
@@ -738,6 +784,7 @@ Open `http://localhost:4321` and you have:
|
|
|
738
784
|
### What's the catch?
|
|
739
785
|
|
|
740
786
|
**There isn't one.** ONE is:
|
|
787
|
+
|
|
741
788
|
- Open source (MIT license)
|
|
742
789
|
- Free to use commercially
|
|
743
790
|
- No hidden fees
|
|
@@ -757,6 +804,7 @@ npx oneie
|
|
|
757
804
|
```
|
|
758
805
|
|
|
759
806
|
Answer the prompts (5 minutes):
|
|
807
|
+
|
|
760
808
|
- Your name, email, username
|
|
761
809
|
- Organization name, slug, domain
|
|
762
810
|
- Clone frontend? (yes)
|
|
@@ -814,6 +862,7 @@ After building your first feature with CASCADE, you'll understand:
|
|
|
814
862
|
### What Files Get Copied
|
|
815
863
|
|
|
816
864
|
The CLI copies all files from `/one/*` with these extensions:
|
|
865
|
+
|
|
817
866
|
- `.md` - Markdown documentation (100+ files)
|
|
818
867
|
- `.yaml` - Configuration files
|
|
819
868
|
- `.yml` - Alternate YAML extension
|
|
@@ -857,21 +906,25 @@ allowed_extensions:
|
|
|
857
906
|
## Troubleshooting
|
|
858
907
|
|
|
859
908
|
### CLI fails to copy files
|
|
909
|
+
|
|
860
910
|
- Ensure you're in a writable directory
|
|
861
911
|
- Check file permissions
|
|
862
912
|
- Run with `sudo` if needed (not recommended)
|
|
863
913
|
|
|
864
914
|
### Frontend clone fails
|
|
915
|
+
|
|
865
916
|
- Check git configuration: `git config --list`
|
|
866
917
|
- Verify network connection
|
|
867
918
|
- Try cloning manually: `git clone https://github.com/one-ie/frontend.git`
|
|
868
919
|
|
|
869
920
|
### Agent files not syncing
|
|
921
|
+
|
|
870
922
|
- Verify `one/things/agents/*.md` exists in source
|
|
871
923
|
- Check `.claude/agents/` directory was created
|
|
872
924
|
- Run CLI again to re-sync
|
|
873
925
|
|
|
874
926
|
### Claude Code doesn't load agents
|
|
927
|
+
|
|
875
928
|
- Check `.claude/agents/` contains `.md` files
|
|
876
929
|
- Restart Claude Code
|
|
877
930
|
- Run `claude` from project root directory
|
|
@@ -909,6 +962,7 @@ The CLI is deliberately simple:
|
|
|
909
962
|
9. **index.ts** - Main CLI orchestrator
|
|
910
963
|
|
|
911
964
|
**Principles:**
|
|
965
|
+
|
|
912
966
|
- Simple - Just copy files, no complex logic
|
|
913
967
|
- Transparent - Shows exactly what it's doing
|
|
914
968
|
- Ontology-driven - All profiles map to 6-dimension model
|
|
@@ -947,6 +1001,7 @@ ONE stands on the shoulders of giants:
|
|
|
947
1001
|
**Software should be as easy as describing what you want.**
|
|
948
1002
|
|
|
949
1003
|
We built ONE because we were tired of:
|
|
1004
|
+
|
|
950
1005
|
- Writing boilerplate code
|
|
951
1006
|
- Setting up environments
|
|
952
1007
|
- Learning new frameworks
|
|
@@ -977,11 +1032,13 @@ npx oneie
|
|
|
977
1032
|
```
|
|
978
1033
|
|
|
979
1034
|
Then:
|
|
1035
|
+
|
|
980
1036
|
```bash
|
|
981
1037
|
claude
|
|
982
1038
|
```
|
|
983
1039
|
|
|
984
1040
|
Then:
|
|
1041
|
+
|
|
985
1042
|
```bash
|
|
986
1043
|
/one
|
|
987
1044
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneie",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Transform ideas into production-ready websites using the ONE 6-dimension ontology and 8 AI agents. From idea to website in 3 commands: npx oneie, claude, /one",
|
|
6
6
|
"bin": {
|