oneie 3.5.0 → 3.6.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.
Files changed (132) hide show
  1. package/.claude/agents/agent-director.md +902 -22
  2. package/.claude/agents/agent-onboard-example-output.md +600 -0
  3. package/.claude/agents/agent-onboard.md +576 -0
  4. package/.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md +266 -0
  5. package/.claude/commands/one.md +375 -5
  6. package/.claude/commands/release.md +64 -3
  7. package/CLAUDE.md +55 -69
  8. package/dist/commands/init.d.ts +5 -6
  9. package/dist/commands/init.d.ts.map +1 -1
  10. package/dist/commands/init.js +101 -101
  11. package/dist/commands/init.js.map +1 -1
  12. package/dist/index.js +6 -5
  13. package/dist/index.js.map +1 -1
  14. package/dist/utils/installation-setup.d.ts +24 -1
  15. package/dist/utils/installation-setup.d.ts.map +1 -1
  16. package/dist/utils/installation-setup.js +85 -1
  17. package/dist/utils/installation-setup.js.map +1 -1
  18. package/dist/utils/launch-claude.d.ts +6 -0
  19. package/dist/utils/launch-claude.d.ts.map +1 -0
  20. package/dist/utils/launch-claude.js +51 -0
  21. package/dist/utils/launch-claude.js.map +1 -0
  22. package/dist/utils/validation.d.ts +48 -0
  23. package/dist/utils/validation.d.ts.map +1 -0
  24. package/dist/utils/validation.js +73 -0
  25. package/dist/utils/validation.js.map +1 -0
  26. package/folders.yaml +1 -1
  27. package/one/.obsidian/core-plugins.json +33 -0
  28. package/one/.obsidian/workspace.json +20 -20
  29. package/one/connections/workflow-onboarding.md +683 -0
  30. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
  31. package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
  32. package/one/events/DEPLOYMENT.md +178 -0
  33. package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
  34. package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
  35. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
  36. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
  37. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
  38. package/one/events/HANDOFF.md +313 -0
  39. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
  40. package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
  41. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
  42. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
  43. package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
  44. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
  45. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
  46. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
  47. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
  48. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
  49. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
  50. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
  51. package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
  52. package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
  53. package/one/events/SHOP-BUILD-STATUS.md +114 -0
  54. package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
  55. package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
  56. package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
  57. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
  58. package/one/events/agent-director-enhancement-summary.md +386 -0
  59. package/one/events/agent-onboard-implementation-summary.md +457 -0
  60. package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
  61. package/one/events/landing-page-generator.md +458 -0
  62. package/one/events/onboarding-implementation-complete.md +505 -0
  63. package/one/events/release.md +254 -0
  64. package/one/events/separate-implementation-status.md +537 -0
  65. package/one/knowledge/100-inference-quick-reference.md +431 -0
  66. package/one/knowledge/agent-onboard-usage.md +612 -0
  67. package/one/knowledge/cli-claude-handoff.md +718 -0
  68. package/one/knowledge/ontology-blog.yaml +31 -0
  69. package/one/knowledge/ontology-cheatsheet.md +591 -0
  70. package/one/knowledge/ontology-community.yaml +42 -0
  71. package/one/knowledge/ontology-core-universal.md +722 -0
  72. package/one/knowledge/ontology-core.yaml +50 -0
  73. package/one/knowledge/ontology-courses.yaml +53 -0
  74. package/one/knowledge/ontology-creator.md +376 -0
  75. package/one/knowledge/ontology-developer-guide.md +789 -0
  76. package/one/knowledge/ontology-education.md +920 -0
  77. package/one/knowledge/ontology-index.md +354 -0
  78. package/one/knowledge/ontology-migration-guide.md +811 -0
  79. package/one/knowledge/ontology-minimal.yaml +1 -1
  80. package/one/knowledge/ontology-portfolio.yaml +31 -0
  81. package/one/knowledge/ontology-quickstart.md +576 -0
  82. package/one/knowledge/ontology-shop.yaml +121 -0
  83. package/one/knowledge/ontology-tokens.yaml +32 -0
  84. package/one/knowledge/ontology-tutorial.md +434 -0
  85. package/one/knowledge/ontology-video-script.md +890 -0
  86. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +467 -0
  87. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +408 -0
  88. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +369 -0
  89. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +396 -0
  90. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +468 -0
  91. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +582 -0
  92. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +449 -0
  93. package/one/things/docs/ecommerce/QUICK-START.md +368 -0
  94. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +498 -0
  95. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +237 -0
  96. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +171 -0
  97. package/one/things/docs/ecommerce/demo.astro +309 -0
  98. package/one/things/plans/agent-director-100-inference-plans.md +410 -0
  99. package/one/things/plans/dual-website-strategy.md +612 -0
  100. package/one/things/plans/feature-based-sites.md +821 -0
  101. package/one/things/plans/multi-ontology-architecture.md +836 -0
  102. package/one/things/plans/onboarding.md +32 -0
  103. package/one/things/plans/separate.md +15 -17
  104. package/one/things/plans/start-new.md +738 -0
  105. package/package.json +2 -2
  106. package/one/things/claude/hooks/agent-hook-manager.js +0 -525
  107. package/one/things/claude/hooks/agent-load-balancer.js +0 -271
  108. package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
  109. package/one/things/claude/hooks/cascade-feedback.js +0 -297
  110. package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
  111. package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
  112. package/one/things/claude/hooks/file-organization-engine.js +0 -427
  113. package/one/things/claude/hooks/file-organization-monitor.js +0 -269
  114. package/one/things/claude/hooks/hook-config-manager.js +0 -202
  115. package/one/things/claude/hooks/hook-orchestrator.js +0 -662
  116. package/one/things/claude/hooks/hook-performance-report.js +0 -120
  117. package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
  118. package/one/things/claude/hooks/memory-optimizer.js +0 -510
  119. package/one/things/claude/hooks/ontology-compliance.js +0 -394
  120. package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
  121. package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
  122. package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
  123. package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
  124. package/one/things/claude/hooks/simple-load-balancer.js +0 -238
  125. package/one/things/claude/hooks/startup-optimizer.js +0 -625
  126. package/one/things/claude/hooks/story-scoring-system.js +0 -445
  127. package/one/things/claude/hooks/story-validation-engine.js +0 -473
  128. package/one/things/claude/hooks/structure-synchronizer.js +0 -194
  129. package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
  130. package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
  131. package/one/things/claude/hooks/trinity-validation-system.js +0 -392
  132. package/one/things/plans/organizations-to-groups.md +0 -705
