Giter VIP home page Giter VIP logo

chatgpt-file-uploader's Introduction

logo

ChatGPT File Uploader Extended

Chrome Extension Boilerplate with
React + Vite + TypeScript

hits

About the Extension

This is a Chrome extension developed using React, TypeScript, and Vite. The extension allows users to upload and process various file types through a chatbot-like conversation system.

Features

  • Upload and process different file types such as TXT, JS, PY, HTML, CSS, JSON, CSV, MD, TS, TSX, JSX, PDF, DOC, DOCX, XLS, and XLSX.

  • Automatic extraction of text content from PDF, Word, and Excel files. Chunked processing of large files to accommodate chatbot limitations.

  • Configurable chunk size for better control over the conversation flow.

  • Simulated conversation prompt generation based on the file context.

  • User-friendly interface for selecting files and monitoring the upload progress.

  • Supported on Google Chrome as a browser extension. Installation

To install the File Uploader Chrome extension, follow these steps

Clone the repository:

git clone https://github.com/ariburaco/chatgpt-file-uploader

Navigate to the project directory: cd file-uploader-extension -Install dependencies: pnpm install -Start the dev env.: pnpm run build -Open Google Chrome and go to chrome://extensions. -Enable the "Developer mode" toggle. -Click on the "Load unpacked" button. -Select the dist directory from the project folder. -The File Uploader extension should now be installed and visible in the extensions list.

Usage

Once the File Uploader extension is installed, you can use it to upload and process files. Follow these steps:

  • When you navigate the chat.openai.com, you will see the Upload File button under the message box.
  • The File Uploader interface will open in a new tab.
  • Specify the chunk size (number of characters per chunk) for processing large files.
  • The file will be divided into chunks and sent to the chatbot-like conversation system for processing.
  • The conversation prompts will be generated based on the file context and displayed in the chat.
  • Wait for each chunk to be processed before proceeding to the next one.
  • The interface will be cleared, and you can upload another file if needed.

Configuration

The File Uploader extension provides a configuration option for the chunk size. By default, the chunk size is set to 500 characters. To change the chunk size, follow these steps:

  • Locate the "Chunk Size" input field.
  • Enter the desired chunk size value. (10.000 to 15.000 is a good range)

Supported File Types

The File Uploader extension supports the following file types for upload and processing:

  • TXT: Plain text files
  • JS: JavaScript files
  • PY: Python files
  • HTML: HTML files
  • CSS: CSS files
  • JSON: JSON files
  • CSV: Comma-separated values files
  • MD: Markdown files
  • TS: TypeScript files
  • TSX: TypeScript JSX files
  • JSX: JSX files
  • PDF: PDF files
  • DOC: Microsoft Word documents (DOC format)
  • DOCX: Microsoft Word documents (DOCX format)
  • XLS: Microsoft Excel spreadsheets (XLS format)
  • XLSX: Microsoft

About the Boilerplate

Bootstrapped with chrome-extension-boilerplate-react-vite

Table of Contents

Intro

This boilerplate is made for creating chrome extensions using React and Typescript.

The focus was on improving the build speed and development experience with Vite.

Features

Installation

Procedures

  1. Clone this repository.
  2. Change name and description in package.json => Auto synchronize with manifest
  3. Run pnpm install or npm i (check your node version >= 16)
  4. Run pnpm dev or npm run dev
  5. Load Extension on Chrome
    1. Open - Chrome browser
    2. Access - chrome://extensions
    3. Check - Developer mode
    4. Find - Load unpacked extension
    5. Select - dist folder in this project (after dev or build)
  6. If you want to build in production, Just run pnpm build or npm run build.

Thanks To

Jetbrains Jackson Hong
JetBrains Logo (Main) logo. Jackson Hong

Jonghakseo

chatgpt-file-uploader's People

Contributors

ariburaco avatar bursica avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.