An open API service indexing awesome lists of open source software.

https://github.com/holasoymalva/flowdev

Automating tasks for developers from prompts
https://github.com/holasoymalva/flowdev

developer-tools development

Last synced: 2 months ago
JSON representation

Automating tasks for developers from prompts

Awesome Lists containing this project

README

          

# 🧠 FLOWDEV β€” Automate Developer Tasks with AI Prompts

What if you could just **type a prompt** and FLOWDEV did the boring dev work for you?

Refactor code. Generate unit tests. Add logging. Scaffold API endpoints. All from one CLI + VSCode plugin β€” powered by GPT-4.

FLOWDEV turns your prompt into production-ready code, directly in your repo.
It’s like having a senior dev on standby, 24/7.

---

## ⚑ Features

- πŸ” **Refactor your code** via prompt
β†’ `flowdev "Refactor this controller to clean architecture"`

- πŸ§ͺ **Generate unit tests**
β†’ `flowdev "Write Jest tests for this service"`

- 🧰 **Add logging** (Pino, Winston, etc.)
β†’ `flowdev "Add logging to these API handlers"`

- πŸ”’ **Add input validation**
β†’ `flowdev "Add Zod validation to this endpoint"`

- πŸ“„ **Generate documentation**
β†’ `flowdev "Generate Swagger docs for this file"`

- 🧠 Works with:
- JavaScript / TypeScript
- Angular, React, Node.js
- More coming soon...

---

## πŸš€ Quick Start

### 1. Install the CLI

```bash
npm install -g flowdev
````

### 2. Authenticate

```bash
flowdev auth
```

> Requires an OpenAI API Key or Gemini API Key.

### 3. Run on your code

```bash
flowdev "Write unit tests for this file" --file src/api/user.ts
```

You can also pipe code directly:

```bash
cat service.ts | flowdev "Refactor this to use dependency injection"
```

Or use with Git staged files:

```bash
git diff --cached | flowdev "Add comments and logs"
```

---

## 🧩 Integrations

* βœ… VS Code Extension (optional)
* βœ… GitHub Actions (coming soon)
* βœ… Git pre-commit hook (`.flowdevrc`)
* βœ… Output to file or terminal
* βœ… Custom prompt templates

---

## πŸ’‘ Use Cases

| Prompt | What it does |
| ------------------------------------------------ | -------------------------------------- |
| `"Add logging to all routes"` | Adds `logger.info()` or Pino to routes |
| `"Generate Swagger for this controller"` | Generates OpenAPI spec |
| `"Write tests"` | Creates Jest or Vitest test file |
| `"Explain this regex"` | Outputs a plain-English explanation |
| `"Translate this Angular service to React hook"` | Converts Angular logic to React |

---

## πŸ” Security

* Code never leaves your local machine unless explicitly allowed.
* Supports local models (coming soon).
* Add `.flowdevignore` to skip sensitive files.

---

## πŸ› οΈ Roadmap

* [ ] GitHub PR suggestions
* [ ] GPT-based code review
* [ ] Custom model support (Claude, Mistral, etc.)
* [ ] Local inference mode (Ollama)

---

## πŸ‘¨β€πŸ’» Created by Developers, for Developers

FLOWDEV was built by devs tired of repetitive tasks and long refactor sessions.
If you live in TypeScript, CLI tools, and unit tests β€” this is for you.

---

## πŸ“« Join the Dev Beta

Get early access, report issues, or request features:

* [x] GitHub Issues
* [x] Discord Community (coming soon)
* [x] Twitter: [@flowdev\_ai](https://twitter.com/flowdev_ai)
* [x] Site: [flowdev.tools](https://flowdev.tools)

---

## πŸ§ͺ Sample Prompt

```bash
flowdev "Add Zod validation to this route handler" --file routes/user.ts
```

Before:

```ts
app.post("/user", async (req, res) => {
const user = req.body;
saveUser(user);
});
```

After:

```ts
import { z } from "zod";

const UserSchema = z.object({
name: z.string(),
email: z.string().email(),
});

app.post("/user", async (req, res) => {
const parseResult = UserSchema.safeParse(req.body);
if (!parseResult.success) return res.status(400).json(parseResult.error);
saveUser(parseResult.data);
});
```

---

## πŸ“„ License

MIT License Β© 2025 β€” [@holasoymalva](https://github.com/holasoymalva)