@@ -0,0 +1,722 @@
1
+ # Core Universal Ontology - What Every Website Needs
2
+
3
+ **Version:** 1.0.0
4
+ **Status:** Comprehensive Universal Core
5
+ **Principle:** This ontology contains everything EVERY website needs, regardless of features enabled.
6
+
7
+ ---
8
+
9
+ ## Philosophy: The Universal Website DNA
10
+
11
+ Every website, from a simple portfolio to a complex platform, needs these fundamental capabilities:
12
+
13
+ 1. **Identity** - Who am I? What's my brand?
14
+ 2. **Content** - Pages, media, files
15
+ 3. **Navigation** - Structure, menus, routing
16
+ 4. **Forms** - Contact, feedback, data collection
17
+ 5. **Media** - Images, videos, files
18
+ 6. **SEO** - Metadata, sitemaps, analytics
19
+ 7. **Auth** - Users, sessions, permissions
20
+ 8. **Settings** - Configuration, preferences
21
+ 9. **Notifications** - Messages, alerts
22
+ 10. **Search** - Find content
23
+ 11. **Analytics** - Track usage
24
+ 12. **Integrations** - Connect external services
25
+
26
+ ---
27
+
28
+ ## THE 6-DIMENSION CORE (Always Present)
29
+
30
+ ### 1. GROUPS (Multi-Tenancy)
31
+
32
+ **Structure:**
33
+
34
+ ```typescript
35
+ {
36
+ _id: Id<'groups'>,
37
+ slug: string, // URL identifier
38
+ name: string, // Display name
39
+ type: 'friend_circle' | 'business' | 'community' | 'dao' | 'government' | 'organization',
40
+ parentGroupId?: Id<'groups'>, // Hierarchical nesting
41
+
42
+ // Branding (every site needs this)
43
+ branding: {
44
+ logo: string,
45
+ favicon: string,
46
+ brandColors: {
47
+ primary: string,
48
+ secondary: string,
49
+ accent: string,
50
+ },
51
+ fonts: {
52
+ heading: string,
53
+ body: string,
54
+ },
55
+ },
56
+
57
+ // Contact info (every site needs this)
58
+ contact: {
59
+ email: string,
60
+ phone?: string,
61
+ address?: Address,
62
+ socials?: {
63
+ twitter?: string,
64
+ facebook?: string,
65
+ instagram?: string,
66
+ linkedin?: string,
67
+ github?: string,
68
+ },
69
+ },
70
+
71
+ // SEO (every site needs this)
72
+ seo: {
73
+ title: string,
74
+ description: string,
75
+ keywords: string[],
76
+ ogImage: string,
77
+ canonicalUrl: string,
78
+ robots: 'index,follow' | 'noindex,nofollow',
79
+ },
80
+
81
+ // Settings
82
+ settings: {
83
+ visibility: 'public' | 'private',
84
+ joinPolicy: 'open' | 'invite_only' | 'approval_required',
85
+ plan: 'starter' | 'pro' | 'enterprise',
86
+ language: string, // Default language
87
+ timezone: string,
88
+ currency: string,
89
+ limits: {
90
+ users: number,
91
+ storage: number, // GB
92
+ apiCalls: number,
93
+ },
94
+ },
95
+
96
+ status: 'active' | 'archived',
97
+ createdAt: number,
98
+ updatedAt: number,
99
+ }
100
+ ```
101
+
102
+ **Why Every Site Needs This:**
103
+
104
+ - Multi-tenant isolation
105
+ - Branding & identity
106
+ - Contact information
107
+ - SEO optimization
108
+ - Settings & configuration
109
+
110
+ ---
111
+
112
+ ### 2. PEOPLE (Authorization)
113
+
114
+ **Structure:**
115
+
116
+ ```typescript
117
+ {
118
+ _id: Id<'people'>,
119
+
120
+ // Identity (required)
121
+ email: string,
122
+ username: string, // URL identifier (/username)
123
+ displayName: string,
124
+
125
+ // Auth
126
+ role: 'platform_owner' | 'group_owner' | 'group_user' | 'customer',
127
+ groupId?: Id<'groups'>, // Current/default group
128
+ groups: Id<'groups'>[], // All groups this person belongs to
129
+ permissions: string[],
130
+
131
+ // Profile (every user needs this)
132
+ profile: {
133
+ avatar?: string,
134
+ bio?: string,
135
+ website?: string,
136
+ location?: string,
137
+ socials?: {
138
+ twitter?: string,
139
+ linkedin?: string,
140
+ github?: string,
141
+ },
142
+ },
143
+
144
+ // Preferences (every user needs this)
145
+ preferences: {
146
+ theme: 'light' | 'dark' | 'system',
147
+ language: string,
148
+ timezone: string,
149
+ notifications: {
150
+ email: boolean,
151
+ push: boolean,
152
+ sms: boolean,
153
+ },
154
+ },
155
+
156
+ // Privacy
157
+ privacy: {
158
+ profileVisibility: 'public' | 'private' | 'connections',
159
+ showEmail: boolean,
160
+ showLocation: boolean,
161
+ },
162
+
163
+ createdAt: number,
164
+ updatedAt: number,
165
+ }
166
+ ```
167
+
168
+ **Why Every Site Needs This:**
169
+
170
+ - User authentication
171
+ - Authorization & permissions
172
+ - User profiles
173
+ - Preferences & settings
174
+ - Privacy controls
175
+
176
+ ---
177
+
178
+ ### 3. THINGS (Core Universal Types)
179
+
180
+ Every website needs these thing types:
181
+
182
+ #### Essential Content (Always Needed)
183
+
184
+ ```typescript
185
+ // Pages & Content
186
+ type CoreThingType =
187
+ // Pages & Structure
188
+ | "page" // Static pages (about, privacy, terms)
189
+ | "navigation_menu" // Navigation menus
190
+ | "navigation_item" // Menu items
191
+ | "footer" // Footer content
192
+ | "header" // Header content
193
+
194
+ // Media & Files
195
+ | "image" // Image files
196
+ | "video" // Video files
197
+ | "audio" // Audio files
198
+ | "file" // Generic files
199
+ | "media_folder" // Organize media
200
+
201
+ // Forms & Interaction
202
+ | "form" // Contact forms, surveys
203
+ | "form_submission" // Form responses
204
+ | "feedback" // User feedback
205
+ | "review" // Reviews/ratings
206
+
207
+ // SEO & Analytics
208
+ | "seo_meta" // Page-specific SEO
209
+ | "sitemap_entry" // Sitemap entries
210
+ | "redirect" // URL redirects
211
+ | "analytics_event" // Track events
212
+
213
+ // Users & Auth
214
+ | "user_profile" // Extended user data
215
+ | "session" // Auth sessions
216
+ | "oauth_account" // OAuth connections
217
+ | "verification_token" // Email/2FA tokens
218
+ | "password_reset_token" // Password reset
219
+
220
+ // Notifications & Messages
221
+ | "notification" // System notifications
222
+ | "announcement" // Platform announcements
223
+ | "email" // Email messages
224
+
225
+ // Search
226
+ | "search_index_entry" // Search index
227
+
228
+ // Settings
229
+ | "site_setting" // Site-wide settings
230
+ | "user_preference" // User preferences
231
+
232
+ // Integrations
233
+ | "webhook" // Webhook configurations
234
+ | "api_key" // API keys
235
+ | "integration" // External service integrations
236
+
237
+ // Content Blocks (for page builder)
238
+ | "content_block" // Reusable content blocks
239
+ | "widget" // Site widgets
240
+ | "banner" // Promotional banners
241
+
242
+ // Legal & Compliance
243
+ | "legal_document" // Privacy policy, terms, etc.
244
+ | "cookie_consent" // Cookie consent records
245
+ | "gdpr_request" // GDPR data requests
246
+
247
+ // Support
248
+ | "faq_item" // FAQ entries
249
+ | "help_article" // Help documentation
250
+
251
+ // Links & External
252
+ | "external_link" // External links
253
+ | "social_link" // Social media links
254
+
255
+ // Monitoring
256
+ | "error_log" // Error tracking
257
+ | "audit_log" // Audit trail
258
+ | "uptime_check"; // Uptime monitoring;
259
+ ```
260
+
261
+ ---
262
+
263
+ ### 4. CONNECTIONS (Core Universal Relationships)
264
+
265
+ Every website needs these connection types:
266
+
267
+ ```typescript
268
+ type CoreConnectionType =
269
+ // Ownership & Creation
270
+ | "created_by" // thing → person (who created)
271
+ | "owned_by" // thing → person (who owns)
272
+ | "updated_by" // thing → person (who updated)
273
+ | "deleted_by" // thing → person (who deleted)
274
+
275
+ // Hierarchy & Structure
276
+ | "parent_of" // page → page (parent-child)
277
+ | "child_of" // page → page (child-parent)
278
+ | "part_of" // item → collection
279
+ | "contains" // collection → item
280
+
281
+ // Media & Files
282
+ | "has_image" // thing → image
283
+ | "has_video" // thing → video
284
+ | "has_file" // thing → file
285
+ | "featured_image" // thing → image (primary)
286
+ | "thumbnail" // thing → image (preview)
287
+
288
+ // Navigation
289
+ | "links_to" // page → page (internal link)
290
+ | "redirects_to" // page → page (redirect)
291
+ | "in_menu" // page → navigation_menu
292
+
293
+ // User Interactions
294
+ | "viewed_by" // thing → person
295
+ | "liked_by" // thing → person
296
+ | "favorited_by" // thing → person
297
+ | "bookmarked_by" // thing → person
298
+ | "shared_by" // thing → person
299
+
300
+ // Relationships
301
+ | "follows" // person → person
302
+ | "blocked_by" // person → person
303
+ | "mentioned_in" // person → thing
304
+
305
+ // Forms & Feedback
306
+ | "submitted_by" // form_submission → person
307
+ | "responded_to" // person → form
308
+
309
+ // SEO & Search
310
+ | "related_to" // thing → thing (related content)
311
+ | "tagged_with" // thing → knowledge (tags)
312
+
313
+ // Notifications
314
+ | "notified" // person → notification
315
+ | "sent_to" // notification → person
316
+
317
+ // Integrations
318
+ | "integrated_with" // thing → integration
319
+ | "synced_from"; // thing → external_thing;
320
+ ```
321
+
322
+ ---
323
+
324
+ ### 5. EVENTS (Core Universal Actions)
325
+
326
+ Every website needs to track these events:
327
+
328
+ ```typescript
329
+ type CoreEventType =
330
+ // Content Lifecycle
331
+ | "thing_created" // Any thing created
332
+ | "thing_updated" // Any thing updated
333
+ | "thing_deleted" // Any thing deleted
334
+ | "thing_published" // Draft → published
335
+ | "thing_archived" // Active → archived
336
+
337
+ // User Actions
338
+ | "user_signed_up" // New user registration
339
+ | "user_signed_in" // User login
340
+ | "user_signed_out" // User logout
341
+ | "user_updated_profile" // Profile changes
342
+ | "user_changed_password" // Password change
343
+ | "user_verified_email" // Email verification
344
+ | "user_enabled_2fa" // 2FA enabled
345
+
346
+ // Viewing & Engagement
347
+ | "page_viewed" // Page view
348
+ | "thing_viewed" // Any thing viewed
349
+ | "thing_liked" // Like/upvote
350
+ | "thing_favorited" // Add to favorites
351
+ | "thing_shared" // Share action
352
+
353
+ // Forms & Feedback
354
+ | "form_submitted" // Form submission
355
+ | "feedback_submitted" // Feedback given
356
+ | "review_posted" // Review submitted
357
+
358
+ // Search
359
+ | "search_performed" // Search query
360
+ | "search_result_clicked" // Search result click
361
+
362
+ // Errors & Issues
363
+ | "error_occurred" // Error logged
364
+ | "not_found_404" // 404 error
365
+ | "server_error_500" // 500 error
366
+
367
+ // SEO & Analytics
368
+ | "analytics_tracked" // Analytics event
369
+ | "conversion_tracked" // Conversion event
370
+ | "utm_tracked" // UTM parameter tracked
371
+
372
+ // Notifications
373
+ | "notification_sent" // Notification delivered
374
+ | "notification_read" // Notification opened
375
+ | "notification_clicked" // Notification clicked
376
+
377
+ // Integration & API
378
+ | "webhook_triggered" // Webhook fired
379
+ | "api_called" // API endpoint called
380
+ | "integration_synced" // External sync completed
381
+
382
+ // Performance
383
+ | "page_load_time" // Page load performance
384
+ | "api_response_time" // API latency
385
+
386
+ // Security
387
+ | "login_failed" // Failed login attempt
388
+ | "suspicious_activity" // Security alert
389
+ | "rate_limit_exceeded" // Rate limit hit
390
+
391
+ // GDPR & Compliance
392
+ | "gdpr_request_submitted" // Data request
393
+ | "gdpr_request_fulfilled" // Data delivered
394
+ | "cookie_consent_given" // Cookie consent
395
+
396
+ // Admin Actions
397
+ | "setting_changed" // Site setting updated
398
+ | "permission_granted" // Permission added
399
+ | "permission_revoked"; // Permission removed;
400
+ ```
401
+
402
+ ---
403
+
404
+ ### 6. KNOWLEDGE (Labels & Vectors)
405
+
406
+ Every website needs:
407
+
408
+ ```typescript
409
+ {
410
+ _id: Id<'knowledge'>,
411
+ knowledgeType: 'label' | 'document' | 'chunk' | 'vector_only',
412
+
413
+ text?: string, // For labels & chunks
414
+ embedding?: number[], // Vector for semantic search
415
+ embeddingModel?: string, // e.g., "text-embedding-3-large"
416
+
417
+ sourceThingId?: Id<'things'>,
418
+ sourceField?: string,
419
+
420
+ // Core labels every site uses
421
+ labels?: [
422
+ // Content Type
423
+ 'page:home',
424
+ 'page:about',
425
+ 'page:contact',
426
+ 'page:privacy',
427
+ 'page:terms',
428
+
429
+ // Status
430
+ 'status:draft',
431
+ 'status:published',
432
+ 'status:archived',
433
+
434
+ // Visibility
435
+ 'visibility:public',
436
+ 'visibility:private',
437
+ 'visibility:unlisted',
438
+
439
+ // Priority
440
+ 'priority:high',
441
+ 'priority:medium',
442
+ 'priority:low',
443
+
444
+ // Format
445
+ 'format:text',
446
+ 'format:image',
447
+ 'format:video',
448
+ 'format:audio',
449
+ ],
450
+
451
+ metadata: {
452
+ // SEO
453
+ seoTitle?: string,
454
+ seoDescription?: string,
455
+ keywords?: string[],
456
+
457
+ // Language
458
+ language?: string,
459
+
460
+ // Location
461
+ geo?: {
462
+ lat: number,
463
+ lng: number,
464
+ },
465
+ },
466
+
467
+ createdAt: number,
468
+ updatedAt: number,
469
+ }
470
+ ```
471
+
472
+ ---
473
+
474
+ ## Core Services Every Site Needs
475
+
476
+ ### 1. SEO Service
477
+
478
+ ```typescript
479
+ {
480
+ generateSitemap(): string;
481
+ generateRobotsTxt(): string;
482
+ getPageMeta(pageId: string): SEOMeta;
483
+ updateOpenGraph(pageId: string, meta: OGMeta): void;
484
+ trackAnalytics(event: AnalyticsEvent): void;
485
+ }
486
+ ```
487
+
488
+ ### 2. Media Service
489
+
490
+ ```typescript
491
+ {
492
+ uploadImage(file: File): Promise<string>;
493
+ uploadVideo(file: File): Promise<string>;
494
+ optimizeImage(url: string, width: number): string;
495
+ generateThumbnail(videoUrl: string): Promise<string>;
496
+ deleteFile(url: string): Promise<void>;
497
+ }
498
+ ```
499
+
500
+ ### 3. Form Service
501
+
502
+ ```typescript
503
+ {
504
+ createForm(config: FormConfig): Promise<string>;
505
+ submitForm(formId: string, data: any): Promise<void>;
506
+ getSubmissions(formId: string): Promise<Submission[]>;
507
+ sendNotification(submission: Submission): Promise<void>;
508
+ }
509
+ ```
510
+
511
+ ### 4. Search Service
512
+
513
+ ```typescript
514
+ {
515
+ indexThing(thingId: string): Promise<void>;
516
+ search(query: string, filters?: any): Promise<SearchResult[]>;
517
+ autocomplete(query: string): Promise<string[]>;
518
+ relatedContent(thingId: string): Promise<Thing[]>;
519
+ }
520
+ ```
521
+
522
+ ### 5. Notification Service
523
+
524
+ ```typescript
525
+ {
526
+ sendNotification(userId: string, message: string): Promise<void>;
527
+ sendEmail(to: string, subject: string, body: string): Promise<void>;
528
+ sendPush(userId: string, notification: PushNotification): Promise<void>;
529
+ getNotifications(userId: string): Promise<Notification[]>;
530
+ }
531
+ ```
532
+
533
+ ### 6. Analytics Service
534
+
535
+ ```typescript
536
+ {
537
+ trackPageView(pageId: string, userId?: string): void;
538
+ trackEvent(event: string, properties?: any): void;
539
+ getPageViews(pageId: string, range: DateRange): number;
540
+ getTopPages(limit: number): PageStats[];
541
+ getUserJourney(userId: string): Event[];
542
+ }
543
+ ```
544
+
545
+ ### 7. Integration Service
546
+
547
+ ```typescript
548
+ {
549
+ connectService(service: string, config: any): Promise<void>;
550
+ syncData(integrationId: string): Promise<void>;
551
+ webhookReceived(integrationId: string, payload: any): Promise<void>;
552
+ getIntegrations(): Promise<Integration[]>;
553
+ }
554
+ ```
555
+
556
+ ---
557
+
558
+ ## Core UI Components Every Site Needs
559
+
560
+ ### Navigation
561
+
562
+ - Header
563
+ - Footer
564
+ - Main navigation
565
+ - Breadcrumbs
566
+ - Mobile menu
567
+ - User menu
568
+
569
+ ### Content
570
+
571
+ - Hero section
572
+ - Content blocks
573
+ - Image gallery
574
+ - Video player
575
+ - File downloads
576
+ - Code blocks
577
+
578
+ ### Forms
579
+
580
+ - Contact form
581
+ - Newsletter signup
582
+ - Search bar
583
+ - Filters
584
+ - Login/signup forms
585
+
586
+ ### Feedback
587
+
588
+ - Toast notifications
589
+ - Error messages
590
+ - Success messages
591
+ - Loading states
592
+ - Empty states
593
+
594
+ ### Social
595
+
596
+ - Share buttons
597
+ - Social links
598
+ - Author bio
599
+ - Comments (optional)
600
+
601
+ ### SEO
602
+
603
+ - Meta tags
604
+ - Open Graph
605
+ - JSON-LD structured data
606
+ - Canonical URLs
607
+ - Sitemaps
608
+
609
+ ---
610
+
611
+ ## Core Routes Every Site Needs
612
+
613
+ ```typescript
614
+ // Public pages
615
+ / # Homepage
616
+ /about # About page
617
+ /contact # Contact page
618
+ /privacy # Privacy policy
619
+ /terms # Terms of service
620
+ /sitemap.xml # Sitemap
621
+ /robots.txt # Robots.txt
622
+
623
+ // Auth (if enabled)
624
+ /signin # Sign in
625
+ /signup # Sign up
626
+ /forgot-password # Password reset
627
+ /verify-email # Email verification
628
+
629
+ // User
630
+ /[username] # User profile
631
+ /settings # User settings
632
+ /notifications # Notifications
633
+
634
+ // Search
635
+ /search # Search results
636
+
637
+ // Admin
638
+ /admin # Admin dashboard
639
+ /admin/settings # Site settings
640
+ /admin/users # User management
641
+
642
+ // API
643
+ /api/* # API endpoints
644
+ /webhooks/* # Webhook endpoints
645
+ ```
646
+
647
+ ---
648
+
649
+ ## Core Integrations Every Site Needs
650
+
651
+ ### Analytics
652
+
653
+ - Google Analytics
654
+ - Plausible
655
+ - Fathom
656
+ - Umami
657
+
658
+ ### SEO
659
+
660
+ - Google Search Console
661
+ - Bing Webmaster Tools
662
+ - Schema.org structured data
663
+
664
+ ### Email
665
+
666
+ - Resend
667
+
668
+ ### Media
669
+
670
+ - Cloudinary
671
+ - Uploadcare
672
+ - Imgix
673
+
674
+ ### Social
675
+
676
+ - Open Graph
677
+ - Twitter Cards
678
+ - Facebook Pixel
679
+ - LinkedIn Insights
680
+
681
+ ### Monitoring
682
+
683
+ - Sentry (errors)
684
+ - LogRocket (session replay)
685
+ - Uptime Robot (monitoring)
686
+
687
+ ---
688
+
689
+ ## Why This Is Comprehensive
690
+
691
+ **Every website needs:**
692
+
693
+ ✅ **Identity** - Branding, logo, colors
694
+ ✅ **Content** - Pages, media, files
695
+ ✅ **Navigation** - Menus, structure
696
+ ✅ **Forms** - Contact, feedback
697
+ ✅ **SEO** - Meta tags, sitemaps
698
+ ✅ **Auth** - Users, permissions (if needed)
699
+ ✅ **Media** - Images, videos, files
700
+ ✅ **Search** - Find content
701
+ ✅ **Analytics** - Track usage
702
+ ✅ **Notifications** - Messages, alerts
703
+ ✅ **Settings** - Configuration
704
+ ✅ **Integrations** - External services
705
+ ✅ **Legal** - Privacy, terms, GDPR
706
+ ✅ **Support** - FAQs, help docs
707
+ ✅ **Monitoring** - Errors, uptime
708
+
709
+ ---
710
+
711
+ ## Next Steps
712
+
713
+ 1. **Implement core ontology** (these thing types)
714
+ 2. **Build core services** (SEO, media, forms, etc.)
715
+ 3. **Create core components** (header, footer, navigation)
716
+ 4. **Add core routes** (pages every site needs)
717
+ 5. **Test with blank template** (ensure everything works)
718
+ 6. **Document core APIs** (for feature extensions)
719
+
720
+ ---
721
+
722
+ **This is what EVERY website needs** - the universal DNA that makes a site functional before you add any features! 🚀