ydev-mern 1.0.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.
@@ -0,0 +1,424 @@
1
+ import { useState } from 'react'
2
+ import './App.css'
3
+
4
+ export default function App() {
5
+ const [selectedPm, setSelectedPm] = useState('npm')
6
+ const [isCopied, setIsCopied] = useState(false)
7
+ const [isCodeCopied, setIsCodeCopied] = useState(false)
8
+ const [demoCount, setDemoCount] = useState(1)
9
+ const [activeLog, setActiveLog] = useState('ydev.init(): Runtime initialized ready in 0.4ms')
10
+ const [activeTab, setActiveTab] = useState('devtools')
11
+
12
+ const commands = {
13
+ npm: 'npm i ydev-mern',
14
+ pnpm: 'pnpm add ydev-mern',
15
+ yarn: 'yarn add ydev-mern',
16
+ bun: 'bun add ydev-mern',
17
+ }
18
+
19
+ const handleCopyInstall = async () => {
20
+ try {
21
+ await navigator.clipboard.writeText(commands[selectedPm])
22
+ setIsCopied(true)
23
+ setTimeout(() => setIsCopied(false), 2200)
24
+ } catch {
25
+ // Fallback
26
+ setIsCopied(true)
27
+ setTimeout(() => setIsCopied(false), 2200)
28
+ }
29
+ }
30
+
31
+ const handleCopyCode = async () => {
32
+ const code = `# Scaffold a new full-stack MERN app
33
+ npx ydev-mern my-app
34
+
35
+ # Or install as a dependency
36
+ npm i ydev-mern`
37
+ try {
38
+ await navigator.clipboard.writeText(code)
39
+ setIsCodeCopied(true)
40
+ setTimeout(() => setIsCodeCopied(false), 2200)
41
+ } catch {
42
+ setIsCodeCopied(true)
43
+ setTimeout(() => setIsCodeCopied(false), 2200)
44
+ }
45
+ }
46
+
47
+ const triggerDemoAction = (actionType) => {
48
+ if (actionType === 'increment') {
49
+ const next = demoCount + 1
50
+ setDemoCount(next)
51
+ setActiveLog(`ydev.state.dispatch({ count: ${next} }) — synced instantly`)
52
+ } else if (actionType === 'bench') {
53
+ setActiveLog(`ydev.benchmark(): 10,000 ops completed in 1.12ms ⚡`)
54
+ } else if (actionType === 'reset') {
55
+ setDemoCount(0)
56
+ setActiveLog(`ydev.state.reset() — state restored to initial values`)
57
+ }
58
+ }
59
+
60
+ return (
61
+ <div className="app-container">
62
+ {/* Background glow effects */}
63
+ <div className="bg-glow-orb-1" aria-hidden="true" />
64
+ <div className="bg-glow-orb-2" aria-hidden="true" />
65
+
66
+ {/* Top Navigation */}
67
+ <header className="navbar">
68
+ <div className="nav-content">
69
+ <a href="#hero" className="logo-brand" id="nav-logo">
70
+ <span>y-DEV</span>
71
+ <span className="logo-badge">npm</span>
72
+ </a>
73
+
74
+ <nav className="nav-links" aria-label="Main Navigation">
75
+ <a href="#features" className="nav-link">Features</a>
76
+ <a href="#interactive-demo" className="nav-link">Live Demo</a>
77
+ <a href="#quickstart" className="nav-link">Quick Start</a>
78
+ </nav>
79
+
80
+ <a
81
+ href="https://www.npmjs.com"
82
+ target="_blank"
83
+ rel="noopener noreferrer"
84
+ className="nav-cta"
85
+ id="nav-npm-link"
86
+ >
87
+ <span>npm i ydev-mern</span>
88
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
89
+ <path d="M7 17l9.2-9.2M17 17V7H7" />
90
+ </svg>
91
+ </a>
92
+ </div>
93
+ </header>
94
+
95
+ {/* Hero Section */}
96
+ <main>
97
+ <section id="hero" className="hero-section">
98
+ <div className="pill-badge">
99
+ <span className="pill-dot" />
100
+ <span>npm package: ydev-mern</span>
101
+ <span>•</span>
102
+ <span>v1.0.0 Ready</span>
103
+ </div>
104
+
105
+ <h1 className="hero-title">
106
+ Meet <span className="hero-gradient">y-DEV</span>
107
+ </h1>
108
+
109
+ <p className="hero-subtitle">
110
+ The modern, lightning-fast developer toolkit designed for high-velocity React &amp; full-stack apps. Minimal overhead, maximum developer ergonomics.
111
+ </p>
112
+
113
+ {/* Install Terminal Box */}
114
+ <div className="install-wrapper">
115
+ <div className="package-tabs" role="tablist" aria-label="Package Manager selection">
116
+ {['npm', 'pnpm', 'yarn', 'bun'].map((pm) => (
117
+ <button
118
+ key={pm}
119
+ id={`tab-${pm}`}
120
+ role="tab"
121
+ aria-selected={selectedPm === pm}
122
+ type="button"
123
+ className={`tab-btn ${selectedPm === pm ? 'active' : ''}`}
124
+ onClick={() => setSelectedPm(pm)}
125
+ >
126
+ {pm}
127
+ </button>
128
+ ))}
129
+ </div>
130
+
131
+ <div className="terminal-box">
132
+ <div className="command-content">
133
+ <span className="terminal-prompt">$</span>
134
+ <span className="terminal-cmd">{commands[selectedPm]}</span>
135
+ </div>
136
+
137
+ <button
138
+ type="button"
139
+ id="copy-install-btn"
140
+ className={`copy-btn ${isCopied ? 'copied' : ''}`}
141
+ onClick={handleCopyInstall}
142
+ aria-label="Copy install command"
143
+ >
144
+ {isCopied ? (
145
+ <>
146
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round">
147
+ <polyline points="20 6 9 17 4 12" />
148
+ </svg>
149
+ <span>Copied!</span>
150
+ </>
151
+ ) : (
152
+ <>
153
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
154
+ <rect x="9" y="9" width="13" height="13" rx="2" ry="2" />
155
+ <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
156
+ </svg>
157
+ <span>Copy</span>
158
+ </>
159
+ )}
160
+ </button>
161
+ </div>
162
+ </div>
163
+
164
+ {/* Quick Metrics Badges */}
165
+ <div className="badges-row">
166
+ <div className="metric-badge">
167
+ <span>📦</span>
168
+ <span>Size: <strong>~3.8 kB</strong></span>
169
+ </div>
170
+ <div className="metric-badge">
171
+ <span>⚡</span>
172
+ <span>Speed: <strong>0ms cold boot</strong></span>
173
+ </div>
174
+ <div className="metric-badge">
175
+ <span>🛡️</span>
176
+ <span>Types: <strong>TypeScript 100%</strong></span>
177
+ </div>
178
+ <div className="metric-badge">
179
+ <span>🌱</span>
180
+ <span>Deps: <strong>0 dependencies</strong></span>
181
+ </div>
182
+ </div>
183
+ </section>
184
+
185
+ {/* Interactive Live Demo */}
186
+ <section id="interactive-demo" className="demo-section">
187
+ <p className="section-tag">Interactive Preview</p>
188
+ <h2 className="section-title">Test y-DEV in Real Time</h2>
189
+ <p className="section-desc">
190
+ Experience the reactive state engine, diagnostics, and developer helpers embedded directly within the y-DEV core.
191
+ </p>
192
+
193
+ <div className="interactive-card">
194
+ <div className="card-topbar">
195
+ <div className="window-dots">
196
+ <span className="dot dot-red" />
197
+ <span className="dot dot-yellow" />
198
+ <span className="dot dot-green" />
199
+ </div>
200
+ <div className="playground-tabs" role="tablist">
201
+ <button
202
+ type="button"
203
+ className={`tab-btn ${activeTab === 'devtools' ? 'active' : ''}`}
204
+ onClick={() => setActiveTab('devtools')}
205
+ >
206
+ Diagnostics
207
+ </button>
208
+ <button
209
+ type="button"
210
+ className={`tab-btn ${activeTab === 'config' ? 'active' : ''}`}
211
+ onClick={() => setActiveTab('config')}
212
+ >
213
+ Config
214
+ </button>
215
+ </div>
216
+ <span className="window-title">ydev-playground.ts</span>
217
+ </div>
218
+
219
+ <div className="card-body">
220
+ <div className="demo-controls">
221
+ <h4>Toolkit Control Center</h4>
222
+ <p>Simulate dispatching events, benchmarking performance, and syncing state.</p>
223
+
224
+ <div className="control-group">
225
+ <span className="control-label">State Operations</span>
226
+ <div className="button-row">
227
+ <button
228
+ type="button"
229
+ id="btn-increment"
230
+ className="interactive-btn"
231
+ onClick={() => triggerDemoAction('increment')}
232
+ >
233
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5">
234
+ <line x1="12" y1="5" x2="12" y2="19" />
235
+ <line x1="5" y1="12" x2="19" y2="12" />
236
+ </svg>
237
+ Dispatch Event ({demoCount})
238
+ </button>
239
+ <button
240
+ type="button"
241
+ id="btn-bench"
242
+ className="interactive-btn secondary"
243
+ onClick={() => triggerDemoAction('bench')}
244
+ >
245
+ ⚡ Run Benchmark
246
+ </button>
247
+ <button
248
+ type="button"
249
+ id="btn-reset"
250
+ className="interactive-btn secondary"
251
+ onClick={() => triggerDemoAction('reset')}
252
+ >
253
+ ↺ Reset
254
+ </button>
255
+ </div>
256
+ </div>
257
+ </div>
258
+
259
+ <div className="demo-preview">
260
+ {activeTab === 'devtools' ? (
261
+ <div>
262
+ <div className="preview-header">
263
+ <span>LIVE DIAGNOSTICS</span>
264
+ <span className="preview-status">
265
+ <span className="pulse-led" /> ACTIVE
266
+ </span>
267
+ </div>
268
+
269
+ <div className="preview-stats">
270
+ <div className="stat-item">
271
+ <span>Events Handled:</span>
272
+ <span>{demoCount}</span>
273
+ </div>
274
+ <div className="stat-item">
275
+ <span>Memory Overhead:</span>
276
+ <span>0.01 MB</span>
277
+ </div>
278
+ <div className="stat-item">
279
+ <span>Latency:</span>
280
+ <span>&lt; 0.1ms</span>
281
+ </div>
282
+ </div>
283
+ </div>
284
+ ) : (
285
+ <div>
286
+ <div className="preview-header">
287
+ <span>ACTIVE CONFIG</span>
288
+ <span className="preview-status">VALIDATED ✓</span>
289
+ </div>
290
+ <div className="preview-stats">
291
+ <div className="stat-item">
292
+ <span>Package:</span>
293
+ <span>ydev@1.0.0</span>
294
+ </div>
295
+ <div className="stat-item">
296
+ <span>Module:</span>
297
+ <span>ESM + CJS</span>
298
+ </div>
299
+ <div className="stat-item">
300
+ <span>Treeshaking:</span>
301
+ <span>Enabled (Pure)</span>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ )}
306
+
307
+ <div className="live-log-output" aria-live="polite">
308
+ <span>&gt; {activeLog}</span>
309
+ </div>
310
+ </div>
311
+ </div>
312
+ </div>
313
+ </section>
314
+
315
+ {/* Features Grid */}
316
+ <section id="features" className="features-section">
317
+ <p className="section-tag">Capabilities</p>
318
+ <h2 className="section-title">Engineered for Modern Web Engineers</h2>
319
+ <p className="section-desc">
320
+ Everything you need to build faster, safer, and cleaner full-stack web experiences.
321
+ </p>
322
+
323
+ <div className="features-grid">
324
+ <div className="feature-card">
325
+ <div className="feature-icon-wrapper"></div>
326
+ <h3 className="feature-title">Ultra Lightweight</h3>
327
+ <p className="feature-desc">
328
+ Engineered with zero external runtime dependencies. Ensures minimal bundle overhead and instant cold starts for high throughput.
329
+ </p>
330
+ </div>
331
+
332
+ <div className="feature-card">
333
+ <div className="feature-icon-wrapper"></div>
334
+ <h3 className="feature-title">Type Safe by Default</h3>
335
+ <p className="feature-desc">
336
+ Complete first-class TypeScript support with inline documentation, type hints, and full autocompletion across your entire workflow.
337
+ </p>
338
+ </div>
339
+
340
+ <div className="feature-card">
341
+ <div className="feature-icon-wrapper">🧩</div>
342
+ <h3 className="feature-title">Modular &amp; Shakeable</h3>
343
+ <p className="feature-desc">
344
+ Import only what your application requires. Modern ES Modules architecture enables bundlers to tree-shake unused code cleanly.
345
+ </p>
346
+ </div>
347
+
348
+ <div className="feature-card">
349
+ <div className="feature-icon-wrapper"></div>
350
+ <h3 className="feature-title">NPM-Ready Publishing</h3>
351
+ <p className="feature-desc">
352
+ Optimized to be published directly to npm registry with clean metadata, dual ESM/CJS compatibility, and semantic versioning.
353
+ </p>
354
+ </div>
355
+ </div>
356
+ </section>
357
+
358
+ {/* Quick Start Code Block */}
359
+ <section id="quickstart" className="code-section">
360
+ <p className="section-tag">Integration</p>
361
+ <h2 className="section-title">Get Started in Seconds</h2>
362
+ <p className="section-desc">
363
+ Seamlessly integrate y-DEV into any Vite, Next.js, or standard React project.
364
+ </p>
365
+
366
+ <div className="code-container">
367
+ <div className="code-header">
368
+ <div className="code-filename">
369
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
370
+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
371
+ <polyline points="14 2 14 8 20 8" />
372
+ </svg>
373
+ <span>src/toolkit.ts</span>
374
+ </div>
375
+
376
+ <button
377
+ type="button"
378
+ id="copy-code-btn"
379
+ className={`copy-btn ${isCodeCopied ? 'copied' : ''}`}
380
+ onClick={handleCopyCode}
381
+ style={{ padding: '4px 10px', fontSize: '12px' }}
382
+ >
383
+ {isCodeCopied ? 'Copied!' : 'Copy snippet'}
384
+ </button>
385
+ </div>
386
+
387
+ <pre className="code-block">
388
+ <code>
389
+ <span className="code-comment"># 1. Unpack both frontend &amp; backend:</span>{'\n'}
390
+ <span className="code-string">npx ydev-mern my-app</span>{'\n\n'}
391
+ <span className="code-comment"># 2. Or install directly via npm:</span>{'\n'}
392
+ <span className="code-string">npm i ydev-mern</span>{'\n'}
393
+ </code>
394
+ </pre>
395
+ </div>
396
+ </section>
397
+ </main>
398
+
399
+ {/* Footer */}
400
+ <footer className="footer">
401
+ <div className="footer-content">
402
+ <div className="footer-brand">y-DEV</div>
403
+ <p className="footer-text">
404
+ Full-Stack MERN Development Kit. Ready for npm distribution via <code>npm i ydev-mern</code>.
405
+ </p>
406
+ <div className="footer-badges">
407
+ <span className="footer-badge-link">v1.0.0</span>
408
+ <span>•</span>
409
+ <span className="footer-badge-link">MIT License</span>
410
+ <span>•</span>
411
+ <a
412
+ href="https://www.npmjs.com"
413
+ target="_blank"
414
+ rel="noopener noreferrer"
415
+ className="footer-badge-link"
416
+ >
417
+ npm: ydev-mern
418
+ </a>
419
+ </div>
420
+ </div>
421
+ </footer>
422
+ </div>
423
+ )
424
+ }
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="77" height="47" fill="none" aria-labelledby="vite-logo-title" viewBox="0 0 77 47"><title id="vite-logo-title">Vite</title><style>.parenthesis{fill:#000}@media (prefers-color-scheme:dark){.parenthesis{fill:#fff}}</style><path fill="#9135ff" d="M40.151 45.71c-.663.844-2.02.374-2.02-.699V34.708a2.26 2.26 0 0 0-2.262-2.262H24.493c-.92 0-1.457-1.04-.92-1.788l7.479-10.471c1.07-1.498 0-3.578-1.842-3.578H15.443c-.92 0-1.456-1.04-.92-1.788l9.696-13.576c.213-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.472c-1.07 1.497 0 3.578 1.842 3.578h11.376c.944 0 1.474 1.087.89 1.83L40.153 45.712z"/><mask id="a" width="48" height="47" x="14" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M40.047 45.71c-.663.843-2.02.374-2.02-.699V34.708a2.26 2.26 0 0 0-2.262-2.262H24.389c-.92 0-1.457-1.04-.92-1.788l7.479-10.472c1.07-1.497 0-3.578-1.842-3.578H15.34c-.92 0-1.456-1.04-.92-1.788l9.696-13.575c.213-.297.556-.474.92-.474H53.93c.92 0 1.456 1.04.92 1.788L47.37 13.03c-1.07 1.498 0 3.578 1.842 3.578h11.376c.944 0 1.474 1.088.89 1.831L40.049 45.712z"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#eee6ff" rx="5.508" ry="14.704" transform="rotate(269.814 20.96 11.29)scale(-1 1)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#eee6ff" rx="10.399" ry="29.851" transform="rotate(89.814 -16.902 -8.275)scale(1 -1)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#8900ff" rx="5.508" ry="30.487" transform="rotate(89.814 -19.197 -7.127)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#8900ff" rx="5.508" ry="30.599" transform="rotate(89.814 -25.928 4.177)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#8900ff" rx="5.508" ry="30.599" transform="rotate(89.814 -25.738 5.52)scale(1 -1)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#eee6ff" rx="14.072" ry="22.078" transform="rotate(93.35 31.245 55.578)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#8900ff" rx="3.47" ry="21.501" transform="rotate(89.009 35.419 55.202)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#8900ff" rx="3.47" ry="21.501" transform="rotate(89.009 35.419 55.202)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx="14.592" cy="9.743" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(39.51 14.592 9.743)"/></g><g filter="url(#k)"><ellipse cx="61.728" cy="-5.321" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 61.728 -5.32)"/></g><g filter="url(#l)"><ellipse cx="55.618" cy="7.104" fill="#00c2ff" rx="5.971" ry="9.665" transform="rotate(37.892 55.618 7.104)"/></g><g filter="url(#m)"><ellipse cx="12.326" cy="39.103" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 12.326 39.103)"/></g><g filter="url(#n)"><ellipse cx="12.326" cy="39.103" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 12.326 39.103)"/></g><g filter="url(#o)"><ellipse cx="49.857" cy="30.678" fill="#8900ff" rx="4.407" ry="29.108" transform="rotate(37.892 49.857 30.678)"/></g><g filter="url(#p)"><ellipse cx="52.623" cy="33.171" fill="#00c2ff" rx="5.971" ry="15.297" transform="rotate(37.892 52.623 33.17)"/></g></g><path d="M6.919 0c-9.198 13.166-9.252 33.575 0 46.789h6.215c-9.25-13.214-9.196-33.623 0-46.789zm62.424 0h-6.215c9.198 13.166 9.252 33.575 0 46.789h6.215c9.25-13.214 9.196-33.623 0-46.789" class="parenthesis"/><defs><filter id="b" width="60.045" height="41.654" x="-5.564" y="16.92" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-40.407" y="-6.762" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-35.435" y="2.801" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-30.84" y="20.8" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-29.307" y="21.949" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="29.961" y="-17.13" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="37.754" y="3.055" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="37.754" y="3.055" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-13.43" y="-22.082" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="34.321" y="-37.644" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="38.847" y="-10.552" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-15.081" y="6.78" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-15.081" y="6.78" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="22.45" y="-1.645" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="32.919" y="11.36" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17286" stdDeviation="4.596"/></filter></defs></svg>
@@ -0,0 +1,77 @@
1
+ :root {
2
+ --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
3
+ --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
4
+
5
+ --bg-primary: #0a0c10;
6
+ --bg-secondary: #0f141d;
7
+ --bg-card: rgba(21, 28, 43, 0.7);
8
+ --bg-card-hover: rgba(28, 38, 58, 0.85);
9
+ --bg-glass: rgba(15, 23, 42, 0.65);
10
+
11
+ --border-subtle: rgba(255, 255, 255, 0.08);
12
+ --border-focus: rgba(139, 92, 246, 0.4);
13
+ --border-active: rgba(6, 182, 212, 0.4);
14
+
15
+ --text-primary: #f8fafc;
16
+ --text-secondary: #94a3b8;
17
+ --text-muted: #64748b;
18
+
19
+ --primary: #8b5cf6;
20
+ --primary-glow: rgba(139, 92, 246, 0.35);
21
+ --accent: #06b6d4;
22
+ --accent-glow: rgba(6, 182, 212, 0.35);
23
+ --emerald: #10b981;
24
+ --emerald-glow: rgba(16, 185, 129, 0.3);
25
+
26
+ --gradient-brand: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #818cf8 100%);
27
+ --gradient-glow: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.08) 35%, transparent 70%);
28
+
29
+ color-scheme: dark;
30
+ }
31
+
32
+ * {
33
+ box-sizing: border-box;
34
+ margin: 0;
35
+ padding: 0;
36
+ }
37
+
38
+ body {
39
+ font-family: var(--font-sans);
40
+ background-color: var(--bg-primary);
41
+ color: var(--text-primary);
42
+ min-height: 100vh;
43
+ line-height: 1.6;
44
+ overflow-x: hidden;
45
+ background-image: var(--gradient-glow);
46
+ background-repeat: no-repeat;
47
+ background-attachment: fixed;
48
+ -webkit-font-smoothing: antialiased;
49
+ -moz-osx-font-smoothing: grayscale;
50
+ }
51
+
52
+ #root {
53
+ min-height: 100vh;
54
+ display: flex;
55
+ flex-direction: column;
56
+ }
57
+
58
+ /* Custom Scrollbar */
59
+ ::-webkit-scrollbar {
60
+ width: 8px;
61
+ }
62
+ ::-webkit-scrollbar-track {
63
+ background: var(--bg-primary);
64
+ }
65
+ ::-webkit-scrollbar-thumb {
66
+ background: #1e293b;
67
+ border-radius: 4px;
68
+ }
69
+ ::-webkit-scrollbar-thumb:hover {
70
+ background: #334155;
71
+ }
72
+
73
+ /* Selection */
74
+ ::selection {
75
+ background: var(--primary);
76
+ color: #ffffff;
77
+ }
@@ -0,0 +1,10 @@
1
+ import { StrictMode } from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
+ import './index.css'
4
+ import App from './App.jsx'
5
+
6
+ createRoot(document.getElementById('root')).render(
7
+ <StrictMode>
8
+ <App />
9
+ </StrictMode>,
10
+ )
@@ -0,0 +1,11 @@
1
+ import react, { reactCompilerPreset } from '@vitejs/plugin-react'
2
+ import babel from '@rolldown/plugin-babel'
3
+ import { defineConfig } from 'vite'
4
+
5
+ // https://vite.dev/config/
6
+ export default defineConfig({
7
+ plugins: [
8
+ react(),
9
+ babel({ presets: [reactCompilerPreset()] })
10
+ ],
11
+ })
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "ydev-mern",
3
+ "version": "1.0.0",
4
+ "description": "Full-stack MERN developer toolkit featuring modern React frontend and Express backend.",
5
+ "main": "backend/src/Server.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "ydev-mern": "bin/cli.js"
9
+ },
10
+ "files": [
11
+ "frontend",
12
+ "backend",
13
+ "bin",
14
+ "README.md"
15
+ ],
16
+ "keywords": [
17
+ "mern",
18
+ "react",
19
+ "express",
20
+ "fullstack",
21
+ "starter",
22
+ "ydev",
23
+ "ydev-mern"
24
+ ],
25
+ "author": "yakshith.v",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/YAKSHITH-1/npm-ydev.git"
30
+ }
31
+ }