claude-code-templates 1.16.0 → 1.17.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 (101) hide show
  1. package/README.md +7 -7
  2. package/bin/create-claude-config.js +17 -8
  3. package/package.json +2 -3
  4. package/src/analytics/core/AgentAnalyzer.js +17 -3
  5. package/src/analytics/core/ProcessDetector.js +23 -7
  6. package/src/analytics/core/StateCalculator.js +102 -33
  7. package/src/analytics/data/DataCache.js +7 -7
  8. package/src/analytics-web/chats_mobile.html +2590 -0
  9. package/src/analytics-web/components/App.js +10 -10
  10. package/src/analytics-web/components/SessionTimer.js +1 -1
  11. package/src/analytics-web/components/Sidebar.js +5 -14
  12. package/src/analytics-web/index.html +932 -78
  13. package/src/analytics.js +263 -5
  14. package/src/chats-mobile.js +682 -0
  15. package/src/claude-api-proxy.js +460 -0
  16. package/src/file-operations.js +239 -36
  17. package/src/health-check.js +310 -0
  18. package/src/index.js +1252 -56
  19. package/src/tracking-service.js +31 -34
  20. package/components/agents/api-security-audit.md +0 -92
  21. package/components/agents/database-optimization.md +0 -94
  22. package/components/agents/react-performance-optimization.md +0 -64
  23. package/components/commands/check-file.md +0 -53
  24. package/components/commands/generate-tests.md +0 -68
  25. package/components/mcps/deepgraph-nextjs.json +0 -12
  26. package/components/mcps/deepgraph-react.json +0 -12
  27. package/components/mcps/deepgraph-typescript.json +0 -12
  28. package/components/mcps/deepgraph-vue.json +0 -12
  29. package/components/mcps/filesystem-access.json +0 -12
  30. package/components/mcps/github-integration.json +0 -11
  31. package/components/mcps/memory-integration.json +0 -8
  32. package/components/mcps/mysql-integration.json +0 -11
  33. package/components/mcps/postgresql-integration.json +0 -11
  34. package/components/mcps/web-fetch.json +0 -8
  35. package/src/analytics-web/components/AgentsPage.js +0 -4761
  36. package/templates/common/.claude/commands/git-workflow.md +0 -239
  37. package/templates/common/.claude/commands/project-setup.md +0 -316
  38. package/templates/common/.mcp.json +0 -41
  39. package/templates/common/CLAUDE.md +0 -109
  40. package/templates/common/README.md +0 -96
  41. package/templates/go/.mcp.json +0 -78
  42. package/templates/go/README.md +0 -25
  43. package/templates/javascript-typescript/.claude/commands/api-endpoint.md +0 -51
  44. package/templates/javascript-typescript/.claude/commands/debug.md +0 -52
  45. package/templates/javascript-typescript/.claude/commands/lint.md +0 -48
  46. package/templates/javascript-typescript/.claude/commands/npm-scripts.md +0 -48
  47. package/templates/javascript-typescript/.claude/commands/refactor.md +0 -55
  48. package/templates/javascript-typescript/.claude/commands/test.md +0 -61
  49. package/templates/javascript-typescript/.claude/commands/typescript-migrate.md +0 -51
  50. package/templates/javascript-typescript/.claude/settings.json +0 -142
  51. package/templates/javascript-typescript/.mcp.json +0 -80
  52. package/templates/javascript-typescript/CLAUDE.md +0 -185
  53. package/templates/javascript-typescript/README.md +0 -259
  54. package/templates/javascript-typescript/examples/angular-app/.claude/commands/components.md +0 -63
  55. package/templates/javascript-typescript/examples/angular-app/.claude/commands/services.md +0 -62
  56. package/templates/javascript-typescript/examples/node-api/.claude/commands/api-endpoint.md +0 -46
  57. package/templates/javascript-typescript/examples/node-api/.claude/commands/database.md +0 -56
  58. package/templates/javascript-typescript/examples/node-api/.claude/commands/middleware.md +0 -61
  59. package/templates/javascript-typescript/examples/node-api/.claude/commands/route.md +0 -57
  60. package/templates/javascript-typescript/examples/node-api/CLAUDE.md +0 -102
  61. package/templates/javascript-typescript/examples/react-app/.claude/commands/component.md +0 -29
  62. package/templates/javascript-typescript/examples/react-app/.claude/commands/hooks.md +0 -44
  63. package/templates/javascript-typescript/examples/react-app/.claude/commands/state-management.md +0 -45
  64. package/templates/javascript-typescript/examples/react-app/CLAUDE.md +0 -81
  65. package/templates/javascript-typescript/examples/react-app/agents/react-performance-optimization.md +0 -530
  66. package/templates/javascript-typescript/examples/react-app/agents/react-state-management.md +0 -295
  67. package/templates/javascript-typescript/examples/vue-app/.claude/commands/components.md +0 -46
  68. package/templates/javascript-typescript/examples/vue-app/.claude/commands/composables.md +0 -51
  69. package/templates/python/.claude/commands/lint.md +0 -111
  70. package/templates/python/.claude/commands/test.md +0 -73
  71. package/templates/python/.claude/settings.json +0 -153
  72. package/templates/python/.mcp.json +0 -78
  73. package/templates/python/CLAUDE.md +0 -276
  74. package/templates/python/examples/django-app/.claude/commands/admin.md +0 -264
  75. package/templates/python/examples/django-app/.claude/commands/django-model.md +0 -124
  76. package/templates/python/examples/django-app/.claude/commands/views.md +0 -222
  77. package/templates/python/examples/django-app/CLAUDE.md +0 -313
  78. package/templates/python/examples/django-app/agents/django-api-security.md +0 -642
  79. package/templates/python/examples/django-app/agents/django-database-optimization.md +0 -752
  80. package/templates/python/examples/fastapi-app/.claude/commands/api-endpoints.md +0 -513
  81. package/templates/python/examples/fastapi-app/.claude/commands/auth.md +0 -775
  82. package/templates/python/examples/fastapi-app/.claude/commands/database.md +0 -657
  83. package/templates/python/examples/fastapi-app/.claude/commands/deployment.md +0 -160
  84. package/templates/python/examples/fastapi-app/.claude/commands/testing.md +0 -927
  85. package/templates/python/examples/fastapi-app/CLAUDE.md +0 -229
  86. package/templates/python/examples/flask-app/.claude/commands/app-factory.md +0 -384
  87. package/templates/python/examples/flask-app/.claude/commands/blueprint.md +0 -243
  88. package/templates/python/examples/flask-app/.claude/commands/database.md +0 -410
  89. package/templates/python/examples/flask-app/.claude/commands/deployment.md +0 -620
  90. package/templates/python/examples/flask-app/.claude/commands/flask-route.md +0 -217
  91. package/templates/python/examples/flask-app/.claude/commands/testing.md +0 -559
  92. package/templates/python/examples/flask-app/CLAUDE.md +0 -391
  93. package/templates/ruby/.claude/commands/model.md +0 -360
  94. package/templates/ruby/.claude/commands/test.md +0 -480
  95. package/templates/ruby/.claude/settings.json +0 -146
  96. package/templates/ruby/.mcp.json +0 -83
  97. package/templates/ruby/CLAUDE.md +0 -284
  98. package/templates/ruby/examples/rails-app/.claude/commands/authentication.md +0 -490
  99. package/templates/ruby/examples/rails-app/CLAUDE.md +0 -376
  100. package/templates/rust/.mcp.json +0 -78
  101. package/templates/rust/README.md +0 -26
