Skip to content

About

Stock beginner helper

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Stockly

Stockly

AI-powered stock & crypto analysis for Robinhood traders

JavaScript Node.js Express PostgreSQL Chrome

Demo β€’ Features β€’ Installation β€’ Backend Repo


Demo

Stockly Demo

Real-time AI analysis integrated directly into Robinhood

Features

πŸ€– AI-Powered Insights

  • GPT-4 market analysis via OpenRouter
  • Real-time sentiment scoring from news sources
  • Technical indicators and trend detection

πŸ“Š Live Market Data

  • Stock prices from Alpha Vantage
  • Cryptocurrency data from CoinGecko
  • Breaking news via NewsAPI

πŸ” Secure by Design

  • Google OAuth 2.0 authentication
  • Token-based API authorization
  • No browsing or trading data collected

⚑ Seamless Integration

  • Works directly on Robinhood.com
  • Auto-detects stock tickers
  • Clean, non-intrusive overlay

Installation

From Source

# Clone the repository
git clone https://github.com/yourusername/stockly-extension.git
cd stockly-extension

# Install dependencies
npm install

Load in Chrome

  1. Open chrome://extensions/
  2. Enable Developer mode (top right)
  3. Click Load unpacked
  4. Select the stockly-extension folder
  5. Pin the extension and sign in with Google

Configuration

Create a .env file using the template:

cp .env.example .env

Update with your backend URL:

API_BASE_URL=https://your-backend.railway.app
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com

Usage

On Robinhood:

  1. Navigate to any stock page (e.g., robinhood.com/stocks/AAPL)
  2. Extension auto-detects the ticker
  3. Click the Analyze button
  4. View AI-generated insights

Anywhere else:

  • Highlight a ticker symbol (e.g., "TSLA")
  • Right-click β†’ Analyze with Stockly

Tech Stack

Frontend

  • Chrome Extension (Manifest V3)
  • Vanilla JavaScript
  • HTML/CSS

Backend (repo)

  • Node.js + Express
  • PostgreSQL
  • Railway hosting

APIs

  • OpenRouter (GPT-4)
  • Alpha Vantage
  • NewsAPI
  • CoinGecko

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Chrome Extension    β”‚
β”‚  content-script.js   β”‚
β”‚  popup.js            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β”‚ POST /analyze
           β”‚ POST /auth/google
           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Express API         β”‚
β”‚  (Railway)           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β”œβ”€β”€β–Ί PostgreSQL
           β”œβ”€β”€β–Ί OpenRouter (AI)
           β”œβ”€β”€β–Ί Alpha Vantage
           β”œβ”€β”€β–Ί NewsAPI
           └──► CoinGecko

Project Structure

stockly-extension/
β”œβ”€β”€ manifest.json          # Extension configuration
β”œβ”€β”€ content-script.js      # Robinhood page integration
β”œβ”€β”€ popup.html            # Extension popup UI
β”œβ”€β”€ popup.js              # Popup logic
β”œβ”€β”€ popup.css             # Styling
β”œβ”€β”€ Stockly_Logo.png      # Brand assets
β”œβ”€β”€ stocklydemo.gif       # Demo video
β”œβ”€β”€ .env.example          # Config template
└── stockly-landing/      # OAuth landing page

Development

Local Setup

# Start the backend locally
cd stockly-backend
npm install
npm start

Update API endpoint:

// In your config
const API_BASE_URL = 'http://localhost:8080';

Reload extension:

  • Go to chrome://extensions/
  • Click reload icon on Stockly

Debugging

  • Content script: Open DevTools on Robinhood page
  • Service worker: chrome://extensions/ β†’ Inspect views
  • Popup: Right-click extension icon β†’ Inspect

API Integration

Authentication

// User authenticates with Google
const response = await fetch(`${API_BASE_URL}/auth/google`, {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ idToken: googleToken })
});

const { user } = await response.json();
// Store user.token for subsequent requests

Stock Analysis

// Analyze a ticker
const response = await fetch(`${API_BASE_URL}/analyze`, {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    ticker: 'AAPL',
    isCrypto: false,
    token: userToken
  })
});

const { result } = await response.json();
// result contains formatted HTML analysis

Security

  • All requests authenticated via JWT tokens
  • User credentials encrypted in PostgreSQL
  • HTTPS-only communication
  • Rate limiting on backend
  • No sensitive data stored in extension

Permissions:

  • activeTab - Detect tickers on current page
  • storage - Save auth tokens locally
  • identity - Google OAuth
  • host_permissions - Inject UI on Robinhood

Roadmap

  • Support for TD Ameritrade, E*TRADE
  • Portfolio tracking dashboard
  • Price alerts and notifications
  • Options analysis with Greeks
  • Historical performance charts
  • Community sentiment integration

Contributing

Contributions welcome! Please:

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

License

MIT License - see LICENSE for details

Disclaimer

Educational purposes only. Stockly is not financial advice. All investments carry risk of loss. Past performance does not guarantee future results. Consult qualified financial advisors before making investment decisions.

Authors

Riad Benyamna
Riad Benyamna
Computer Science @ USM
Graduating May 2027
πŸ“§ Email β€’ πŸ’Ό LinkedIn β€’ πŸ’» GitHub
Hossam Darwish
Hossam Darwish


πŸ“§ Email β€’ πŸ’Ό LinkedIn β€’ πŸ’» GitHub

Built at USM β€’ Powered by AI β€’ Made for Traders

⭐ Star this repo if you find it useful!

About

Stock beginner helper

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages