Skip to content

Commit

Permalink
add post ai screen analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
bigsk1 committed Jul 26, 2024
1 parent a6d606f commit 0f31e90
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 16 deletions.
32 changes: 16 additions & 16 deletions _posts/2024-07-16-Claude-Plus.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ image:

# Claude Plus : AI-Powered Development Assistant

I bring you yet another AI powered app to help you code and build your own apps better.
I built an AI development assistant, currently a work in progress but give it a try.

Claude Plus is an advanced AI-powered development assistant that combines the capabilities of Anthropic's Claude AI with a suite of development tools. It's designed to help developers with various tasks, from coding to project management, all through an interactive chat interface.

This app is in continuous developement and new features are being added.


![Claude-plus](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/a74c4783-5e39-498a-6c43-d53d7dd96c00/public)
![ClaudePlus](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/41f9c009-7d37-4229-ba5f-3bbd8e4da900/public)


## Features

- 🧠 **Interact with Claude-3.5-Sonnet**: Engage with the advanced AI, ask to build your ideas and code files and folders are made!.
- 📁 **File System Manipulation**: Claude will create, read, write and delete files and folders seamlessly on your system.
- 📁 **File System Manipulation**: Claude will create, read, write and delete files and folders seamlessly on your system. The files tab shows date modified and size of files and folders in a list or grid view.
- 🔍 **Powerful Search**: Utilize Tavily API or SearXNG to perform comprehensive searches. Claude also has search tool built in.
- 💡 **Code Snippet Management**: Highlight and manage code snippets efficiently. Have questions about an existing project drop the folder in the projects directory and Claude will have full access.
- 📂 **Project Structure Management**: Build and maintain complex project structures with ease.
Expand All @@ -34,6 +32,8 @@ This app is in continuous developement and new features are being added.
- ⚙️ **Automode**: Automate tasks for increased efficiency and productivity. Set max iterations in env and Claude will cycle through that number of times automaticlly.
- 🔄 **Iterative Tracking**: Monitor changes and iterations accurately during automode sessions.
- ✂️ **Diff-Based Editing**: Edit files using diff-based techniques for precise modifications.
- 💻 **NEW console** feature - You are able to run commands in the UI just like a terminal. Run python scripts within the UI!
- ⬇️ **NEW download projects folder** You can download the entire projects directory with all your created folders and files directly from the UI now.

This application leverages the power of Claude to enhance your development workflow, providing robust tools for file management, search, code analysis, and automation.

Expand Down Expand Up @@ -100,7 +100,7 @@ This application leverages the power of Claude to enhance your development workf

```
cd frontend
npm start
npm run dev
```

3. Open your browser and navigate to `http://localhost:5173/`
Expand All @@ -116,15 +116,13 @@ Claude Plus offers a powerful suite of features to enhance your development work
- **Code Generation**: Describe the functionality you need, and Claude will generate code snippets or entire files.
- **Debugging Assistance**: Paste error messages or problematic code for Claude to analyze and suggest fixes.

![claude](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/f3e51de7-5b42-4634-6afa-3fda6f5eb500/public)

### 2. File and Image Management

- **File Upload**: Easily upload files for Claude to analyze or work with. All uploaded files are stored in the `projects/uploads` folder.
- **Image Analysis**: Upload images for Claude to describe and analyze, useful for UI/UX discussions or diagram interpretations.
- **Code Review**: Upload your code files for Claude to review, suggest improvements, or explain complex sections. It will not only read your files you add but can modify and even delete if requested.

![claude1](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/ba7d095c-35cb-4a88-7fd0-ed63219e6a00/public)
![claude1](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/e142e52d-f257-4c5e-adbb-a1d1e75ba300/public)

### 3. Project Structure Management

Expand Down Expand Up @@ -158,12 +156,15 @@ Claude Plus offers a powerful suite of features to enhance your development work
![claude5](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/88df81c1-27b7-4713-1715-228915742600/public)


### 6. Code Execution and Testing (Coming Soon)
### 6. Code Execution and Testing (In Progress)

- **Secure Sandbox**: Run Python scripts directly within the chat interface.
- **Output Display**: View the results of your code execution inline with your conversation.
- **Interactive Debugging**: Step through code with Claude's guidance to identify and fix issues.

![console](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/dfc074d4-38c6-42b5-a29c-2d82da457800/public)


### 7. Version Control Integration (Coming Soon)

- **Git Commands**: Perform basic git operations like commit, push, and pull directly from the chat.
Expand Down Expand Up @@ -248,11 +249,6 @@ Once inside the dev container:
Note: The first time you open the project in the dev container, it may take a few minutes to build. Subsequent loads will be much faster.


## Github