@@ -1,160 +0,0 @@
1
- # FastAPI Deployment
2
-
3
- Basic production deployment setup for FastAPI applications.
4
-
5
- ## Usage
6
-
7
- ```bash
8
- # Run with Uvicorn
9
- uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4
10
-
11
- # Docker deployment
12
- docker build -t fastapi-app .
13
- docker run -p 8000:8000 fastapi-app
14
- ```
15
-
16
- ## Production Configuration
17
-
18
- ```python
19
- # app/core/config.py
20
- from pydantic import BaseSettings
21
- import os
22
-
23
- class Settings(BaseSettings):
24
- """Production settings."""
25
-
26
- # App
27
- PROJECT_NAME: str = "FastAPI App"
28
- VERSION: str = "1.0.0"
29
- SECRET_KEY: str = os.getenv("SECRET_KEY", "dev-key")
30
-
31
- # Server
32
- HOST: str = "0.0.0.0"
33
- PORT: int = 8000
34
- WORKERS: int = 4
35
-
36
- # Database
37
- DATABASE_URL: str = os.getenv("DATABASE_URL", "sqlite:///./app.db")
38
-
39
- # Redis
40
- REDIS_URL: str = os.getenv("REDIS_URL", "redis://localhost:6379")
41
-
42
- class Config:
43
- env_file = ".env"
44
-
45
- settings = Settings()
46
- ```
47
-
48
- ## Docker Setup
49
-
50
- ```dockerfile
51
- # Dockerfile
52
- FROM python:3.11-slim
53
-
54
- WORKDIR /app
55
-
56
- # Install dependencies
57
- COPY requirements.txt .
58
- RUN pip install --no-cache-dir -r requirements.txt
59
-
60
- # Copy app
61
- COPY . .
62
-
63
- # Create non-root user
64
- RUN useradd -m appuser && chown -R appuser:appuser /app
65
- USER appuser
66
-
67
- EXPOSE 8000
68
-
69
- # Health check
70
- HEALTHCHECK CMD curl -f http://localhost:8000/health || exit 1
71
-
72
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
73
- ```
74
-
75
- ## Docker Compose
76
-
77
- ```yaml
78
- # docker-compose.yml
79
- version: '3.8'
80
-
81
- services:
82
- app:
83
- build: .
84
- ports:
85
- - "8000:8000"
86
- environment:
87
- - DATABASE_URL=postgresql://user:pass@db:5432/fastapi_db
88
- - REDIS_URL=redis://redis:6379
89
- depends_on:
90
- - db
91
- - redis
92
-
93
- db:
94
- image: postgres:15
95
- environment:
96
- POSTGRES_DB: fastapi_db
97
- POSTGRES_USER: user
98
- POSTGRES_PASSWORD: password
99
- volumes:
100
- - postgres_data:/var/lib/postgresql/data
101
-
102
- redis:
103
- image: redis:7-alpine
104
- volumes:
105
- - redis_data:/data
106
-
107
- volumes:
108
- postgres_data:
109
- redis_data:
110
- ```
111
-
112
- ## Environment Variables
113
-
114
- ```bash
115
- # .env
116
- SECRET_KEY=your-secret-key
117
- DATABASE_URL=postgresql://user:pass@localhost/fastapi_db
118
- REDIS_URL=redis://localhost:6379
119
- ```
120
-
121
- ## Health Check
122
-
123
- ```python
124
- # app/api/health.py
125
- from fastapi import APIRouter
126
- from app.core.config import settings
127
-
128
- router = APIRouter()
129
-
130
- @router.get("/health")
131
- async def health_check():
132
- return {
133
- "status": "healthy",
134
- "version": settings.VERSION
135
- }
136
- ```
137
-
138
- ## Deployment Script
139
-
140
- ```bash
141
- #!/bin/bash
142
- # deploy.sh
143
-
144
- set -e
145
-
146
- echo "Deploying FastAPI app..."
147
-
148
- # Build and deploy
149
- docker-compose build
150
- docker-compose up -d
151
-
152
- # Health check
153
- echo "Checking health..."
154
- if curl -f http://localhost:8000/health; then
155
- echo "✅ Deployment successful!"
156
- else
157
- echo "❌ Deployment failed!"
158
- exit 1
159
- fi
160
- ```