GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Enoch208/algoflow: AI chat app that turns algorithm descriptions into styled Mermaid flowcharts with Next.js & AI.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
lib
lib
 
 
public
public
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
next.config.ts
next.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

AlgoFlow šŸš€

A sleek, modern chat application that converts algorithm descriptions into beautiful Mermaid flowchart diagrams using Google's Gemini AI. Built with Next.js and styled with the MIMOS color scheme.

Features ✨

  • Smart Algorithm Detection: Automatically detects when users describe algorithms or processes
  • AI-Powered Conversion: Uses Google Gemini to convert natural language algorithms into Mermaid flowcharts
  • Beautiful Visualizations: Clean, professional flowcharts with custom MIMOS styling
  • PNG Export: Download generated diagrams as high-quality PNG images
  • Responsive Design: Works perfectly on desktop and mobile devices
  • Real-time Chat Interface: Smooth, modern chat experience

MIMOS Color Scheme šŸŽØ

  • Maroon: #b51a8a (PANTONE 2415 C)
  • Grey: #616265 (PANTONE COOL GRAY 10 C)
  • White: #ffffff
  • Black: #000000 (PANTONE BLACK C)
  • Silver: #c4c4c4 (PANTONE 877 C)

Quick Start šŸš€

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Google Gemini API key

Installation

  1. Clone the repository

    git clone <your-repo-url>
    cd algoflow
  2. Install dependencies

    npm install
  3. Set up environment variables Create a .env.local file in the root directory:

    GEMINI_API_KEY=your_gemini_api_key_here

    Get your API key from: Google AI Studio

  4. Run the development server

    npm run dev
  5. Open your browser Navigate to http://localhost:3000

Usage šŸ’”

  1. Start a conversation: Type any algorithm description in the chat
  2. Algorithm detection: The app automatically detects algorithm-related content
  3. View flowchart: Generated Mermaid diagrams appear instantly
  4. Download: Click the download button to save diagrams as PNG files

Example Prompts

Try these example algorithm descriptions:

"Create a bubble sort algorithm that sorts an array of numbers in ascending order"

"Binary search algorithm to find a target value in a sorted array"

"Breadth-first search to traverse a graph and find the shortest path"

"Quick sort algorithm with divide and conquer approach"

Tech Stack šŸ› ļø

  • Framework: Next.js 15
  • Language: TypeScript
  • Styling: Tailwind CSS + Custom CSS
  • AI: Google Gemini Pro
  • Visualization: Mermaid.js
  • Export: html2canvas
  • Deployment: Vercel (recommended)

Project Structure šŸ“

algoflow/
ā”œā”€ā”€ app/
│   ā”œā”€ā”€ api/
│   │   └── convert-algorithm/
│   │       └── route.ts          # Gemini API integration
│   ā”œā”€ā”€ globals.css               # Custom MIMOS styling
│   ā”œā”€ā”€ layout.tsx                # Root layout
│   └── page.tsx                  # Main chat interface
ā”œā”€ā”€ public/                       # Static assets
ā”œā”€ā”€ .env.local.example           # Environment template
└── README.md                    # This file

Features in Detail šŸ”

Algorithm Detection

The app uses keyword matching and text analysis to identify:

  • Algorithm descriptions
  • Process explanations
  • Step-by-step procedures
  • Pseudocode
  • Technical workflows

Mermaid Integration

  • Custom MIMOS theme colors
  • Flowchart TD (top-down) format
  • Proper node shapes and connections
  • Clean, readable labels

Export Functionality

  • High-quality PNG export (2x scale)
  • Transparent backgrounds
  • Optimized for printing and sharing

Deployment šŸš€

Vercel (Recommended)

  1. Connect your repository to Vercel
  2. Add environment variables in the Vercel dashboard
  3. Deploy automatically on git push

Manual Deployment

npm run build
npm start

Contributing šŸ¤

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License šŸ“„

This project is licensed under the MIT License.

Support šŸ’¬

For questions or support, please open an issue on GitHub.


Built with ā¤ļø using Next.js and Google Gemini AI

About

AI chat app that turns algorithm descriptions into styled Mermaid flowcharts with Next.js & AI.

algoflowai.vercel.app

Topics

aialgorithmsalgorithms-and-data-structuresflowchartimagenextjs

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.