Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 77 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,78 @@
# Open Source WorkFlow
please support this project
`workflow` is a project for managing all the tasks of devs like

1. creating project
2. installing libraries
3. using opensource code blocks
4. removing import export bloatware
5. follow DNR (do not show repeating)
6. get the complexity and rendering of code at time
7. be a 10x dev with the help of workflow

๐Ÿš€ **10x Developer Workflow Tool** - Supercharge your development productivity!

`workflow` is a comprehensive project for managing all development tasks and becoming a 10x developer with powerful workflow automation.

## ๐ŸŽฏ Features

### โœ… Implemented Core Features
1. **๐Ÿ—๏ธ Creating Project** - Scaffold new projects with popular templates (Next.js, React, Vue, Node.js, Express)
2. **๐Ÿ“ฆ Installing Libraries** - Smart package manager integration with popular library suggestions
3. **๐Ÿงฉ Using Opensource Code Blocks** - Searchable code snippet library with syntax highlighting
4. **๐Ÿงน Removing Import/Export Bloatware** - Automated cleanup of unused imports and code bloat
5. **๐Ÿšซ Follow DNR (Do Not Repeat)** - Advanced duplicate code detection and analysis
6. **๐Ÿ“Š Get Complexity and Rendering Analysis** - Real-time code complexity metrics and performance analysis
7. **โšก 10x Developer Productivity** - All-in-one workflow interface for maximum efficiency

### ๐Ÿ› ๏ธ Additional Features
- **File Browser** - Navigate and explore project directories
- **VS Code Integration** - One-click project opening
- **Real-time Analysis** - Performance, complexity, and code quality metrics
- **Template Management** - Create and manage reusable code templates
- **Smart Suggestions** - Popular packages and best practices recommendations

## ๐Ÿš€ Getting Started

### Prerequisites
- Node.js 16+
- npm/yarn/pnpm

### Installation
```bash
git clone <repository-url>
cd workflow
npm install
```

### Development
```bash
npm run dev
```

### Production
```bash
npm run build
npm start
```

## ๐ŸŽฎ Usage

1. **Set your project path** in the input field
2. **Choose your workflow action**:
- **Create Project**: Select template and generate new project structure
- **Install Libraries**: Add dependencies with smart package suggestions
- **Code Blocks**: Browse and use opensource code templates
- **Analyze Code**: Get complexity metrics, performance insights, and duplicate detection

## ๐Ÿ—๏ธ Architecture

- **Frontend**: Next.js 13 + TypeScript + Chakra UI
- **Backend**: Next.js API Routes with Node.js child processes
- **Features**: File system operations, package management, code analysis
- **UI**: Responsive design with modals and real-time feedback

## ๐Ÿ“ˆ Code Quality Features

- **Complexity Analysis**: Cyclomatic complexity and maintainability index
- **Performance Metrics**: Nested loops, DOM queries, sync operations detection
- **Import Analysis**: Unused import detection and cleanup
- **Duplicate Detection**: DNR compliance checking with line-by-line analysis

## ๐Ÿค Contributing

Please support this project! Contributions, issues, and feature requests are welcome.

## ๐Ÿ“„ License

Open Source - feel free to use and modify for your development workflow needs.
30 changes: 30 additions & 0 deletions assets/codeblocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"blocks": [
{
"id": "react-component",
"title": "React Functional Component",
"description": "Basic React functional component template",
"code": "import React from 'react';\n\ninterface Props {\n // Define your props here\n}\n\nconst ComponentName: React.FC<Props> = ({ }) => {\n return (\n <div>\n {/* Your JSX here */}\n </div>\n );\n};\n\nexport default ComponentName;",
"language": "typescript",
"tags": [
"react",
"component",
"typescript"
],
"category": "react"
},
{
"id": "api-route",
"title": "Next.js API Route",
"description": "Basic Next.js API route template",
"code": "import type { NextApiRequest, NextApiResponse } from \"next\";\n\nexport default function handler(\n req: NextApiRequest,\n res: NextApiResponse\n) {\n switch (req.method) {\n case \"GET\":\n res.status(200).json({ message: \"GET request\" });\n break;\n case \"POST\":\n res.status(200).json({ message: \"POST request\" });\n break;\n default:\n res.status(405).json({ error: \"Method not allowed\" });\n }\n}",
"language": "typescript",
"tags": [
"nextjs",
"api",
"typescript"
],
"category": "api"
}
]
}
Loading