Template Generator Pro V2
Version 2.0.0
A production-ready web application for uploading, analyzing, editing, and generating website template files.
Getting Started
Two ways to start:
Path A: Upload File (Quick)
- On the Dashboard, drag & drop or click to upload a ZIP, HTML, HTM, or PHP file (max 100MB).
- File is auto-saved as a template and analyzed immediately.
- You are redirected to the Editor with analysis results pre-populated.
Path B: Use Template (Saved)
- On the Dashboard, select a previously saved template from the list.
- You are taken to the Editor where you can analyze, edit, and generate.
In the Editor:
- Analyze Content — Click "Analyze Template" to auto-detect brand names, meta tags, headings, links, images, and more.
- Edit Replacements — Use the side-by-side editor to define what detected values should be replaced with.
- Add SEO Content — Fill in SEO title, description, keywords, article content, and FAQs.
- Generate Output — Click "Generate & Download ZIP" to apply all replacements and download the final output.
Supported File Types
ZIP
Archive containing HTML, CSS, JS, and assets
HTML
Single HTML files
HTM
Single HTM files
PHP
PHP template files
Analysis Engine
The analysis engine automatically detects the following from your template files:
✓ Brand Name
✓ Website Title
✓ Meta Description
✓ Meta Keywords
✓ Domain
✓ AMP Domain
✓ Canonical URL
✓ OG Title
✓ OG Description
✓ OG Image URL
✓ OG URL
✓ Twitter Title
✓ Twitter Image
✓ Favicon URL
✓ Article Titles
✓ Headings (H1-H6)
✓ Paragraphs
✓ Links
✓ Image URLs
✓ FAQ Content
Replacement Engine
The replacement engine performs global find-and-replace across all text-based files in your template:
- HTML, HTM, PHP files
- CSS files
- JavaScript files
- Text, XML, SVG, JSON, MD files
- Binary files (images, fonts, etc.) are preserved as-is
SEO Injection
When generating output, the following SEO elements are automatically injected into HTML files:
- Title tag with your SEO title
- Meta description tag
- Meta keywords tag
- FAQPage structured data (JSON-LD schema)
- Article content section
Security
- Path traversal prevention on all file operations
- File type validation (only ZIP, HTML, HTM, PHP allowed)
- File size limits (100MB max)
- UUID-based file naming to prevent conflicts
- Input sanitization on all user inputs
Installation
# Clone or copy the project
cd template-generator-pro-v2
# Install dependencies
npm install
# Start the server
npm start
# Open in browser
# http://localhost:3000
System Requirements
- Node.js 20+
- npm 9+
- Windows 10/11 or Ubuntu 20.04+
- 2GB RAM minimum