mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
92e2d1184d
🐳 New Docker Sandbox Provider - Execute Claude Code in isolated local containers ## Features - ✅ Fully local execution with complete isolation - ✅ Claude Agent SDK integration with async generator pattern - ✅ Multi-directory file detection (/app and /tmp) - ✅ Support for specialized agents - ✅ Automated execution with --yes flag - ✅ Custom Docker environments ## Files Added - cli-tool/components/sandbox/docker/Dockerfile - Node.js 22 Alpine image - cli-tool/components/sandbox/docker/docker-launcher.js - Container orchestration - cli-tool/components/sandbox/docker/execute.js - Claude SDK execution script - cli-tool/components/sandbox/docker/package.json - Dependencies - cli-tool/components/sandbox/docker/README.md - Complete documentation ## Changes - cli-tool/package.json: Bump version to 1.27.0, add docker files to npm package - cli-tool/src/index.js: Add Docker sandbox execution logic and --yes flag support - docs/component.html: Add Docker provider documentation and comparison table - docs/css/component-page.css: Docker provider styling - docs/js/component-page.js: Docker provider tab functionality ## Usage npx claude-code-templates@latest --sandbox docker --agent example --prompt "task" --yes ## Requirements - Docker Desktop installed and running - Anthropic API key configured 🎉 Version 1.27.0 published to npm 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Claude Code Templates Website
This directory contains the static website for browsing and installing Claude Code configuration templates.
Features
- Dynamic Template Loading: Templates are loaded directly from the GitHub repository's
templates.jsfile - Interactive Cards: Click any template card to see the installation command
- Responsive Design: Works on desktop and mobile devices
- Framework Logos: Uses Devicon CDN for professional programming language and framework logos
- Copy to Clipboard: Easy command copying with visual feedback
Architecture
The website is built as a static site that:
- Fetches template data from
cli-tool/src/templates.jsin the GitHub repository - Parses the configuration to extract available languages and frameworks
- Generates cards dynamically with proper logos from Devicon CDN
- Updates automatically when new templates are added to the repository
Files
index.html- Main HTML structurestyles.css- Styling and responsive designscript.js- JavaScript for dynamic content loading and interactions_config.yml- Jekyll configuration for GitHub PagesREADME.md- This documentation
GitHub Pages Deployment
This website is automatically deployed to GitHub Pages when changes are pushed to the docs/ directory in the main branch.
Visit: https://davila7.github.io/claude-code-templates
Development
To test locally:
- Clone the repository
- Navigate to the
docs/directory - Serve with any static file server (e.g.,
python -m http.server 8000) - Open
http://localhost:8000
Dependencies
- Devicon CDN: For programming language and framework logos
- GitHub Raw Content: For fetching template configurations
- Modern Browser: Support for ES6+ features and Fetch API