I'll create a comprehensive web application for analyzing project codebases from ZIP files and generating detailed Markdown reports optimized for AI understanding. Let me start by exploring the project structure.
Now I have a full understanding of the project setup. Let me create the comprehensive application. I'll need to install jszip for handling ZIP files, and I'll build a complete single-page React app.
Let me plan the architecture:
- Install needed packages:
jszip, file-saver (for saving the markdown)
- Create the App with:
- Drag-and-drop ZIP file upload
- ZIP parsing and file tree extraction
- Code analysis engine (language detection, dependency analysis, code structure analysis)
- Markdown report generator
- Live preview of the generated markdown
- Download option for the .md file
Let me start:
Now let me create the application files. I'll build this with multiple components for clean architecture.
Let me fix the type errors:
Let me check what happened around that area:
I see — there's a mismatch in braces. Let me check the full block around that area:
There's a stray closing brace on line 271. Let me fix the whole section:
Now let me remove the unused variables:
Now let me also remove the unused h4 and bold usage references in the string template if any. Let me also run a build to check:
The zip analyzer builds successfully. Now let me create the main App component with the UI:
Let me fix those issues:
Now let me create the main App.tsx:
Now let me update the index.html title:
Now let me build to check everything compiles:
The project builds successfully! Let me also update the CSS to add some Tailwind typography-like styles for the Markdown preview:
The project builds successfully. Let me verify the dist output:
Perfect! The single-file build produced dist/index.html which contains everything inline.
Let me now review the application once more to make sure everything is complete and working. Let me do a final check on the key files:
Everything looks good. Let me do one final build to confirm:
ساخت پروژه با موفقیت انجام شد. برنامه به طور کامل آماده است. در زیر توضیحات کامل ارائه شده:
✅ برنامه کامل شد — CodeAnalyzer
یک وب اپلیکیشن تکصفحهای ساخته شده که پروژههای ZIP را آنالیز کرده و یک گزارش کامل Markdown خروجی میدهد که به طور خاص برای درک و بازسازی توسط هوش مصنوعی طراحی شده است.
📋 قابلیتهای اصلی:
- 📤 آپلود فایل ZIP — با قابلیت Drag & Drop
- 🔍 استخراج کامل کد — تمام فایلهای متنی از ZIP استخراج میشوند
- 📊 تحلیل ساختار پروژه:
- تشخیص زبانهای برنامهنویسی و آمار فایلها
- آنالیز وابستگیها از
package.json
- دستهبندی کدها به: کامپوننتها، hooks، services، utilities، types، routes، configs، assets
- استخراج import/export map برای درک ارتباط فایلها
- 📝 خروجی Markdown جامع شامل:
- مشخصات پروژه (نام، تاریخ، تعداد فایلها و ...)
- ساختار درختی دایرکتوری
- جدول کامل فایلها با سایز
- توزیع زبانها
- لیست کامل وابستگیها
- محتوای کامل همه فایلهای سورس کد با syntax highlighting
- راهنمای بازسازی AI شامل entry points، دستورات build/run، تکنولوژیهای استفاده شده و import map
- 📥 دانلود فایل
.md یا کپی کردن کل محتوا
- 👁️ پیشنمایش و نمایش Raw Markdown
🧠 نحوه استفاده در AI:
بعد از تولید فایل Markdown، میتوانید:
- کل محتوای فایل
.md را در یک پرامپت جدید به Claude (یا هر AI دیگری) بدهید
- AI به طور کامل ساختار پروژه، کدها، وابستگیها و روابط بین فایلها را میفهمد
- میتوانید از AI بخواهید پروژه را بازسازی کند یا توسعه آن را ادامه دهد
فایلهای ساخته شده:
| فایل | توضیح |
|---|
src/utils/zipAnalyzer.ts | هسته اصلی: باز کردن ZIP، تحلیل کد، تولید Markdown |
src/components/UploadZone.tsx | کامپوننت Drag & Drop آپلود |
src/components/ProcessingOverlay.tsx | انیمیشن پردازش با progress bar |
src/components/ReportViewer.tsx | نمایش گزارش با پیشنمایش و دکمههای دانلود/کپی |
src/App.tsx | صفحه اصلی با state management کامل |
src/index.css | استایلهای Markdown preview |
index.html | عنوان به روز شده |
Files built: src/utils/zipAnalyzer.ts, src/components/UploadZone.tsx, src/components/ProcessingOverlay.tsx, src/components/ReportViewer.tsx, src/App.tsx, index.html, src/index.css