OpenStock: Free, Open-Source Stock Market Tracking with Real-Time Data

Summary
OpenStock offers a powerful, open-source alternative to costly market platforms, enabling users to track real-time stock prices and set personalized alerts. Built with Next.js and TypeScript, it provides detailed company insights and a polished user interface, making financial tracking accessible and free for everyone.
Repository Info
Tags
Click on any tag to explore related repositories
Introduction
OpenStock is a modern, open-source stock market application designed to provide a free alternative to expensive proprietary platforms. Developed by the Open Dev Society, it embodies a mission to make technology and knowledge accessible to all, without paywalls or subscriptions. This platform allows users to track real-time stock prices, set personalized alerts, and delve into detailed company insights, all within a user-friendly interface powered by Next.js, shadcn/ui, and Tailwind CSS.
Installation
To get OpenStock up and running, follow these quick steps:
Prerequisites:
- Node.js 20+ and pnpm or npm
- MongoDB connection string (Atlas or local via Docker Compose)
- Finnhub API key (free tier supported)
- Gmail account for email (or update Nodemailer transport)
- Optional: Google Gemini API key (for AI-generated welcome intros)
Clone and Install:
git clone https://github.com/Open-Dev-Society/OpenStock.git
cd OpenStock
# choose one:
pnpm install
# or
npm install
Configure Environment:
Create a .env file at the project root. Refer to the official repository's Environment Variables section for detailed configuration.
Run Development:
# Next.js dev (Turbopack)
pnpm dev
# or
npm run dev
Open http://localhost:3000 to view the app. For local Inngest workflows, run npx inngest-cli@latest dev in a separate terminal.
Examples
OpenStock provides a rich set of features for managing your stock market interactions:
- Authentication: Secure email/password authentication with protected routes.
- Global Search: A fast search functionality, including a Command + K palette, to find stocks backed by Finnhub.
- Watchlist: Create and manage a personalized watchlist to monitor your preferred stocks.
- Stock Details: Access comprehensive information including TradingView charts, company profiles, and financial widgets.
- Market Overview: View a market heatmap, quotes, and top stories through integrated TradingView widgets.
- Personalized Alerts: Receive AI-personalized welcome emails and daily news summaries tailored to your watchlist.
Why Use OpenStock?
OpenStock stands out as a compelling choice for several reasons:
- Completely Free and Open-Source: Adhering to the Open Dev Society's manifesto, it promises to never lock knowledge or charge for access, making advanced market tracking available to everyone.
- Real-Time Data: Track stock prices and market trends with data from Finnhub and TradingView widgets.
- Modern Tech Stack: Built with cutting-edge technologies like Next.js 15, TypeScript, Tailwind CSS, and MongoDB, ensuring a robust and scalable application.
- User-Centric Features: From personalized watchlists and alerts to a polished dark-themed UI, OpenStock is designed for an intuitive and efficient user experience.
- Community-Driven: It encourages contributions from developers of all skill levels, fostering a welcoming environment for growth and collaboration.
Links
- GitHub Repository: https://github.com/Open-Dev-Society/OpenStock