@roboticela/devkit 4.0.0 → 4.1.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 (35) hide show
  1. package/dist/lib/bundled-registry.d.ts +18 -0
  2. package/dist/lib/bundled-registry.js +82 -0
  3. package/dist/lib/component-entry.d.ts +16 -0
  4. package/dist/lib/component-entry.js +1 -0
  5. package/dist/lib/config.d.ts +2 -0
  6. package/dist/lib/config.js +3 -1
  7. package/dist/lib/installer.js +9 -7
  8. package/dist/lib/registry.d.ts +2 -16
  9. package/dist/lib/registry.js +10 -0
  10. package/package.json +4 -2
  11. package/registry/components/auth/component.json +29 -0
  12. package/registry/components/auth/nextjs-compact/v1/files/app/api/auth/[...route]/route.ts +140 -0
  13. package/registry/components/auth/nextjs-compact/v1/files/app/auth/forgot-password/page.tsx +150 -0
  14. package/registry/components/auth/nextjs-compact/v1/files/app/auth/login/page.tsx +45 -0
  15. package/registry/components/auth/nextjs-compact/v1/files/app/auth/register/page.tsx +45 -0
  16. package/registry/components/auth/nextjs-compact/v1/files/app/auth/reset-password/page.tsx +139 -0
  17. package/registry/components/auth/nextjs-compact/v1/files/components/auth/AuthProvider.tsx +89 -0
  18. package/registry/components/auth/nextjs-compact/v1/files/components/auth/LoginForm.tsx +123 -0
  19. package/registry/components/auth/nextjs-compact/v1/files/components/auth/RegisterForm.tsx +106 -0
  20. package/registry/components/auth/nextjs-compact/v1/files/lib/auth/authService.ts +43 -0
  21. package/registry/components/auth/nextjs-compact/v1/manifest.json +37 -0
  22. package/registry/components/auth/vite-express-tauri/v1/files/server/middleware/requireAuth.ts +14 -0
  23. package/registry/components/auth/vite-express-tauri/v1/files/server/routes/auth.ts +83 -0
  24. package/registry/components/auth/vite-express-tauri/v1/files/server/services/jwtService.ts +19 -0
  25. package/registry/components/auth/vite-express-tauri/v1/files/src/contexts/AuthContext.tsx +72 -0
  26. package/registry/components/auth/vite-express-tauri/v1/manifest.json +47 -0
  27. package/registry/components/hero-section/component.json +28 -0
  28. package/registry/components/hero-section/nextjs-compact/v1/variants/centered/files/components/hero/HeroSection.tsx +97 -0
  29. package/registry/components/hero-section/nextjs-compact/v1/variants/centered/manifest.json +17 -0
  30. package/registry/components/hero-section/nextjs-compact/v1/variants/gradient-mesh/files/components/hero/HeroSection.tsx +146 -0
  31. package/registry/components/hero-section/nextjs-compact/v1/variants/gradient-mesh/manifest.json +17 -0
  32. package/registry/components/hero-section/nextjs-compact/v1/variants/split-image/files/components/hero/HeroSection.tsx +110 -0
  33. package/registry/components/hero-section/nextjs-compact/v1/variants/split-image/manifest.json +17 -0
  34. package/registry/components/registry.json +31 -0
  35. package/schemas/devkit-config.json +63 -0
