Create a golden path portal for developers with templates and scaffolds.
- User
Create a golden path portal for developers with templates and scaffolds.
Assistant
Create a golden path portal for developers with templates and scaffolds.
The user wants a "golden path portal" for developers - this is essentially a developer portal/internal developer platform that provides templates and scaffolds to help developers quickly start new projects following best practices (the "golden path").
This should be a single HTML file that looks professional and modern. Let me think about what features to include:
For the design:
Let me create this with:
Dynamic elements I'll include:
Let me build this:
This is a developer portal featuring:
The design uses a dark theme with gold/amber accents to reflect the "Golden Path" concept, providing clear visual hierarchy and professional aesthetics.
The portal uses a dark theme with gold/amber accents to reinforce the "Golden Path" concept, providing a professional and modern look suitable for enterprise developer portals.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Golden Path Portal | Developer Templates</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-primary: #08080c;
--bg-secondary: #0f0f14;
--bg-card: #14141a;
--bg-card-hover: #1a1a22;
--gold-primary: #f59e0b;
--gold-secondary: #d97706;
--gold-light: #fbbf24;
--text-primary: #f5f5f5;
--text-secondary: #9ca3af;
--text-muted: #6b7280;
--border-color: #2a2a35;
--success: #10b981;
--info: #3b82f6;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
/* Particle Canvas */
#particleCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
/* Navigation */
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
background: rgba(8, 8, 12, 0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border-color);
transition: all 0.3s ease;
}
.nav-container {
max-width: 1400px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
font-size: 1.25rem;
color: var(--gold-primary);
}
.logo-icon {
width: 36px;
height: 36px;
background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
color: var(--bg-primary);
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-links a {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
position: relative;
}
.nav-links a:hover {
color: var(--gold-primary);
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background: var(--gold-primary);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
/* Hero Section */
.hero {
position: relative;
z-index: 1;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 8rem 2rem 4rem;
}
.hero-content {
text-align: center;
max-width: 900px;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgba(245, 158, 11, 0.1);
border: 1px solid rgba(245, 158, 11, 0.3);
padding: 0.5rem 1rem;
border-radius: 50px;
font-size: 0.875rem;
color: var(--gold-primary);
margin-bottom: 2rem;
animation: fadeInUp 0.6s ease forwards;
}
.hero-badge::before {
content: '';
width: 8px;
height: 8px;
background: var(--gold-primary);
border-radius: 50%;
animation: pulse 2s infinite;
}
.hero h1 {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 700;
line-height: 1.1;
margin-bottom: 1.5rem;
background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: fadeInUp 0.6s ease 0.1s forwards;
opacity: 0;
}
.hero p {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 2.5rem;
animation: fadeInUp 0.6s ease 0.2s forwards;
opacity: 0;
}
.hero-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
animation: fadeInUp 0.6s ease 0.3s forwards;
opacity: 0;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.875rem 1.75rem;
border-radius: 8px;
font-weight: 600;
font-size: 1rem;
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
border: none;
}
.btn-primary {
background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
color: var(--bg-primary);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}
.btn-secondary {
background: transparent;
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
border-color: var(--gold-primary);
color: var(--gold-primary);
}
/* Stats Section */
.stats {
position: relative;
z-index: 1;
padding: 4rem 2rem;
background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.02));
}
.stats-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}
.stat-item {
text-align: center;
padding: 2rem;
background: var(--bg-card);
border-radius: 12px;
border: 1px solid var(--border-color);
transition: all 0.3s ease;
}
.stat-item:hover {
transform: translateY(-4px);
border-color: rgba(245, 158, 11, 0.3);
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--gold-primary);
margin-bottom: 0.5rem;
}
.stat-label {
color: var(--text-secondary);
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Templates Section */
.templates {
position: relative;
z-index: 1;
padding: 6rem 2rem;
}
.section-container {
max-width: 1400px;
margin: 0 auto;
}
.section-header {
text-align: center;
margin-bottom: 3rem;
}
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.section-header p {
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto;
}
/* Search and Filter */
.search-filter {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.search-box {
flex: 1;
min-width: 250px;
position: relative;
}
.search-box input {
width: 100%;
padding: 0.875rem 1rem 0.875rem 3rem;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-primary);
font-size: 1rem;
transition: all 0.3s ease;
}
.search-box input:focus {
outline: none;
border-color: var(--gold-primary);
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.search-box::before {
content: '🔍';
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
font-size: 1rem;
opacity: 0.5;
}
.filter-tabs {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.filter-tab {
padding: 0.75rem 1.25rem;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.875rem;
}
.filter-tab:hover,
.filter-tab.active {
border-color: var(--gold-primary);
color: var(--gold-primary);
background: rgba(245, 158, 11, 0.1);
}
/* Template Grid */
.template-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
.template-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 1.5rem;
cursor: pointer;
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}
.template-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
transform: scaleX(0);
transition: transform 0.3s ease;
}
.template-card:hover {
transform: translateY(-6px);
border-color: rgba(245, 158, 11, 0.3);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.template-card:hover::before {
transform: scaleX(1);
}
.template-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
margin-bottom: 1rem;
}
.template-card h3 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.template-card p {
color: var(--text-secondary);
font-size: 0.875rem;
margin-bottom: 1rem;
}
.template-tags {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 1rem;
}
.template-tag {
padding: 0.25rem 0.75rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 50px;
font-size: 0.75rem;
color: var(--text-muted);
}
.template-meta {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
}
.template-time {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--text-muted);
}
.template-usage {
font-size: 0.875rem;
color: var(--gold-primary);
}
/* Quick Start Section */
.quickstart {
position: relative;
z-index: 1;
padding: 6rem 2rem;
background: var(--bg-secondary);
}
.quickstart-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 3rem;
align-items: center;
}
.quickstart-text h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.quickstart-text p {
color: var(--text-secondary);
margin-bottom: 2rem;
}
.steps {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.step {
display: flex;
gap: 1rem;
align-items: flex-start;
}
.step-number {
width: 32px;
height: 32px;
background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: var(--bg-primary);
flex-shrink: 0;
}
.step-content h4 {
margin-bottom: 0.25rem;
}
.step-content p {
color: var(--text-secondary);
font-size: 0.875rem;
margin: 0;
}
.quickstart-code {
background: var(--bg-card);
border-radius: 16px;
border: 1px solid var(--border-color);
overflow: hidden;
}
.code-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
background: rgba(0, 0, 0, 0.3);
border-bottom: 1px solid var(--border-color);
}
.code-dots {
display: flex;
gap: 0.5rem;
}
.code-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.code-dot:nth-child(1) { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27ca40; }
.copy-btn {
padding: 0.5rem 1rem;
background: transparent;
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.875rem;
}
.copy-btn:hover {
border-color: var(--gold-primary);
color: var(--gold-primary);
}
.copy-btn.copied {
border-color: var(--success);
color: var(--success);
}
.code-block {
padding: 1.5rem;
font-family: 'JetBrains Mono', monospace;
font-size: 0.875rem;
line-height: 1.8;
overflow-x: auto;
}
.code-block .comment {
color: var(--text-muted);
}
.code-block .command {
color: var(--gold-primary);
}
.code-block .string {
color: var(--success);
}
/* Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(8px);
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
.modal {
background: var(--bg-card);
border-radius: 20px;
border: 1px solid var(--border-color);
max-width: 700px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
transform: scale(0.9) translateY(20px);
transition: transform 0.3s ease;
}
.modal-overlay.active .modal {
transform: scale(1) translateY(0);
}
.modal-header {
padding: 1.5rem 2rem;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-title {
display: flex;
align-items: center;
gap: 1rem;
}
.modal-title h3 {
font-size: 1.5rem;
}
.modal-close {
width: 40px;
height: 40px;
background: transparent;
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-secondary);
cursor: pointer;
font-size: 1.25rem;
transition: all 0.3s ease;
}
.modal-close:hover {
border-color: #ef4444;
color: #ef4444;
}
.modal-body {
padding: 2rem;
}
.modal-section {
margin-bottom: 2rem;
}
.modal-section:last-child {
margin-bottom: 0;
}
.modal-section h4 {
color: var(--gold-primary);
margin-bottom: 1rem;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.modal-section p {
color: var(--text-secondary);
}
.feature-list {
list-style: none;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 0.75rem;
}
.feature-list li {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-secondary);
}
.feature-list li::before {
content: '✓';
color: var(--success);
font-weight: 700;
}
.modal-code {
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
padding: 1rem;
font-family: 'JetBrains Mono', monospace;
font-size: 0.875rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
.modal-code code {
color: var(--gold-primary);
}
.modal-actions {
padding: 1.5rem 2rem;
border-top: 1px solid var(--border-color);
display: flex;
gap: 1rem;
justify-content: flex-end;
}
/* Footer */
footer {
position: relative;
z-index: 1;
padding: 4rem 2rem;
border-top: 1px solid var(--border-color);
text-align: center;
}
footer p {
color: var(--text-muted);
font-size: 0.875rem;
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.scroll-reveal {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease;
}
.scroll-reveal.revealed {
opacity: 1;
transform: translateY(0);
}
/* Responsive */
@media (max-width: 768px) {
.nav-links {
display: none;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1rem;
}
.template-grid {
grid-template-columns: 1fr;
}
.search-filter {
flex-direction: column;
}
.quickstart-content {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<canvas id="particleCanvas"></canvas>
<!-- Navigation -->
<nav>
<div class="nav-container">
<div class="logo">
<div class="logo-icon">⬡</div>
Golden Path
</div>
<ul class="nav-links">
<li><a href="#templates">Templates</a></li>
<li><a href="#quickstart">Quick Start</a></li>
<li><a href="#docs">Documentation</a></li>
<li><a href="#support">Support</a></li>
</ul>
</div>
</nav>
<!-- Hero Section -->
<section class="hero">
<div class="hero-content">
<div class="hero-badge">Platform Engineering</div>
<h1>Your Golden Path to Production</h1>
<p>Self-service templates and scaffolds that embody our best practices. Ship faster with confidence using pre-approved, production-ready patterns.</p>
<div class="hero-actions">
<a href="#templates" class="btn btn-primary">
Browse Templates
<span>→</span>
</a>
<a href="#quickstart" class="btn btn-secondary">
Quick Start Guide
</a>
</div>
</div>
</section>
<!-- Stats Section -->
<section class="stats">
<div class="stats-container">
<div class="stat-item scroll-reveal">
<div class="stat-number" data-target="24">0</div>
<div class="stat-label">Templates Available</div>
</div>
<div class="stat-item scroll-reveal">
<div class="stat-number" data-target="1847">0</div>
<div class="stat-label">Projects Created</div>
</div>
<div class="stat-item scroll-reveal">
<div class="stat-number" data-target="15">0</div>
<div class="stat-label">Minutes to Deploy</div>
</div>
<div class="stat-item scroll-reveal">
<div class="stat-number" data-target="99">0</div>
<div class="stat-label">% Success Rate</div>
</div>
</div>
</section>
<!-- Templates Section -->
<section class="templates" id="templates">
<div class="section-container">
<div class="section-header scroll-reveal">
<h2>Service Templates</h2>
<p>Choose from our curated collection of production-ready templates. Each template follows our golden path standards.</p>
</div>
<div class="search-filter scroll-reveal">
<div class="search-box">
<input type="text" id="searchInput" placeholder="Search templates...">
</div>
<div class="filter-tabs">
<button class="filter-tab active" data-filter="all">All</button>
<button class="filter-tab" data-filter="backend">Backend</button>
<button class="filter-tab" data-filter="frontend">Frontend</button>
<button class="filter-tab" data-filter="infrastructure">Infrastructure</button>
<button class="filter-tab" data-filter="data">Data</button>
</div>
</div>
<div class="template-grid" id="templateGrid">
<!-- Templates will be rendered here -->
</div>
</div>
</section>
<!-- Quick Start Section -->
<section class="quickstart" id="quickstart">
<div class="section-container">
<div class="quickstart-content">
<div class="quickstart-text scroll-reveal">
<h2>Get Started in Minutes</h2>
<p>Our CLI tool scaffolds your project with all the best practices built-in. No manual setup required.</p>
<div class="steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h4>Install the CLI</h4>
<p>One-line installation via npm, brew, or curl</p>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h4>Choose Your Template</h4>
<p>Browse and select from our golden path templates</p>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h4>Configure & Generate</h4>
<p>Answer a few questions and let the scaffolder work</p>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<h4>Deploy to Production</h4>
<p>CI/CD pipelines are pre-configured and ready</p>
</div>
</div>
</div>
</div>
<div class="quickstart-code scroll-reveal">
<div class="code-header">
<div class="code-dots">
<span class="code-dot"></span>
<span class="code-dot"></span>
<span class="code-dot"></span>
</div>
<button class="copy-btn" data-code="install">Copy</button>
</div>
<div class="code-block">
<div><span class="comment"># Install the Golden Path CLI</span></div>
<div><span class="command">npm</span> install -g @goldenpath/cli</div>
<br>
<div><span class="comment"># Initialize a new project</span></div>
<div><span class="command">gp</span> init <span class="string">"my-service"</span></div>
<br>
<div><span class="comment"># Select template and configure</span></div>
<div><span class="command">gp</span> scaffold --template=<span class="string">"node-api"</span></div>
<br>
<div><span class="comment"># Deploy to production</span></div>
<div><span class="command">gp</span> deploy --env=<span class="string">"production"</span></div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<p>Built with care by the Platform Engineering Team. Your success is our priority.</p>
</footer>
<!-- Modal -->
<div class="modal-overlay" id="modalOverlay">
<div class="modal">
<div class="modal-header">
<div class="modal-title">
<div class="template-icon" id="modalIcon"></div>
<h3 id="modalTitle"></h3>
</div>
<button class="modal-close" id="modalClose">×</button>
</div>
<div class="modal-body">
<div class="modal-section">
<h4>Description</h4>
<p id="modalDescription"></p>
</div>
<div class="modal-section">
<h4>Features Included</h4>
<ul class="feature-list" id="modalFeatures"></ul>
</div>
<div class="modal-section">
<h4>Quick Start Command</h4>
<div class="modal-code">
<code id="modalCommand"></code>
<button class="copy-btn" id="modalCopyBtn">Copy</button>
</div>
</div>
</div>
<div class="modal-actions">
<button class="btn btn-secondary" id="modalCancel">Cancel</button>
<button class="btn btn-primary" id="modalCreate">Create Project</button>
</div>
</div>
</div>
<script>
// Template Data
const templates = [
{
id: 'node-api',
name: 'Node.js API Service',
description: 'Production-ready REST API with Express, TypeScript, and comprehensive middleware setup.',
category: 'backend',
icon: '⚡',
color: '#68a063',
tags: ['TypeScript', 'Express', 'REST'],
time: '~5 min',
usage: '847 uses',
features: [
'TypeScript configuration',
'Express.js with security middleware',
'Jest testing setup',
'Docker & Kubernetes configs',
'OpenAPI documentation',
'Structured logging',
'Health check endpoints',
'CI/CD pipelines'
],
command: 'gp init my-api --template=node-api'
},
{
id: 'react-spa',
name: 'React SPA',
description: 'Modern single-page application with React 18, Vite, and state management.',
category: 'frontend',
icon: '⚛️',
color: '#61dafb',
tags: ['React', 'Vite', 'TypeScript'],
time: '~4 min',
usage: '623 uses',
features: [
'React 18 with hooks',
'Vite build tooling',
'React Router setup',
'State management (Zustand)',
'Tailwind CSS',
'Vitest + Testing Library',
'ESLint + Prettier',
'Bundle analysis'
],
command: 'gp init my-app --template=react-spa'
},
{
id: 'python-service',
name: 'Python Microservice',
description: 'FastAPI-based microservice with async support and automatic documentation.',
category: 'backend',
icon: '🐍',
color: '#3776ab',
tags: ['Python', 'FastAPI', 'Async'],
time: '~5 min',
usage: '412 uses',
features: [
'FastAPI framework',
'Pydantic models',
'Async database support',
'Automatic OpenAPI docs',
'Docker containerization',
'Poetry dependency management',
'Pytest configuration',
'Pre-commit hooks'
],
command: 'gp init my-service --template=python-service'
},
{
id: 'terraform-module',
name: 'Terraform Module',
description: 'Reusable Terraform module with testing and documentation scaffolding.',
category: 'infrastructure',
icon: '🏗️',
color: '#7b42bc',
tags: ['Terraform', 'IaC', 'AWS'],
time: '~3 min',
usage: '234 uses',
features: [
'Module structure',
'Terratest setup',
'README documentation',
'Variable validation',
'Output definitions',
'CI/CD for IaC',
'Security scanning',
'Cost estimation'
],
command: 'gp init my-module --template=terraform-module'
},
{
id: 'kafka-consumer',
name: 'Kafka Consumer Service',
description: 'Event-driven consumer service with exactly-once processing guarantees.',
category: 'backend',
icon: '📨',
color: '#231f20',
tags: ['Kafka', 'Events', 'Node.js'],
time: '~6 min',
usage: '189 uses',
features: [
'Kafka consumer setup',
'Dead letter queue',
'Retry logic',
'Metrics & monitoring',
'Graceful shutdown',
'Schema registry',
'Exactly-once processing',
'Health checks'
],
command: 'gp init my-consumer --template=kafka-consumer'
},
{
id: 'data-pipeline',
name: 'Data Pipeline',
description: 'Spark-based data processing pipeline with scheduling and monitoring.',
category: 'data',
icon: '📊',
color: '#e25a1c',
tags: ['Spark', 'ETL', 'Python'],
time: '~7 min',
usage: '156 uses',
features: [
'PySpark setup',
'Airflow DAGs',
'Data validation',
'Great Expectations',
'S3/GCS integration',
'Monitoring dashboards',
'Data lineage tracking',
'Error handling'
],
command: 'gp init my-pipeline --template=data-pipeline'
},
{
id: 'vue-dashboard',
name: 'Vue Dashboard',
description: 'Admin dashboard with Vue 3, composition API, and chart components.',
category: 'frontend',
icon: '💚',
color: '#42b883',
tags: ['Vue', 'Dashboard', 'Charts'],
time: '~4 min',
usage: '298 uses',
features: [
'Vue 3 composition API',
'Pinia state management',
'Chart.js integration',
'Responsive layout',
'Dark mode support',
'Authentication ready',
'Component library',
'E2E testing'
],
command: 'gp init my-dashboard --template=vue-dashboard'
},
{
id: 'graphql-service',
name: 'GraphQL Service',
description: 'Apollo GraphQL server with federation support and subscription handling.',
category: 'backend',
icon: '◈',
color: '#e535ab',
tags: ['GraphQL', 'Apollo', 'Node.js'],
time: '~6 min',
usage: '267 uses',
features: [
'Apollo Server 4',
'Federation 2 support',
'Subscriptions setup',
'DataLoader batching',
'Authentication directives',
'Query complexity analysis',
'Playground IDE',
'Schema stitching'
],
command: 'gp init my-graphql --template=graphql-service'
},
{
id: 'lambda-function',
name: 'Lambda Function',
description: 'Serverless function with local testing and deployment automation.',
category: 'infrastructure',
icon: 'λ',
color: '#ff9900',
tags: ['Lambda', 'Serverless', 'AWS'],
time: '~3 min',
usage: '534 uses',
features: [
'SAM template',
'Local testing',
'Multiple runtimes',
'X-Ray tracing',
'Secrets management',
'API Gateway integration',
'Dead letter config',
'Provisioned concurrency'
],
command: 'gp init my-function --template=lambda-function'
}
];
// Particle System
const canvas = document.getElementById('particleCanvas');
const ctx = canvas.getContext('2d');
let particles = [];
let mouseX = 0;
let mouseY = 0;
function resizeCanvas() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
}
class Particle {
constructor() {
this.reset();
}
reset() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.size = Math.random() * 3 + 1;
this.speedX = (Math.random() - 0.5) * 0.5;
this.speedY = (Math.random() - 0.5) * 0.5;
this.opacity = Math.random() * 0.5 + 0.1;
this.hue = Math.random() * 30 + 35; // Gold range
}
update() {
this.x += this.speedX;
this.y += this.speedY;
// Mouse interaction
const dx = mouseX - this.x;
const dy = mouseY - this.y;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < 150) {
const force = (150 - dist) / 150;
this.x -= dx * force * 0.02;
this.y -= dy * force * 0.02;
}
// Wrap around
if (this.x < 0) this.x = canvas.width;
if (this.x > canvas.width) this.x = 0;
if (this.y < 0) this.y = canvas.height;
if (this.y > canvas.height) this.y = 0;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
ctx.fillStyle = `hsla(${this.hue}, 90%, 55%, ${this.opacity})`;
ctx.fill();
// Glow effect
ctx.beginPath();
ctx.arc(this.x, this.y, this.size * 2, 0, Math.PI * 2);
ctx.fillStyle = `hsla(${this.hue}, 90%, 55%, ${this.opacity * 0.3})`;
ctx.fill();
}
}
function initParticles() {
particles = [];
const count = Math.min(80, Math.floor((canvas.width * canvas.height) / 15000));
for (let i = 0; i < count; i++) {
particles.push(new Particle());
}
}
function drawConnections() {
for (let i = 0; i < particles.length; i++) {
for (let j = i + 1; j < particles.length; j++) {
const dx = particles[i].x - particles[j].x;
const dy = particles[i].y - particles[j].y;
const dist = Math.sqrt(dx * dx + dy * dy);
if (dist < 120) {
ctx.beginPath();
ctx.moveTo(particles[i].x, particles[i].y);
ctx.lineTo(particles[j].x, particles[j].y);
ctx.strokeStyle = `rgba(245, 158, 11, ${0.1 * (1 - dist / 120)})`;
ctx.lineWidth = 0.5;
ctx.stroke();
}
}
}
}
function animateParticles() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
drawConnections();
particles.forEach(p => {
p.update();
p.draw();
});
requestAnimationFrame(animateParticles);
}
// Mouse tracking
document.addEventListener('mousemove', (e) => {
mouseX = e.clientX;
mouseY = e.clientY;
});
window.addEventListener('resize', () => {
resizeCanvas();
initParticles();
});
resizeCanvas();
initParticles();
animateParticles();
// Render Templates
function renderTemplates(filter = 'all', search = '') {
const grid = document.getElementById('templateGrid');
grid.innerHTML = '';
const filtered = templates.filter(t => {
const matchesFilter = filter === 'all' || t.category === filter;
const matchesSearch = t.name.toLowerCase().includes(search.toLowerCase()) ||
t.tags.some(tag => tag.toLowerCase().includes(search.toLowerCase()));
return matchesFilter && matchesSearch;
});
filtered.forEach((template, index) => {
const card = document.createElement('div');
card.className = 'template-card scroll-reveal';
card.style.transitionDelay = `${index * 0.05}s`;
card.innerHTML = `
<div class="template-icon" style="background: ${template.color}20; color: ${template.color}">
${template.icon}
</div>
<h3>${template.name}</h3>
<p>${template.description}</p>
<div class="template-tags">
${template.tags.map(tag => `<span class="template-tag">${tag}</span>`).join('')}
</div>
<div class="template-meta">
<span class="template-time">⏱️ ${template.time}</span>
<span class="template-usage">${template.usage}</span>
</div>
`;
card.addEventListener('click', () => openModal(template));
grid.appendChild(card);
});
// Trigger scroll reveal for new cards
setTimeout(() => {
document.querySelectorAll('.template-card').forEach(card => {
card.classList.add('revealed');
});
}, 100);
}
// Filter Tabs
document.querySelectorAll('.filter-tab').forEach(tab => {
tab.addEventListener('click', () => {
document.querySelectorAll('.filter-tab').forEach(t => t.classList.remove('active'));
tab.classList.add('active');
const filter = tab.dataset.filter;
const search = document.getElementById('searchInput').value;
renderTemplates(filter, search);
});
});
// Search
document.getElementById('searchInput').addEventListener('input', (e) => {
const filter = document.querySelector('.filter-tab.active').dataset.filter;
renderTemplates(filter, e.target.value);
});
// Modal
function openModal(template) {
const overlay = document.getElementById('modalOverlay');
document.getElementById('modalIcon').innerHTML = template.icon;
document.getElementById('modalIcon').style.background = `${template.color}20`;
document.getElementById('modalIcon').style.color = template.color;
document.getElementById('modalTitle').textContent = template.name;
document.getElementById('modalDescription').textContent = template.description;
document.getElementById('modalFeatures').innerHTML = template.features.map(f => `<li>${f}</li>`).join('');
document.getElementById('modalCommand').textContent = template.command;
overlay.classList.add('active');
}
function closeModal() {
document.getElementById('modalOverlay').classList.remove('active');
}
document.getElementById('modalClose').addEventListener('click', closeModal);
document.getElementById('modalCancel').addEventListener('click', closeModal);
document.getElementById('modalOverlay').addEventListener('click', (e) => {
if (e.target === e.currentTarget) closeModal();
});
// Copy buttons
document.querySelectorAll('.copy-btn').forEach(btn => {
btn.addEventListener('click', async (e) => {
e.stopPropagation();
const text = btn.id === 'modalCopyBtn'
? document.getElementById('modalCommand').textContent
: 'npm install -g @goldenpath/cli && gp init my-project';
await navigator.clipboard.writeText(text);
btn.textContent = 'Copied!';
btn.classList.add('copied');
setTimeout(() => {
btn.textContent = 'Copy';
btn.classList.remove('copied');
}, 2000);
});
});
// Scroll Reveal
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('revealed');
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.scroll-reveal').forEach(el => observer.observe(el));
// Stats Counter Animation
function animateCounters() {
document.querySelectorAll('.stat-number').forEach(counter => {
const target = parseInt(counter.dataset.target);
const duration = 2000;
const start = performance.now();
function update(currentTime) {
const elapsed = currentTime - start;
const progress = Math.min(elapsed / duration, 1);
const easeOut = 1 - Math.pow(1 - progress, 3);
counter.textContent = Math.floor(target * easeOut).toLocaleString();
if (progress < 1) {
requestAnimationFrame(update);
} else {
counter.textContent = target.toLocaleString();
}
}
requestAnimationFrame(update);
});
}
// Observe stats section
const statsObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
animateCounters();
statsObserver.disconnect();
}
});
}, { threshold: 0.5 });
document.querySelector('.stats').querySelectorAll('.stat-item').forEach(el => {
statsObserver.observe(el);
});
// Initialize
renderTemplates();
// Create project button
document.getElementById('modalCreate').addEventListener('click', () => {
const command = document.getElementById('modalCommand').textContent;
alert(`Run this command in your terminal:\n\n${command}`);
closeModal();
});
</script>
</body>
</html>