@buley/hexgrid-3d 1.0.0 → 1.1.1

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 (58) hide show
  1. package/build_log.txt +500 -0
  2. package/build_src_log.txt +8 -0
  3. package/examples/basic-usage.tsx +19 -19
  4. package/package.json +1 -1
  5. package/public/hexgrid-worker.js +2350 -1638
  6. package/site/.eslintrc.json +3 -0
  7. package/site/DEPLOYMENT.md +196 -0
  8. package/site/INDEX.md +127 -0
  9. package/site/QUICK_START.md +86 -0
  10. package/site/README.md +85 -0
  11. package/site/SITE_SUMMARY.md +180 -0
  12. package/site/next.config.js +12 -0
  13. package/site/package.json +26 -0
  14. package/site/src/app/docs/page.tsx +148 -0
  15. package/site/src/app/examples/page.tsx +133 -0
  16. package/site/src/app/globals.css +160 -0
  17. package/site/src/app/layout.tsx +29 -0
  18. package/site/src/app/page.tsx +163 -0
  19. package/site/tsconfig.json +29 -0
  20. package/site/vercel.json +6 -0
  21. package/src/Snapshot.ts +790 -585
  22. package/src/adapters/DashAdapter.ts +57 -0
  23. package/src/adapters.ts +16 -18
  24. package/src/algorithms/AdvancedStatistics.ts +58 -24
  25. package/src/algorithms/BayesianStatistics.ts +43 -12
  26. package/src/algorithms/FlowField.ts +30 -6
  27. package/src/algorithms/FlowField3D.ts +573 -0
  28. package/src/algorithms/FluidSimulation.ts +19 -3
  29. package/src/algorithms/FluidSimulation3D.ts +664 -0
  30. package/src/algorithms/GraphAlgorithms.ts +19 -12
  31. package/src/algorithms/OutlierDetection.ts +72 -38
  32. package/src/algorithms/ParticleSystem.ts +12 -2
  33. package/src/algorithms/ParticleSystem3D.ts +567 -0
  34. package/src/algorithms/index.ts +14 -8
  35. package/src/compat.ts +10 -10
  36. package/src/components/HexGrid.tsx +10 -23
  37. package/src/components/NarrationOverlay.tsx +140 -52
  38. package/src/components/index.ts +2 -1
  39. package/src/features.ts +31 -31
  40. package/src/index.ts +11 -11
  41. package/src/lib/narration.ts +17 -0
  42. package/src/lib/stats-tracker.ts +25 -0
  43. package/src/lib/theme-colors.ts +12 -0
  44. package/src/math/HexCoordinates.ts +849 -4
  45. package/src/math/Matrix4.ts +2 -12
  46. package/src/math/Vector3.ts +49 -1
  47. package/src/math/index.ts +6 -6
  48. package/src/note-adapter.ts +50 -42
  49. package/src/ontology-adapter.ts +30 -23
  50. package/src/stores/uiStore.ts +34 -34
  51. package/src/types/shared-utils.d.ts +10 -0
  52. package/src/types.ts +110 -98
  53. package/src/utils/image-utils.ts +9 -6
  54. package/src/wasm/HexGridWasmWrapper.ts +436 -388
  55. package/src/wasm/index.ts +2 -2
  56. package/src/workers/hexgrid-math.ts +40 -35
  57. package/src/workers/hexgrid-worker.worker.ts +1992 -1018
  58. package/tsconfig.json +21 -14
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "next/core-web-vitals"
3
+ }
@@ -0,0 +1,196 @@
1
+ # HexGrid 3D Site - Deployment Guide
2
+
3
+ This guide covers deploying the HexGrid 3D promotional site to Vercel.
4
+
5
+ ## Prerequisites
6
+
7
+ - A Vercel account (sign up at [vercel.com](https://vercel.com))
8
+ - Git repository access
9
+ - Node.js 18+ installed locally (for testing)
10
+
11
+ ## Deployment Options
12
+
13
+ ### Option 1: Deploy via Vercel Dashboard (Recommended)
14
+
15
+ 1. **Push to GitHub**
16
+ ```bash
17
+ git add .
18
+ git commit -m "feat(site): add Next.js promotional site"
19
+ git push origin main
20
+ ```
21
+
22
+ 2. **Import Project in Vercel**
23
+ - Go to [vercel.com/new](https://vercel.com/new)
24
+ - Click "Import Git Repository"
25
+ - Select your repository
26
+ - Configure the project:
27
+ - **Root Directory**: `shared-ui/src/components/Chamber/hexgrid-3d/site`
28
+ - **Framework Preset**: Next.js (auto-detected)
29
+ - **Build Command**: `npm run build` (default)
30
+ - **Output Directory**: `.next` (default)
31
+ - **Install Command**: `npm install` (default)
32
+
33
+ 3. **Deploy**
34
+ - Click "Deploy"
35
+ - Vercel will automatically build and deploy your site
36
+ - You'll get a URL like `https://hexgrid-3d-site.vercel.app`
37
+
38
+ ### Option 2: Deploy via Vercel CLI
39
+
40
+ 1. **Install Vercel CLI**
41
+ ```bash
42
+ npm i -g vercel
43
+ ```
44
+
45
+ 2. **Login to Vercel**
46
+ ```bash
47
+ vercel login
48
+ ```
49
+
50
+ 3. **Navigate to Site Directory**
51
+ ```bash
52
+ cd shared-ui/src/components/Chamber/hexgrid-3d/site
53
+ ```
54
+
55
+ 4. **Deploy**
56
+ ```bash
57
+ vercel
58
+ ```
59
+
60
+ Follow the prompts:
61
+ - Link to existing project or create new
62
+ - Confirm settings
63
+ - Deploy
64
+
65
+ 5. **Production Deployment**
66
+ ```bash
67
+ vercel --prod
68
+ ```
69
+
70
+ ### Option 3: Deploy from Monorepo Root
71
+
72
+ If deploying from the monorepo root:
73
+
74
+ 1. **Create vercel.json at root** (if needed):
75
+ ```json
76
+ {
77
+ "buildCommand": "cd shared-ui/src/components/Chamber/hexgrid-3d/site && npm install && npm run build",
78
+ "outputDirectory": "shared-ui/src/components/Chamber/hexgrid-3d/site/.next",
79
+ "installCommand": "cd shared-ui/src/components/Chamber/hexgrid-3d/site && npm install"
80
+ }
81
+ ```
82
+
83
+ 2. **Set Root Directory in Vercel Dashboard**:
84
+ - Go to Project Settings → General
85
+ - Set Root Directory to: `shared-ui/src/components/Chamber/hexgrid-3d/site`
86
+
87
+ ## Environment Variables
88
+
89
+ Currently, no environment variables are required. If you need to add any:
90
+
91
+ 1. Go to Project Settings → Environment Variables
92
+ 2. Add variables for Production, Preview, and Development
93
+ 3. Redeploy to apply changes
94
+
95
+ ## Custom Domain
96
+
97
+ To add a custom domain:
98
+
99
+ 1. Go to Project Settings → Domains
100
+ 2. Add your domain (e.g., `hexgrid-3d.com`)
101
+ 3. Follow DNS configuration instructions
102
+ 4. Vercel will automatically provision SSL certificates
103
+
104
+ ## Continuous Deployment
105
+
106
+ Vercel automatically deploys:
107
+ - **Production**: Deploys from `main` branch
108
+ - **Preview**: Creates preview deployments for pull requests
109
+
110
+ To configure:
111
+ 1. Go to Project Settings → Git
112
+ 2. Connect your repository
113
+ 3. Set production branch (default: `main`)
114
+ 4. Enable preview deployments for PRs
115
+
116
+ ## Build Configuration
117
+
118
+ The site uses the following build configuration (in `vercel.json`):
119
+
120
+ ```json
121
+ {
122
+ "framework": "nextjs",
123
+ "buildCommand": "npm run build",
124
+ "outputDirectory": ".next",
125
+ "installCommand": "npm install"
126
+ }
127
+ ```
128
+
129
+ ## Troubleshooting
130
+
131
+ ### Build Fails
132
+
133
+ 1. **Check Node.js Version**
134
+ - Vercel uses Node.js 18.x by default
135
+ - Update in Project Settings → General → Node.js Version
136
+
137
+ 2. **Check Build Logs**
138
+ - Go to Deployments → Select failed deployment → View Build Logs
139
+ - Look for error messages
140
+
141
+ 3. **Test Locally**
142
+ ```bash
143
+ cd shared-ui/src/components/Chamber/hexgrid-3d/site
144
+ npm install
145
+ npm run build
146
+ ```
147
+
148
+ ### Dependencies Not Found
149
+
150
+ If dependencies from parent directory are needed:
151
+
152
+ 1. **Option 1**: Copy dependencies to `site/node_modules`
153
+ 2. **Option 2**: Use monorepo root deployment (Option 3 above)
154
+ 3. **Option 3**: Install dependencies in build command
155
+
156
+ ### 404 Errors
157
+
158
+ - Ensure all routes have corresponding `page.tsx` files
159
+ - Check that `next.config.js` is properly configured
160
+ - Verify `outputDirectory` in `vercel.json` matches build output
161
+
162
+ ## Performance Optimization
163
+
164
+ Vercel automatically optimizes:
165
+ - Image optimization via Next.js Image component
166
+ - Automatic code splitting
167
+ - Edge caching
168
+ - CDN distribution
169
+
170
+ ## Analytics
171
+
172
+ To add Vercel Analytics:
173
+
174
+ 1. Go to Project Settings → Analytics
175
+ 2. Enable Vercel Analytics
176
+ 3. Add to your app (optional, for custom tracking)
177
+
178
+ ## Monitoring
179
+
180
+ - **Deployments**: View all deployments in Vercel dashboard
181
+ - **Logs**: Access function logs in Project → Logs
182
+ - **Metrics**: View performance metrics in Project → Analytics
183
+
184
+ ## Rollback
185
+
186
+ To rollback to a previous deployment:
187
+
188
+ 1. Go to Deployments
189
+ 2. Find the deployment you want to restore
190
+ 3. Click "..." menu → "Promote to Production"
191
+
192
+ ## Support
193
+
194
+ - [Vercel Documentation](https://vercel.com/docs)
195
+ - [Next.js Deployment](https://nextjs.org/docs/deployment)
196
+ - [Vercel Support](https://vercel.com/support)
package/site/INDEX.md ADDED
@@ -0,0 +1,127 @@
1
+ # HexGrid 3D Promotional Site
2
+
3
+ Welcome to the HexGrid 3D promotional site! This Next.js application showcases the HexGrid 3D component with documentation, examples, and deployment instructions.
4
+
5
+ ## 📚 Documentation Index
6
+
7
+ - **[README.md](./README.md)** - Project overview and development guide
8
+ - **[QUICK_START.md](./QUICK_START.md)** - Get started in 5 minutes
9
+ - **[DEPLOYMENT.md](./DEPLOYMENT.md)** - Complete Vercel deployment guide
10
+ - **[SITE_SUMMARY.md](./SITE_SUMMARY.md)** - What was built and how it works
11
+
12
+ ## 🚀 Quick Links
13
+
14
+ ### For Developers
15
+ - [Quick Start Guide](./QUICK_START.md) - Start developing locally
16
+ - [Deployment Guide](./DEPLOYMENT.md) - Deploy to Vercel
17
+ - [Site Summary](./SITE_SUMMARY.md) - Understand the structure
18
+
19
+ ### For Users
20
+ - [Homepage](./src/app/page.tsx) - Landing page
21
+ - [Documentation](./src/app/docs/page.tsx) - API docs
22
+ - [Examples](./src/app/examples/page.tsx) - Code examples
23
+
24
+ ## 🎯 What's Included
25
+
26
+ ### Pages
27
+ - ✅ **Homepage** - Feature showcase and quick start
28
+ - ✅ **Documentation** - Complete API reference
29
+ - ✅ **Examples** - Code examples and use cases
30
+
31
+ ### Configuration
32
+ - ✅ **Next.js 16** - Latest framework
33
+ - ✅ **TypeScript** - Full type safety
34
+ - ✅ **Vercel Ready** - Pre-configured deployment
35
+ - ✅ **SEO Optimized** - Metadata and Open Graph
36
+
37
+ ### Documentation
38
+ - ✅ **README.md** - Project documentation
39
+ - ✅ **DEPLOYMENT.md** - Deployment instructions
40
+ - ✅ **QUICK_START.md** - Quick start guide
41
+ - ✅ **SITE_SUMMARY.md** - Technical summary
42
+
43
+ ## 📦 Project Structure
44
+
45
+ ```
46
+ site/
47
+ ├── src/app/ # Next.js App Router pages
48
+ │ ├── layout.tsx # Root layout
49
+ │ ├── page.tsx # Homepage
50
+ │ ├── docs/ # Documentation
51
+ │ └── examples/ # Examples
52
+ ├── next.config.js # Next.js config
53
+ ├── vercel.json # Vercel config
54
+ └── package.json # Dependencies
55
+ ```
56
+
57
+ ## 🛠️ Development
58
+
59
+ ```bash
60
+ # Install dependencies
61
+ npm install
62
+
63
+ # Run development server
64
+ npm run dev
65
+
66
+ # Build for production
67
+ npm run build
68
+
69
+ # Start production server
70
+ npm start
71
+ ```
72
+
73
+ ## 🚢 Deployment
74
+
75
+ ### Option 1: Vercel Dashboard (Recommended)
76
+ 1. Push to GitHub
77
+ 2. Import in Vercel dashboard
78
+ 3. Set root: `shared-ui/src/components/Chamber/hexgrid-3d/site`
79
+ 4. Deploy
80
+
81
+ ### Option 2: Vercel CLI
82
+ ```bash
83
+ npm i -g vercel
84
+ cd shared-ui/src/components/Chamber/hexgrid-3d/site
85
+ vercel
86
+ ```
87
+
88
+ See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed instructions.
89
+
90
+ ## 📝 Next Steps
91
+
92
+ 1. **Review the site locally**
93
+ ```bash
94
+ cd shared-ui/src/components/Chamber/hexgrid-3d/site
95
+ npm install
96
+ npm run dev
97
+ ```
98
+
99
+ 2. **Customize content**
100
+ - Edit `src/app/page.tsx` for homepage
101
+ - Update `src/app/docs/page.tsx` for docs
102
+ - Modify `src/app/globals.css` for styling
103
+
104
+ 3. **Deploy to Vercel**
105
+ - Follow [DEPLOYMENT.md](./DEPLOYMENT.md)
106
+ - Get your live URL
107
+
108
+ 4. **Add features** (optional)
109
+ - Interactive demo
110
+ - Live code editor
111
+ - More examples
112
+ - Blog section
113
+
114
+ ## 🔗 Related Links
115
+
116
+ - **Component Repository**: [../README.md](../README.md)
117
+ - **GitHub**: https://github.com/buley/hexgrid-3d
118
+ - **Vercel Docs**: https://vercel.com/docs
119
+ - **Next.js Docs**: https://nextjs.org/docs
120
+
121
+ ## 📄 License
122
+
123
+ Personal Use Only - See LICENSE file in parent directory.
124
+
125
+ ---
126
+
127
+ **Ready to deploy?** Start with [QUICK_START.md](./QUICK_START.md) or [DEPLOYMENT.md](./DEPLOYMENT.md)
@@ -0,0 +1,86 @@
1
+ # Quick Start Guide
2
+
3
+ Get the HexGrid 3D promotional site up and running in minutes.
4
+
5
+ ## Local Development
6
+
7
+ 1. **Navigate to site directory**
8
+ ```bash
9
+ cd shared-ui/src/components/Chamber/hexgrid-3d/site
10
+ ```
11
+
12
+ 2. **Install dependencies**
13
+ ```bash
14
+ npm install
15
+ ```
16
+
17
+ 3. **Run development server**
18
+ ```bash
19
+ npm run dev
20
+ ```
21
+
22
+ 4. **Open browser**
23
+ - Visit [http://localhost:3000](http://localhost:3000)
24
+
25
+ ## Build for Production
26
+
27
+ ```bash
28
+ npm run build
29
+ npm start
30
+ ```
31
+
32
+ ## Deploy to Vercel
33
+
34
+ ### Quick Deploy (CLI)
35
+
36
+ ```bash
37
+ # Install Vercel CLI (if not already installed)
38
+ npm i -g vercel
39
+
40
+ # Navigate to site directory
41
+ cd shared-ui/src/components/Chamber/hexgrid-3d/site
42
+
43
+ # Deploy
44
+ vercel
45
+ ```
46
+
47
+ ### Deploy via Dashboard
48
+
49
+ 1. Push code to GitHub
50
+ 2. Go to [vercel.com/new](https://vercel.com/new)
51
+ 3. Import repository
52
+ 4. Set root directory: `shared-ui/src/components/Chamber/hexgrid-3d/site`
53
+ 5. Click Deploy
54
+
55
+ See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed instructions.
56
+
57
+ ## Project Structure
58
+
59
+ ```
60
+ site/
61
+ ├── src/
62
+ │ └── app/
63
+ │ ├── layout.tsx # Root layout with metadata
64
+ │ ├── page.tsx # Homepage
65
+ │ ├── docs/
66
+ │ │ └── page.tsx # Documentation
67
+ │ └── examples/
68
+ │ └── page.tsx # Code examples
69
+ ├── next.config.js # Next.js config
70
+ ├── vercel.json # Vercel deployment config
71
+ └── package.json # Dependencies
72
+ ```
73
+
74
+ ## Customization
75
+
76
+ - **Homepage**: Edit `src/app/page.tsx`
77
+ - **Documentation**: Edit `src/app/docs/page.tsx`
78
+ - **Examples**: Edit `src/app/examples/page.tsx`
79
+ - **Styling**: Edit `src/app/globals.css`
80
+ - **Metadata**: Edit `src/app/layout.tsx`
81
+
82
+ ## Next Steps
83
+
84
+ - Read [README.md](./README.md) for full documentation
85
+ - See [DEPLOYMENT.md](./DEPLOYMENT.md) for deployment details
86
+ - Check the main [README.md](../README.md) for HexGrid 3D component docs
package/site/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # HexGrid 3D - Promotional Site
2
+
3
+ This is a Next.js mini site to promote and document the HexGrid 3D project.
4
+
5
+ ## Features
6
+
7
+ - **Landing Page** - Showcase the component with features and quick start
8
+ - **Documentation** - Complete API documentation and usage guide
9
+ - **Examples** - Code examples and use cases
10
+ - **Vercel Ready** - Configured for easy deployment to Vercel
11
+
12
+ ## Development
13
+
14
+ ```bash
15
+ # Install dependencies
16
+ npm install
17
+
18
+ # Run development server
19
+ npm run dev
20
+
21
+ # Build for production
22
+ npm run build
23
+
24
+ # Start production server
25
+ npm start
26
+ ```
27
+
28
+ ## Deployment to Vercel
29
+
30
+ ### Option 1: Vercel CLI
31
+
32
+ ```bash
33
+ # Install Vercel CLI
34
+ npm i -g vercel
35
+
36
+ # Deploy
37
+ vercel
38
+ ```
39
+
40
+ ### Option 2: GitHub Integration
41
+
42
+ 1. Push this repository to GitHub
43
+ 2. Import the project in Vercel dashboard
44
+ 3. Set the root directory to `shared-ui/src/components/Chamber/hexgrid-3d/site`
45
+ 4. Configure build settings:
46
+ - Build Command: `cd ../.. && npm install && cd site && npm install && npm run build`
47
+ - Output Directory: `.next`
48
+ - Install Command: `cd ../.. && npm install && cd site && npm install`
49
+
50
+ ### Option 3: Using vercel.json
51
+
52
+ The `vercel.json` file is already configured. Simply:
53
+
54
+ 1. Connect your GitHub repository to Vercel
55
+ 2. Vercel will automatically detect the Next.js project
56
+ 3. The build configuration in `vercel.json` will be used
57
+
58
+ ## Project Structure
59
+
60
+ ```
61
+ site/
62
+ ├── src/
63
+ │ └── app/
64
+ │ ├── layout.tsx # Root layout
65
+ │ ├── page.tsx # Homepage
66
+ │ ├── docs/
67
+ │ │ └── page.tsx # Documentation page
68
+ │ └── examples/
69
+ │ └── page.tsx # Examples page
70
+ ├── next.config.js # Next.js configuration
71
+ ├── tsconfig.json # TypeScript configuration
72
+ ├── vercel.json # Vercel deployment configuration
73
+ └── package.json # Dependencies
74
+ ```
75
+
76
+ ## Customization
77
+
78
+ - Update `src/app/page.tsx` to customize the homepage
79
+ - Modify `src/app/docs/page.tsx` for documentation changes
80
+ - Edit `src/app/globals.css` for styling changes
81
+ - Update metadata in `src/app/layout.tsx` for SEO
82
+
83
+ ## License
84
+
85
+ Personal Use Only - See LICENSE file in parent directory for full terms.
@@ -0,0 +1,180 @@
1
+ # HexGrid 3D Promotional Site - Summary
2
+
3
+ ## Overview
4
+
5
+ A Next.js 16 mini site built to promote and document the HexGrid 3D project. The site features a modern, dark-themed design showcasing the component's capabilities.
6
+
7
+ ## What Was Built
8
+
9
+ ### 1. Next.js Application Structure
10
+ - **Framework**: Next.js 16 with App Router
11
+ - **TypeScript**: Fully typed with strict mode
12
+ - **Styling**: Custom CSS with dark theme
13
+ - **SEO**: Optimized metadata and Open Graph tags
14
+
15
+ ### 2. Pages Created
16
+
17
+ #### Homepage (`/`)
18
+ - Hero section with project title and description
19
+ - Feature showcase with 6 key features
20
+ - Quick start code examples
21
+ - Call-to-action buttons
22
+ - Footer with links
23
+
24
+ #### Documentation (`/docs`)
25
+ - Installation instructions
26
+ - Basic usage examples
27
+ - Complete props table
28
+ - Camera controls guide
29
+ - Performance tips
30
+ - Links to GitHub repository
31
+
32
+ #### Examples (`/examples`)
33
+ - Basic implementation example
34
+ - Advanced usage with controls
35
+ - Custom theming example
36
+ - Links to more examples
37
+
38
+ ### 3. Configuration Files
39
+
40
+ - **`next.config.js`**: Next.js configuration with standalone output
41
+ - **`tsconfig.json`**: TypeScript configuration with path aliases
42
+ - **`vercel.json`**: Vercel deployment configuration
43
+ - **`package.json`**: Dependencies and scripts
44
+ - **`.eslintrc.json`**: ESLint configuration
45
+ - **`.gitignore`**: Git ignore rules
46
+
47
+ ### 4. Documentation
48
+
49
+ - **`README.md`**: Project overview and development guide
50
+ - **`DEPLOYMENT.md`**: Comprehensive deployment guide for Vercel
51
+ - **`QUICK_START.md`**: Quick start guide for developers
52
+ - **`SITE_SUMMARY.md`**: This file
53
+
54
+ ## Features
55
+
56
+ ### Design
57
+ - Dark theme with purple gradient accents
58
+ - Responsive design for mobile and desktop
59
+ - Modern UI with smooth transitions
60
+ - Accessible color contrast
61
+
62
+ ### Content
63
+ - Clear feature descriptions
64
+ - Code examples with syntax highlighting
65
+ - Complete API documentation
66
+ - Usage examples for different scenarios
67
+
68
+ ### Technical
69
+ - TypeScript for type safety
70
+ - Next.js App Router for modern routing
71
+ - Optimized for performance
72
+ - SEO-friendly metadata
73
+
74
+ ## File Structure
75
+
76
+ ```
77
+ site/
78
+ ├── src/
79
+ │ └── app/
80
+ │ ├── layout.tsx # Root layout with metadata
81
+ │ ├── page.tsx # Homepage
82
+ │ ├── globals.css # Global styles
83
+ │ ├── docs/
84
+ │ │ └── page.tsx # Documentation page
85
+ │ └── examples/
86
+ │ └── page.tsx # Examples page
87
+ ├── next.config.js # Next.js configuration
88
+ ├── tsconfig.json # TypeScript configuration
89
+ ├── vercel.json # Vercel deployment config
90
+ ├── package.json # Dependencies
91
+ ├── .eslintrc.json # ESLint config
92
+ ├── .gitignore # Git ignore
93
+ ├── README.md # Project README
94
+ ├── DEPLOYMENT.md # Deployment guide
95
+ ├── QUICK_START.md # Quick start guide
96
+ └── SITE_SUMMARY.md # This file
97
+ ```
98
+
99
+ ## Deployment
100
+
101
+ The site is configured for easy deployment to Vercel with three options:
102
+
103
+ 1. **Vercel Dashboard** (Recommended)
104
+ - Import from GitHub
105
+ - Set root directory
106
+ - Auto-deploy
107
+
108
+ 2. **Vercel CLI**
109
+ - Install CLI
110
+ - Run `vercel` command
111
+ - Follow prompts
112
+
113
+ 3. **Monorepo Root**
114
+ - Configure from root
115
+ - Set root directory in Vercel
116
+
117
+ See [DEPLOYMENT.md](./DEPLOYMENT.md) for detailed instructions.
118
+
119
+ ## Development
120
+
121
+ ### Local Development
122
+ ```bash
123
+ cd shared-ui/src/components/Chamber/hexgrid-3d/site
124
+ npm install
125
+ npm run dev
126
+ ```
127
+
128
+ ### Build
129
+ ```bash
130
+ npm run build
131
+ npm start
132
+ ```
133
+
134
+ ### Lint
135
+ ```bash
136
+ npm run lint
137
+ ```
138
+
139
+ ## Customization
140
+
141
+ All pages can be easily customized:
142
+
143
+ - **Homepage**: Edit `src/app/page.tsx`
144
+ - **Documentation**: Edit `src/app/docs/page.tsx`
145
+ - **Examples**: Edit `src/app/examples/page.tsx`
146
+ - **Styling**: Edit `src/app/globals.css`
147
+ - **Metadata**: Edit `src/app/layout.tsx`
148
+
149
+ ## Next Steps
150
+
151
+ 1. **Deploy to Vercel**
152
+ - Follow [DEPLOYMENT.md](./DEPLOYMENT.md)
153
+ - Get your live URL
154
+
155
+ 2. **Customize Content**
156
+ - Update homepage with your branding
157
+ - Add more examples
158
+ - Enhance documentation
159
+
160
+ 3. **Add Features**
161
+ - Interactive demo component
162
+ - Live code editor
163
+ - More examples
164
+ - Blog section
165
+
166
+ 4. **Optimize**
167
+ - Add analytics
168
+ - Optimize images
169
+ - Add performance monitoring
170
+
171
+ ## Support
172
+
173
+ - **Documentation**: See [README.md](./README.md)
174
+ - **Deployment**: See [DEPLOYMENT.md](./DEPLOYMENT.md)
175
+ - **Quick Start**: See [QUICK_START.md](./QUICK_START.md)
176
+ - **Component Docs**: See [../README.md](../README.md)
177
+
178
+ ## License
179
+
180
+ Personal Use Only - See LICENSE file in parent directory.
@@ -0,0 +1,12 @@
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
3
+ output: 'standalone',
4
+ reactStrictMode: true,
5
+ swcMinify: true,
6
+ images: {
7
+ domains: ['images.unsplash.com', 'via.placeholder.com'],
8
+ },
9
+ transpilePackages: [],
10
+ };
11
+
12
+ module.exports = nextConfig;