@@ -0,0 +1,72 @@
1
+ import { createContext, useContext, useEffect, useState } from "react";
2
+
3
+ interface User { id: string; email: string; name: string; avatar?: string }
4
+
5
+ interface AuthContextValue {
6
+ user: User | null;
7
+ loading: boolean;
8
+ login: (email: string, password: string) => Promise<void>;
9
+ register: (name: string, email: string, password: string) => Promise<void>;
10
+ logout: () => Promise<void>;
11
+ }
12
+
13
+ const AuthContext = createContext<AuthContextValue | null>(null);
14
+
15
+ const API = import.meta.env.VITE_API_URL ?? "http://localhost:3000";
16
+
17
+ export function AuthProvider({ children }: { children: React.ReactNode }) {
18
+ const [user, setUser] = useState<User | null>(null);
19
+ const [loading, setLoading] = useState(true);
20
+
21
+ useEffect(() => {
22
+ const token = localStorage.getItem("access_token");
23
+ if (!token) { setLoading(false); return; }
24
+ fetch(`${API}/api/auth/me`, {
25
+ headers: { Authorization: `Bearer ${token}` },
26
+ })
27
+ .then((r) => (r.ok ? r.json() : null))
28
+ .then((d) => setUser(d?.user ?? null))
29
+ .finally(() => setLoading(false));
30
+ }, []);
31
+
32
+ async function login(email: string, password: string) {
33
+ const res = await fetch(`${API}/api/auth/login`, {
34
+ method: "POST",
35
+ headers: { "Content-Type": "application/json" },
36
+ body: JSON.stringify({ email, password }),
37
+ });
38
+ if (!res.ok) { const d = await res.json(); throw new Error(d.message || "Login failed"); }
39
+ const { user, token } = await res.json();
40
+ localStorage.setItem("access_token", token);
41
+ setUser(user);
42
+ }
43
+
44
+ async function register(name: string, email: string, password: string) {
45
+ const res = await fetch(`${API}/api/auth/register`, {
46
+ method: "POST",
47
+ headers: { "Content-Type": "application/json" },
48
+ body: JSON.stringify({ name, email, password }),
49
+ });
50
+ if (!res.ok) { const d = await res.json(); throw new Error(d.message || "Registration failed"); }
51
+ const { user, token } = await res.json();
52
+ localStorage.setItem("access_token", token);
53
+ setUser(user);
54
+ }
55
+
56
+ async function logout() {
57
+ localStorage.removeItem("access_token");
58
+ setUser(null);
59
+ }
60
+
61
+ return (
62
+ <AuthContext.Provider value={{ user, loading, login, register, logout }}>
63
+ {children}
64
+ </AuthContext.Provider>
65
+ );
66
+ }
67
+
68
+ export function useAuth() {
69
+ const ctx = useContext(AuthContext);
70
+ if (!ctx) throw new Error("useAuth must be used inside <AuthProvider>");
71
+ return ctx;
72
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": "vite-express-tauri",
4
+ "files": [
5
+ { "source": "files/src/pages/auth/LoginPage.tsx", "destination": "src/pages/auth/LoginPage.tsx" },
6
+ { "source": "files/src/pages/auth/RegisterPage.tsx", "destination": "src/pages/auth/RegisterPage.tsx" },
7
+ { "source": "files/src/pages/auth/ForgotPasswordPage.tsx", "destination": "src/pages/auth/ForgotPasswordPage.tsx" },
8
+ { "source": "files/src/pages/auth/ResetPasswordPage.tsx", "destination": "src/pages/auth/ResetPasswordPage.tsx" },
9
+ { "source": "files/src/components/auth/LoginForm.tsx", "destination": "src/components/auth/LoginForm.tsx" },
10
+ { "source": "files/src/components/auth/RegisterForm.tsx","destination": "src/components/auth/RegisterForm.tsx" },
11
+ { "source": "files/src/contexts/AuthContext.tsx", "destination": "src/contexts/AuthContext.tsx" },
12
+ { "source": "files/src/lib/authService.ts", "destination": "src/lib/authService.ts" },
13
+ { "source": "files/server/routes/auth.ts", "destination": "server/src/routes/auth.ts" },
14
+ { "source": "files/server/middleware/requireAuth.ts", "destination": "server/src/middleware/requireAuth.ts" },
15
+ { "source": "files/server/services/jwtService.ts", "destination": "server/src/services/jwtService.ts" }
16
+ ],
17
+ "injections": [
18
+ {
19
+ "file": "src/main.tsx",
20
+ "marker": "/* devkit:auth:routes */",
21
+ "importLine": "import { LoginPage } from './pages/auth/LoginPage';",
22
+ "routeLine": "<Route path=\"/auth/login\" element={<LoginPage />} />"
23
+ },
24
+ {
25
+ "file": "server/src/index.ts",
26
+ "marker": "/* devkit:auth:api */",
27
+ "importLine": "import authRouter from './routes/auth';",
28
+ "routeLine": "app.use('/api/auth', authRouter);"
29
+ }
30
+ ],
31
+ "dependencies": {
32
+ "frontend": ["js-cookie"],
33
+ "devFrontend": ["@types/js-cookie"],
34
+ "backend": ["jsonwebtoken", "bcryptjs", "nodemailer"],
35
+ "devBackend": ["@types/jsonwebtoken", "@types/bcryptjs", "@types/nodemailer"]
36
+ },
37
+ "envVars": [
38
+ "JWT_ACCESS_SECRET",
39
+ "JWT_REFRESH_SECRET",
40
+ "GOOGLE_CLIENT_ID",
41
+ "GOOGLE_CLIENT_SECRET",
42
+ "SMTP_HOST",
43
+ "SMTP_PORT",
44
+ "SMTP_USER",
45
+ "SMTP_PASSWORD"
46
+ ]
47
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "hero-section",
3
+ "displayName": "Hero Section",
4
+ "description": "Landing page hero banner with multiple design variants. Only the chosen variant is downloaded.",
5
+ "category": "marketing",
6
+ "icon": "layout",
7
+ "author": "Roboticela",
8
+ "license": "MIT",
9
+ "tags": ["hero", "landing", "marketing", "banner"],
10
+ "templates": ["nextjs-compact", "vite-express-tauri"],
11
+ "platforms": ["web"],
12
+ "hasVariants": true,
13
+ "variants": [
14
+ { "id": "centered", "label": "Centered", "description": "Classic centered heading + subheading + CTA buttons" },
15
+ { "id": "split-image", "label": "Split Image", "description": "Text on left, product screenshot on right" },
16
+ { "id": "gradient-mesh", "label": "Gradient Mesh", "description": "Animated CSS gradient mesh background" },
17
+ { "id": "minimal", "label": "Minimal", "description": "Typography-only, no background decorations" }
18
+ ],
19
+ "versions": {
20
+ "latest": "1.0.0",
21
+ "stable": "1.0.0",
22
+ "history": [
23
+ { "version": "1.0.0", "releaseDate": "2026-04-05", "breaking": false }
24
+ ]
25
+ },
26
+ "requiredConfig": ["site.name", "site.description"],
27
+ "optionalConfig": []
28
+ }
@@ -0,0 +1,97 @@
1
+ export function HeroSection({
2
+ headline = "Build faster. Ship smarter.",
3
+ subheadline = "The DevKit that turns your ideas into production-ready apps in minutes.",
4
+ primaryCta = { label: "Get started", href: "/auth/register" },
5
+ secondaryCta = { label: "View docs", href: "/docs" },
6
+ }: {
7
+ headline?: string;
8
+ subheadline?: string;
9
+ primaryCta?: { label: string; href: string };
10
+ secondaryCta?: { label: string; href: string };
11
+ }) {
12
+ return (
13
+ <section
14
+ style={{
15
+ display: "flex",
16
+ flexDirection: "column",
17
+ alignItems: "center",
18
+ textAlign: "center",
19
+ padding: "var(--space-24) var(--space-4)",
20
+ gap: "var(--space-6)",
21
+ background: "var(--color-bg)",
22
+ }}
23
+ >
24
+ <span
25
+ style={{
26
+ display: "inline-block",
27
+ padding: "var(--space-1) var(--space-3)",
28
+ borderRadius: "var(--radius-full)",
29
+ background: "var(--color-primary-subtle)",
30
+ color: "var(--color-primary)",
31
+ fontSize: "var(--text-sm)",
32
+ fontWeight: "var(--weight-medium)",
33
+ }}
34
+ >
35
+ Now in public beta
36
+ </span>
37
+
38
+ <h1
39
+ style={{
40
+ fontSize: "clamp(var(--text-4xl), 6vw, var(--text-6xl))",
41
+ fontWeight: "var(--weight-extrabold)",
42
+ fontFamily: "var(--font-display)",
43
+ color: "var(--color-text)",
44
+ lineHeight: "var(--leading-tight)",
45
+ maxWidth: "720px",
46
+ }}
47
+ >
48
+ {headline}
49
+ </h1>
50
+
51
+ <p
52
+ style={{
53
+ fontSize: "var(--text-xl)",
54
+ color: "var(--color-text-muted)",
55
+ maxWidth: "560px",
56
+ lineHeight: "var(--leading-relaxed)",
57
+ }}
58
+ >
59
+ {subheadline}
60
+ </p>
61
+
62
+ <div style={{ display: "flex", gap: "var(--space-4)", flexWrap: "wrap", justifyContent: "center" }}>
63
+ <a
64
+ href={primaryCta.href}
65
+ style={{
66
+ padding: "var(--space-3) var(--space-8)",
67
+ borderRadius: "var(--radius-md)",
68
+ background: "var(--color-primary)",
69
+ color: "var(--color-primary-text)",
70
+ fontSize: "var(--text-base)",
71
+ fontWeight: "var(--weight-semibold)",
72
+ textDecoration: "none",
73
+ transition: "background var(--transition-fast)",
74
+ }}
75
+ >
76
+ {primaryCta.label}
77
+ </a>
78
+ <a
79
+ href={secondaryCta.href}
80
+ style={{
81
+ padding: "var(--space-3) var(--space-8)",
82
+ borderRadius: "var(--radius-md)",
83
+ background: "transparent",
84
+ color: "var(--color-text)",
85
+ fontSize: "var(--text-base)",
86
+ fontWeight: "var(--weight-semibold)",
87
+ textDecoration: "none",
88
+ border: "1px solid var(--color-border)",
89
+ transition: "border-color var(--transition-fast)",
90
+ }}
91
+ >
92
+ {secondaryCta.label}
93
+ </a>
94
+ </div>
95
+ </section>
96
+ );
97
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": "nextjs-compact",
4
+ "variant": "centered",
5
+ "files": [
6
+ { "source": "files/components/hero/HeroSection.tsx", "destination": "components/hero/HeroSection.tsx" }
7
+ ],
8
+ "injections": [
9
+ {
10
+ "file": "app/page.tsx",
11
+ "marker": "/* devkit:hero-section */",
12
+ "importLine": "import { HeroSection } from '@/components/hero/HeroSection';",
13
+ "componentLine": "<HeroSection />"
14
+ }
15
+ ],
16
+ "dependencies": { "frontend": [], "devFrontend": [] }
17
+ }
@@ -0,0 +1,146 @@
1
+ "use client";
2
+
3
+ export function HeroSection({
4
+ headline = "Build faster. Ship smarter.",
5
+ subheadline = "The DevKit that turns your ideas into production-ready apps in minutes.",
6
+ primaryCta = { label: "Get started", href: "/auth/register" },
7
+ secondaryCta = { label: "View docs", href: "/docs" },
8
+ }: {
9
+ headline?: string;
10
+ subheadline?: string;
11
+ primaryCta?: { label: string; href: string };
12
+ secondaryCta?: { label: string; href: string };
13
+ }) {
14
+ return (
15
+ <section
16
+ style={{
17
+ position: "relative",
18
+ minHeight: "100vh",
19
+ display: "flex",
20
+ flexDirection: "column",
21
+ alignItems: "center",
22
+ justifyContent: "center",
23
+ textAlign: "center",
24
+ padding: "var(--space-20) var(--space-4)",
25
+ gap: "var(--space-6)",
26
+ overflow: "hidden",
27
+ background: "var(--color-bg)",
28
+ }}
29
+ >
30
+ {/* Animated gradient blobs */}
31
+ <div aria-hidden style={{ position: "absolute", inset: 0, zIndex: 0, overflow: "hidden" }}>
32
+ <div
33
+ style={{
34
+ position: "absolute",
35
+ top: "-20%",
36
+ left: "-10%",
37
+ width: "60%",
38
+ height: "60%",
39
+ borderRadius: "var(--radius-full)",
40
+ background: "var(--color-primary)",
41
+ opacity: 0.15,
42
+ filter: "blur(80px)",
43
+ animation: "drift1 12s ease-in-out infinite alternate",
44
+ }}
45
+ />
46
+ <div
47
+ style={{
48
+ position: "absolute",
49
+ bottom: "-20%",
50
+ right: "-10%",
51
+ width: "60%",
52
+ height: "60%",
53
+ borderRadius: "var(--radius-full)",
54
+ background: "var(--color-secondary)",
55
+ opacity: 0.12,
56
+ filter: "blur(80px)",
57
+ animation: "drift2 15s ease-in-out infinite alternate",
58
+ }}
59
+ />
60
+ </div>
61
+
62
+ <style>{`
63
+ @keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(5%,8%) scale(1.1); } }
64
+ @keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-5%,-8%) scale(1.15); } }
65
+ `}</style>
66
+
67
+ {/* Content */}
68
+ <span
69
+ style={{
70
+ position: "relative",
71
+ zIndex: 1,
72
+ display: "inline-block",
73
+ padding: "var(--space-1) var(--space-3)",
74
+ borderRadius: "var(--radius-full)",
75
+ background: "var(--color-primary-subtle)",
76
+ color: "var(--color-primary)",
77
+ fontSize: "var(--text-sm)",
78
+ fontWeight: "var(--weight-medium)",
79
+ }}
80
+ >
81
+ Now in public beta
82
+ </span>
83
+
84
+ <h1
85
+ style={{
86
+ position: "relative",
87
+ zIndex: 1,
88
+ fontSize: "clamp(var(--text-4xl), 6vw, var(--text-6xl))",
89
+ fontWeight: "var(--weight-extrabold)",
90
+ fontFamily: "var(--font-display)",
91
+ color: "var(--color-text)",
92
+ lineHeight: "var(--leading-tight)",
93
+ maxWidth: "720px",
94
+ }}
95
+ >
96
+ {headline}
97
+ </h1>
98
+
99
+ <p
100
+ style={{
101
+ position: "relative",
102
+ zIndex: 1,
103
+ fontSize: "var(--text-xl)",
104
+ color: "var(--color-text-muted)",
105
+ maxWidth: "560px",
106
+ lineHeight: "var(--leading-relaxed)",
107
+ }}
108
+ >
109
+ {subheadline}
110
+ </p>
111
+
112
+ <div style={{ position: "relative", zIndex: 1, display: "flex", gap: "var(--space-4)", flexWrap: "wrap", justifyContent: "center" }}>
113
+ <a
114
+ href={primaryCta.href}
115
+ style={{
116
+ padding: "var(--space-3) var(--space-8)",
117
+ borderRadius: "var(--radius-md)",
118
+ background: "var(--color-primary)",
119
+ color: "var(--color-primary-text)",
120
+ fontWeight: "var(--weight-semibold)",
121
+ textDecoration: "none",
122
+ fontSize: "var(--text-base)",
123
+ }}
124
+ >
125
+ {primaryCta.label}
126
+ </a>
127
+ <a
128
+ href={secondaryCta.href}
129
+ style={{
130
+ padding: "var(--space-3) var(--space-8)",
131
+ borderRadius: "var(--radius-md)",
132
+ background: "rgba(255,255,255,0.1)",
133
+ backdropFilter: "blur(8px)",
134
+ color: "var(--color-text)",
135
+ fontWeight: "var(--weight-semibold)",
136
+ textDecoration: "none",
137
+ border: "1px solid var(--color-border)",
138
+ fontSize: "var(--text-base)",
139
+ }}
140
+ >
141
+ {secondaryCta.label}
142
+ </a>
143
+ </div>
144
+ </section>
145
+ );
146
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": "nextjs-compact",
4
+ "variant": "gradient-mesh",
5
+ "files": [
6
+ { "source": "files/components/hero/HeroSection.tsx", "destination": "components/hero/HeroSection.tsx" }
7
+ ],
8
+ "injections": [
9
+ {
10
+ "file": "app/page.tsx",
11
+ "marker": "/* devkit:hero-section */",
12
+ "importLine": "import { HeroSection } from '@/components/hero/HeroSection';",
13
+ "componentLine": "<HeroSection />"
14
+ }
15
+ ],
16
+ "dependencies": { "frontend": [], "devFrontend": [] }
17
+ }
@@ -0,0 +1,110 @@
1
+ import Image from "next/image";
2
+
3
+ export function HeroSection({
4
+ headline = "Build faster. Ship smarter.",
5
+ subheadline = "The DevKit that turns your ideas into production-ready apps in minutes.",
6
+ primaryCta = { label: "Get started", href: "/auth/register" },
7
+ secondaryCta = { label: "View docs", href: "/docs" },
8
+ imageSrc = "/hero-screenshot.png",
9
+ imageAlt = "App screenshot",
10
+ }: {
11
+ headline?: string;
12
+ subheadline?: string;
13
+ primaryCta?: { label: string; href: string };
14
+ secondaryCta?: { label: string; href: string };
15
+ imageSrc?: string;
16
+ imageAlt?: string;
17
+ }) {
18
+ return (
19
+ <section
20
+ style={{
21
+ display: "grid",
22
+ gridTemplateColumns: "1fr 1fr",
23
+ gap: "var(--space-16)",
24
+ alignItems: "center",
25
+ padding: "var(--space-20) var(--space-8)",
26
+ maxWidth: "1280px",
27
+ margin: "0 auto",
28
+ background: "var(--color-bg)",
29
+ }}
30
+ >
31
+ {/* Left — Text */}
32
+ <div style={{ display: "flex", flexDirection: "column", gap: "var(--space-6)" }}>
33
+ <span
34
+ style={{
35
+ display: "inline-block",
36
+ padding: "var(--space-1) var(--space-3)",
37
+ borderRadius: "var(--radius-full)",
38
+ background: "var(--color-primary-subtle)",
39
+ color: "var(--color-primary)",
40
+ fontSize: "var(--text-sm)",
41
+ fontWeight: "var(--weight-medium)",
42
+ width: "fit-content",
43
+ }}
44
+ >
45
+ Now in public beta
46
+ </span>
47
+
48
+ <h1
49
+ style={{
50
+ fontSize: "clamp(var(--text-3xl), 4vw, var(--text-5xl))",
51
+ fontWeight: "var(--weight-extrabold)",
52
+ fontFamily: "var(--font-display)",
53
+ color: "var(--color-text)",
54
+ lineHeight: "var(--leading-tight)",
55
+ }}
56
+ >
57
+ {headline}
58
+ </h1>
59
+
60
+ <p style={{ fontSize: "var(--text-lg)", color: "var(--color-text-muted)", lineHeight: "var(--leading-relaxed)" }}>
61
+ {subheadline}
62
+ </p>
63
+
64
+ <div style={{ display: "flex", gap: "var(--space-4)" }}>
65
+ <a
66
+ href={primaryCta.href}
67
+ style={{
68
+ padding: "var(--space-3) var(--space-6)",
69
+ borderRadius: "var(--radius-md)",
70
+ background: "var(--color-primary)",
71
+ color: "var(--color-primary-text)",
72
+ fontWeight: "var(--weight-semibold)",
73
+ textDecoration: "none",
74
+ fontSize: "var(--text-base)",
75
+ }}
76
+ >
77
+ {primaryCta.label}
78
+ </a>
79
+ <a
80
+ href={secondaryCta.href}
81
+ style={{
82
+ padding: "var(--space-3) var(--space-6)",
83
+ borderRadius: "var(--radius-md)",
84
+ background: "transparent",
85
+ color: "var(--color-text)",
86
+ fontWeight: "var(--weight-semibold)",
87
+ textDecoration: "none",
88
+ border: "1px solid var(--color-border)",
89
+ fontSize: "var(--text-base)",
90
+ }}
91
+ >
92
+ {secondaryCta.label}
93
+ </a>
94
+ </div>
95
+ </div>
96
+
97
+ {/* Right — Image */}
98
+ <div
99
+ style={{
100
+ borderRadius: "var(--radius-xl)",
101
+ overflow: "hidden",
102
+ border: "1px solid var(--color-border)",
103
+ boxShadow: "var(--shadow-xl)",
104
+ }}
105
+ >
106
+ <Image src={imageSrc} alt={imageAlt} width={720} height={480} style={{ width: "100%", height: "auto", display: "block" }} />
107
+ </div>
108
+ </section>
109
+ );
110
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "template": "nextjs-compact",
4
+ "variant": "split-image",
5
+ "files": [
6
+ { "source": "files/components/hero/HeroSection.tsx", "destination": "components/hero/HeroSection.tsx" }
7
+ ],
8
+ "injections": [
9
+ {
10
+ "file": "app/page.tsx",
11
+ "marker": "/* devkit:hero-section */",
12
+ "importLine": "import { HeroSection } from '@/components/hero/HeroSection';",
13
+ "componentLine": "<HeroSection />"
14
+ }
15
+ ],
16
+ "dependencies": { "frontend": [], "devFrontend": [] }
17
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "version": "1",
3
+ "updatedAt": "2026-04-05T00:00:00Z",
4
+ "components": [
5
+ {
6
+ "name": "auth",
7
+ "displayName": "Authentication",
8
+ "description": "Complete authentication system: email/password login, registration, email verification, forgot/reset password, and Google OAuth.",
9
+ "category": "authentication",
10
+ "icon": "lock",
11
+ "templates": ["nextjs-compact", "vite-express-tauri"],
12
+ "platforms": ["web", "desktop"],
13
+ "hasVariants": false,
14
+ "latestVersion": "1.0.0",
15
+ "tags": ["auth", "login", "register", "oauth", "jwt", "email"]
16
+ },
17
+ {
18
+ "name": "hero-section",
19
+ "displayName": "Hero Section",
20
+ "description": "Landing page hero banner with 4 design variants: centered, split-image, gradient-mesh, and minimal.",
21
+ "category": "marketing",
22
+ "icon": "layout",
23
+ "templates": ["nextjs-compact", "vite-express-tauri"],
24
+ "platforms": ["web"],
25
+ "hasVariants": true,
26
+ "variants": ["centered", "split-image", "gradient-mesh", "minimal"],
27
+ "latestVersion": "1.0.0",
28
+ "tags": ["hero", "landing", "marketing", "banner"]
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://raw.githubusercontent.com/Roboticela/DevKit/main/cli/schemas/devkit-config.json",
4
+ "title": "DevKit project configuration",
5
+ "type": "object",
6
+ "required": ["devkit", "template", "site"],
7
+ "additionalProperties": true,
8
+ "properties": {
9
+ "$schema": { "type": "string", "format": "uri" },
10
+ "devkit": { "type": "string", "description": "DevKit config format version" },
11
+ "template": {
12
+ "type": "string",
13
+ "enum": ["nextjs-compact", "vite-express-tauri"],
14
+ "description": "Project template this repo was scaffolded from"
15
+ },
16
+ "site": {
17
+ "type": "object",
18
+ "required": ["name", "url"],
19
+ "properties": {
20
+ "name": { "type": "string" },
21
+ "url": { "type": "string", "format": "uri" },
22
+ "icon": { "type": "string" },
23
+ "description": { "type": "string" }
24
+ },
25
+ "additionalProperties": true
26
+ },
27
+ "theme": {
28
+ "type": "object",
29
+ "additionalProperties": true,
30
+ "properties": {
31
+ "preset": { "type": "string" },
32
+ "colors": {
33
+ "type": "object",
34
+ "properties": {
35
+ "primary": { "type": "string" },
36
+ "secondary": { "type": "string" }
37
+ },
38
+ "additionalProperties": true
39
+ },
40
+ "fonts": {
41
+ "type": "object",
42
+ "properties": {
43
+ "sans": { "type": "string" },
44
+ "mono": { "type": "string" },
45
+ "display": { "type": "string" }
46
+ },
47
+ "additionalProperties": true
48
+ },
49
+ "radius": { "type": "string" },
50
+ "darkMode": { "type": "boolean" },
51
+ "darkModeStrategy": { "type": "string", "enum": ["class", "media"] }
52
+ }
53
+ },
54
+ "auth": { "type": "object", "additionalProperties": true },
55
+ "subscriptions": { "type": "object", "additionalProperties": true },
56
+ "storage": { "type": "object", "additionalProperties": true },
57
+ "database": {
58
+ "type": "object",
59
+ "properties": { "url": { "type": "string" } },
60
+ "additionalProperties": true
61
+ }
62
+ }
63
+ }