[https://github.com/bigsk1/claude-plus](https://github.com/bigsk1/claude-plus)


## Contributing

We welcome contributions to Claude Plus! This project is in active development, and things may change rapidly and break and be buggy! Here's how you can contribute:
Expand All @@ -275,4 +271,8 @@ This project is under active development. Features may change, and there might b
- Anthropic for the Claude AI model
- Tavily for the search API
- SearXNG for there privacy focus search
- For giving me the idea for building a web version based on the ideas of a cli version https://github.com/Doriandarko/claude-engineer
- For giving me the idea for building a web version based on the ideas of a cli version https://github.com/Doriandarko/claude-engineer

## Github Repo

[https://github.com/bigsk1/claude-plus](https://github.com/bigsk1/claude-plus)
143 changes: 143 additions & 0 deletions _posts/2024-07-25-AI-Screen-Analyzer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
---
layout: post
title: AI Screen Analyzer
date: 2024-07-25 05:00:00 -500
categories: [docker]
tags: [python,llm,claude,docker,ai,openai,ollama]
image:
path: /assets/images/headers/analyzer.webp
alt: AI Screen Analyzer
---


# AI Screen Analyzer

AI Screen Analyzer is a powerful web application that allows users to capture screenshots, analyze them using various AI providers and models, and engage in conversations about the captured images.

You can capture a website you like and then ask the AI to provide the code to build the same thing.

You can capture any window or full screen ask OpenAI gpt-4o to describe anything about it and then switch providers and follow up with Claude or any Ollama model which will have the previous context and still understand the past conversation and image.

## Features

- **Screen Capture**: Easily capture screenshots of your desktop or specific windows.
- **Multi-Model AI Analysis**: Analyze images using multiple AI models:
- OpenAI's GPT-4 Vision
- Anthropic's Claude 3 Sonnet
- Ollama's local models (including LLaVA)
- **Intelligent Chat**: Engage in conversations about the analyzed images or any other topic.
- **Model Switching**: Seamlessly switch between different AI models for varied perspectives without losing context.
- **Dark/Light Mode**: Toggle between dark and light themes for comfortable viewing.
- **Local Setup**: Run the application locally for enhanced privacy and customization.
- **Docker**: Run in docker because we all love docker.


![ai-screen](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/33c4e5b3-3722-403a-e877-b6906677e600/public)


## Quick Start

Docker: Add your api keys in .env

```bash
docker-compose up -d --build
```

visit http://localhost:3000

## Prerequisites

Before you begin, ensure you have met the following requirements:

- Node.js (v18.0.0 or later) or just run in docker only
- OpenAI API key - if you plan on using openai
- Anthropic API key - if you plan on using Claude models
- Ollama (OPTIONAL for local model support)
- Docker (OPTIONAL but recommended)

## Installation

1. Clone the repository:
```
git clone https://github.com/bigsk1/ai-screen-analyzer.git
cd ai-screen-analyzer
```

2. Install dependencies for both the client and server:
```
npm install
```

3. Create a `.env` file in the root directory and add your API keys:

```env
# for openai gpt-4o is used for image analysis and chat
# ollama uses llava for image analysis
REACT_APP_OPENAI_API_KEY=your_openai_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
ANTHROPIC_MODEL=claude-3-sonnet-20240620
OLLAMA_API_URL=http://localhost:11434
```

## Usage

1. Start the server and react app:
```
npm run dev
```

2. Open your browser and navigate to `http://localhost:3000`.

3. Use the "Start Capturing" button to begin a screen capture.

4. Select the window or area you want to capture.

5. Click "Capture Screenshot" to analyze the image.

6. Choose an AI model from the dropdown menu to analyze the image or engage in chat.

7. Type your questions or comments in the chat box and press send.


## Docker

There is a `docker-compose.yml` file in root which will build the `Dockerfile`

```bash
docker-compose up -d --build
```

visit http://localhost:3000

To remove

```bash
docker-compose down
```


## Configuration
- Add your OpenAI API Key in `.env`
- To change the default Anthropic model, update the `ANTHROPIC_MODEL` variable in your `.env` files.
- If using `ollama` and your host if different then change in the .env, by default when running nativly using npm run dev it uses locahost:11434 and when running docker it uses host.docker.internal:11434 so no need to change in the .env

![btc.png](https://imagedelivery.net/WfhVb8dSNAAvdXUdMfBuPQ/d9e7a714-c9aa-42d2-e4a8-988f62b07800/public)


## Contributing

Contributions to the AI Screen Analyzer are welcome. Please follow these steps:

1. Fork the repository.
2. Create a new branch: `git checkout -b feature/your-feature-name`.
3. Make your changes and commit them: `git commit -m 'Add some feature'`.
4. Push to the branch: `git push origin feature/your-feature-name`.
5. Submit a pull request.



## Github Repo

[https://github.com/bigsk1/ai-screen-analyzer](https://github.com/bigsk1/ai-screen-analyzer)
Binary file added assets/images/headers/analyzer.webp
Binary file not shown.

0 comments on commit 0f31e90

Please sign in to comment.