Project Info
Stylo
An Electron application with a transparent floating interface for macOS, featuring AI-powered text enhancement capabilities.
Features
- Floating Interface: Transparent window that stays above other applications
- Liquid Glass Effect: Transparency and background blur for a modern look
- Smooth Animations: Seamless transitions between button states
- 4 Action Buttons:
- Text Rephrasing
- Text Translation
- Prompt Enhancement (AI-powered with GPT-4o-mini)
- Voice Input
π New: AI Prompt Enhancement
The Prompt Enhancer button (star icon) can now:
- Detect text in any input field, textarea, or contenteditable element
- Send text to Supabase Edge Function for AI processing
- Enhance prompts using GPT-4o-mini via OpenAI API
- Replace original text with AI-enhanced version
- Work across all web applications and websites
Installation
- Install dependencies:
npm install
- Launch the application:
npm start
- For development mode:
npm run dev
Usage
Basic Interface
- Clicking buttons: Changes the active state and triggers the action
- Keyboard Shortcuts:
1: Rephrase text2: Translate text3: Enhance prompt with AI (star button)4: Activate voice input
AI Prompt Enhancement
- Type text in any input field, textarea, or contenteditable element on any website
- Click the star button (Prompt Enhancer) in the floating interface
- Watch as your text gets enhanced by GPT-4o-mini
- The enhanced text automatically replaces your original text
Supported Input Types
<input type="text"><input type="search"><input type="email"><textarea>[contenteditable="true"]elements
Design
- Active buttons: Black 100% opacity with scale animation
- Inactive buttons: Black 30% opacity (gray/transparent)
- Hover state: Black 60% opacity
- Animations: Cubic-bezier transitions for smooth effects
- Glass effect: Backdrop-filter with transparency
- Minimalistic Apple vibe: Clean, transparent design
Setup for AI Features
1. Supabase Configuration
# Install Supabase CLI
npm install -g supabase
# Initialize and link your project
supabase init
supabase link --project-ref YOUR_PROJECT_REF
# Deploy the Edge Function
supabase functions deploy enhance-prompt
2. Environment Variables
Create .env.local in supabase-functions/enhance-prompt/:
OPENAI_API_KEY=your_openai_api_key_here
3. Update Configuration
Edit script.js and replace:
YOUR_PROJECT_REFwith your Supabase project referenceYOUR_ANON_KEYwith your Supabase anonymous key
Testing
Open test-page.html in your browser to test the AI enhancement feature with various input types.
Project Structure
βββ main.js # Main Electron process
βββ index.html # User interface
βββ styles.css # Styles and animations
βββ script.js # Interaction logic + AI features
βββ config.js # Configuration file
βββ test-page.html # Test page for AI features
βββ icone/ # SVG icons directory
βββ supabase-functions/ # Supabase Edge Functions
β βββ enhance-prompt/ # AI enhancement function
β βββ rephrase-text/ # Text rephrasing function
β βββ translate-text/ # Text translation function
β βββ voice-processing/ # Voice processing function
β βββ functions-config.json # Functions configuration
βββ supabase/ # Supabase configuration
β βββ config.toml # Supabase config
βββ env.example # Environment variables template
βββ package.json # Project configuration
Analysis
View
Metric
- 9
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- HTMLIn code
- JavaScriptIn code
- SupabaseIn code
- SwiftIn code
- TypeScriptIn code
6 of 6 appear in the indexed code.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
533 KB
Source files
72
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
helwan2/Stylo
109 files Β· 995 KB Β· @ 59bb92a
Structure
Interface
13 files Β· 12%Screens, components and styles rendered to the user.
Application logic
24 files Β· 22%Domain rules, services and shared utilities.
+2 moreData & schema
1 file Β· 1%Schema definitions, migrations and data access.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here β open the file browser to check anything the diagram implies.
Languages
- JavaScript29%
- HTML29%
- Markdown28%
- Swift5%
- CSS5%
- TypeScript3%
- Other (1)1%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
package.json
npm Β· 5- @composio/core
- @composio/openai-agents
- @openai/agents
- dotenv
- electron
supabase-functions/package.json
npm Β· 1- supabase
Declared in the repositoryβs manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This projectβs features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.