Skip to content

Super simple, single-file text editor with real-time AI-powered auto-completion suggestions, supporting multiple AI models from Anthropic, OpenAI, and GROQ.

Notifications You must be signed in to change notification settings

Archture/AI-Auto-Completion-Editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Single-File AI Auto-Completion Editor

Super simple, single-file text editor with real-time AI-powered auto-completion suggestions, supporting multiple AI models from Anthropic, OpenAI, and GROQ.

CleanShot 2024-11-20 at 00 24 37@2x

Features

  • Real-time AI text completion suggestions
  • Support for multiple AI providers:
    • Anthropic (Claude 3 models)
    • OpenAI (GPT-4 models)
    • GROQ (Various LLaMA and Mixtral models)
  • Adjustable AI temperature/creativity settings
  • Mobile-friendly with touch/swipe support
  • Persistent settings and content via localStorage
  • Clean, minimal interface using Pico CSS
  • JetBrains Mono font for optimal readability
  • Paste plain-text context to fine-tune the tone

CleanShot 2024-11-20 at 00 29 38@2x

Technologies Used

  • HTML5
  • CSS3
  • JavaScript/jQuery
  • Pico CSS for styling
  • Various AI APIs (Anthropic, OpenAI, GROQ)

Setup

  1. Clone the repository
  2. Open index.html in a web browser
  3. Click the Settings panel
  4. Enter your API key(s) for the desired AI providers:
    • GROQ API key
    • OpenAI API key
    • Anthropic API key

Usage

  1. Start typing in the editor
  2. The AI will automatically suggest completions after you stop typing
  3. Accept suggestions:
    • Desktop: Press Tab or Right Arrow key
    • Mobile: Tap suggestion or swipe right

API Requirements

You'll need at least one API key from the following providers:

Configuration

The editor allows customization of:

  • AI model selection (based on available API keys)
  • Temperature/creativity level (0.0 - 1.0)
  • Settings persistence across sessions

Privacy

  • API keys are stored locally in your browser
  • No data is sent to any server except the AI providers
  • All text processing happens client-side

Browser Support

  • Works on modern browsers (Chrome, Firefox, Safari, Edge)
  • Fully responsive design for mobile and desktop
  • Touch-optimized for mobile devices

License

MIT License - feel free to use and modify as needed.

About

Super simple, single-file text editor with real-time AI-powered auto-completion suggestions, supporting multiple AI models from Anthropic, OpenAI, and GROQ.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%