Open-Dev-Society/OpenStock

▲ 752 stars today★ 16,498⑂ 2,118

OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone

About Open-Dev-Society/OpenStock

Open-Dev-Society/OpenStock is an open-source project on GitHub, mainly written in TypeScript. OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts It currently holds 16,498 stars and 2,118 forks with 29 open issues, and was last pushed on 2026-09-19 (repository created 2025-09-28).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #4 with 752 new stars today.

GitHub Repository Details

Repository Open-Dev-Society/OpenStock · default branch main · size 2239 KB · watchers 96 · source: GitHub REST API and repository README

README

New from Open Dev Society: kitbash. Before you build, find out which parts already exist on GitHub. Borrow them, adapt them, or write the rest.

https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Star History Rank https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/GitHub Trending Repository of the Day

https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Open-Dev-Society%2FOpenStock | Trendshift https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Open-Dev-Society%2FOpenStock | Trendshift https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Open-Dev-Society%2FOpenStock | Trendshift https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Open-Dev-Society%2FOpenStock | Trendshift


https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Project Banner © Open Dev Society. This project is licensed under AGPL-3.0; if you modify, redistribute, or deploy it (including as a web service), you must release your source code under the same license and credit the original authors.

https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Next.js badge

OpenStock

OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.

Note: OpenStock is community-built and not a brokerage. Market data may be delayed based on provider rules and your configuration. Nothing here is financial advice.

📋 Table of Contents

1. ✨ Introduction 2. 🌍 Open Dev Society Manifesto 3. ⚙️ Tech Stack 4. 🔋 Features 5. 🤸 Quick Start 6. 🐳 Docker Setup 7. 🔐 Environment Variables 8. 🧱 Project Structure 9. 📡 Data & Integrations 10. 🌍 Market Support 11. 🧪 Scripts & Tooling 12. 🤝 Contributing 13. 🛡️ Security 14. 📜 License 15. 🙏 Acknowledgements

✨ Introduction

OpenStock is a modern stock market app powered by Next.js (App Router), shadcn/ui and Tailwind CSS, Better Auth for authentication, MongoDB for persistence, Finnhub for market data, and TradingView widgets for charts and market views.

🌍 Open Dev Society Manifesto

We live in a world where knowledge is hidden behind paywalls. Where tools are locked in subscriptions. Where information is twisted by bias. Where newcomers are told they’re not “good enough” to build.

We believe there’s a better way.

Because the future belongs to those who build it openly.

⚙️ Tech Stack

Core

Auth & Data Automation & Comms Language composition

🔋 Features

🤸 Quick Start

Prerequisites

Clone and install
git clone https://github.com/Open-Dev-Society/OpenStock.git
cd OpenStock

choose one:

pnpm install

or

npm install

Configure environment

pnpm test:db

or

npm run test:db

Run development

# Next.js dev (Turbopack)
pnpm dev

or

npm run dev

Run Inngest locally (workflows, cron, AI)

npx inngest-cli@latest dev

Build & start (production)

pnpm build && pnpm start

or

npm run build && npm start

Open http://localhost:3000 to view the app.

🐳 Docker Setup

You can run OpenStock and MongoDB easily with Docker Compose.

1) Ensure Docker and Docker Compose are installed.

2) docker-compose.yml includes two services:

3) Create your .env (see examples below). For the Docker setup, use a local connection string like:
MONGODB_URI=mongodb://root:example@mongodb:27017/openstock?authSource=admin

4) Start the stack:

# from the repository root
docker compose up -d mongodb && docker compose up -d --build

5) Access the app:

Notes Optional: Example MongoDB service definition used in this project:
services:
  mongodb:
    image: mongo:7
    container_name: mongodb
    restart: unless-stopped
    environment:
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: example
    ports:
  • "27017:27017"
volumes:
  • mongo-data:/data/db
healthcheck: test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"] interval: 10s timeout: 5s retries: 5

volumes: mongo-data:

🔐 Environment Variables

Create .env at the project root. Choose either a hosted MongoDB (Atlas) URI or the local Docker URI.

Hosted (MongoDB Atlas):

# Core
NODE_ENV=development

Database (Atlas)

MONGODB_URI=mongodb+srv://:@/?retryWrites=true&w=majority

Better Auth

BETTER_AUTH_SECRET=your_better_auth_secret BETTER_AUTH_URL=http://localhost:3000

Finnhub

Note: NEXT_PUBLIC_FINNHUB_API_KEY is required for Vercel deployment

NEXT_PUBLIC_FINNHUB_API_KEY=your_finnhub_key FINNHUB_BASE_URL=https://finnhub.io/api/v1

Sentiment insights (optional)

ADANOS_API_KEY=your_adanos_api_key

ADANOS_API_BASE_URL=https://api.adanos.org

AI Provider (optional, default: "gemini")

Supported: "gemini", "minimax", "siray"

AI_PROVIDER=gemini

Gemini

GEMINI_API_KEY=your_gemini_api_key

MiniMax (optional, used when AI_PROVIDER=minimax or as fallback)

Get your key at https://platform.minimaxi.com

MINIMAX_API_KEY=your_minimax_api_key

Inngest Signing Key (required for Vercel deployment)

Get this from your Inngest dashboard: https://app.inngest.com/env/settings/keys

INNGEST_SIGNING_KEY=your_inngest_signing_key

Email (Nodemailer via Gmail; consider App Passwords if 2FA)

[email protected] NODEMAILER_PASSWORD=your_gmail_app_password

Local (Docker Compose) MongoDB:

# Core
NODE_ENV=development

Database (Docker)

MONGODB_URI=mongodb://root:example@mongodb:27017/openstock?authSource=admin

Better Auth

BETTER_AUTH_SECRET=your_better_auth_secret BETTER_AUTH_URL=http://localhost:3000

Finnhub

Note: NEXT_PUBLIC_FINNHUB_API_KEY is required for Vercel deployment

NEXT_PUBLIC_FINNHUB_API_KEY=your_finnhub_key FINNHUB_BASE_URL=https://finnhub.io/api/v1

Sentiment insights (optional)

ADANOS_API_KEY=your_adanos_api_key

ADANOS_API_BASE_URL=https://api.adanos.org

AI Provider (optional, default: "gemini")

Supported: "gemini", "minimax", "siray"

AI_PROVIDER=gemini

Gemini

GEMINI_API_KEY=your_gemini_api_key

MiniMax (optional, used when AI_PROVIDER=minimax or as fallback)

Get your key at https://platform.minimaxi.com

MINIMAX_API_KEY=your_minimax_api_key

Inngest Signing Key (required for Vercel deployment)

Get this from your Inngest dashboard: https://app.inngest.com/env/settings/keys

INNGEST_SIGNING_KEY=your_inngest_signing_key

Email (Nodemailer via Gmail; consider App Passwords if 2FA)

[email protected] NODEMAILER_PASSWORD=your_gmail_app_password

Notes

🧱 Project Structure

app/
  (auth)/
    layout.tsx
    sign-in/page.tsx
    sign-up/page.tsx
  (root)/
    layout.tsx
    page.tsx
    help/page.tsx
    stocks/[symbol]/page.tsx
  api/inngest/route.ts
  globals.css
  layout.tsx
components/
  ui/…          # shadcn/radix primitives (button, dialog, command, input, etc.)
  forms/…       # InputField, SelectField, CountrySelectField, FooterLink
  Header.tsx, Footer.tsx, SearchCommand.tsx, WatchlistButton.tsx, …
database/
  models/watchlist.model.ts
  mongoose.ts
lib/
  actions/…     # server actions (auth, finnhub, user, watchlist)
  better-auth/…
  inngest/…     # client, functions, prompts
  nodemailer/…  # transporter, email templates
  constants.ts, utils.ts
scripts/
  test-db.mjs
types/
  global.d.ts
next.config.ts          # i.ibb.co image domain allowlist
postcss.config.mjs      # Tailwind v4 postcss setup
components.json         # shadcn config
public/assets/images/   # logos and screenshots

📡 Data & Integrations

🌍 Market Support

OpenStock supports 30+ international stock exchanges including NSE, LSE, TSX, and more. However, please be aware of important limitations based on our data providers.

Quick Facts:

See MARKET_SUPPORT.md for: For the latest supported symbols and exchanges, see Finnhub's exchange list.

🧪 Scripts & Tooling

Package scripts

Developer experience

🤝 Contributing

You belong here. Whether you’re a student, a self-taught dev, or a seasoned engineer — contributions are welcome.

🛡️ Security

If you discover a vulnerability:

📜 License

OpenStock is and will remain free and open for everyone. This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.

🙏 Acknowledgements

— Built openly, for everyone, forever free. Open Dev Society.
© Open Dev Society. This project is licensed under AGPL-3.0; if you modify, redistribute, or deploy it (including as a web service), you must release your source code under the same license and credit the original authors.

Our Honourable Contributors

❤️ Partners & Backers

https://github.com/Open-Dev-Society/OpenStock/blob/HEAD/Siray.ai Logo

Siray.ai — The robust AI infrastructure backing OpenStock. Siray.ai ensures our market insights never sleep.

Special thanks

Huge thanks to Adrian Hajdin (JavaScript Mastery) — his excellent Stock Market App tutorial was instrumental in building OpenStock for the open-source community under the Open Dev Society.

GitHub: adrianhajdin YouTube tutorial: Stock Market App Tutorial YouTube channel: JavaScript Mastery

GitHub Stars & Activity

16,498Stars
2,118Forks
29Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars16,498
Forks2,118
Open issues29
Primary languageTypeScript
LicenseAGPL-3.0
Stars gained today752
Created2025-09-28
Last pushed2026-09-19

Trending History

Daily boardrank #4 · ▲ 752 stars
Weekly boardrank #37 · ▲ 1,636 stars

Related GitHub Projects

1

anthropics / claude-code

TypeScript★ 146,951⑂ 23,997▲ 415 stars
2

OpenCut-app / OpenCut

TypeScript★ 89,948⑂ 8,888▲ 126 stars
3

ZuodaoTech / everyone-can-use-english

TypeScript★ 38,103⑂ 5,221▲ 436 stars
4

supermemoryai / supermemory

TypeScript★ 30,670⑂ 2,676▲ 392 stars
5

browserbase / stagehand

TypeScript★ 24,631⑂ 1,698▲ 146 stars
6

vercel-labs / json-render

TypeScript★ 17,059⑂ 907▲ 585 stars
7

ahmedkhaleel2004 / gitdiagram

TypeScript★ 16,720⑂ 1,275▲ 285 stars
8

krillinai / OpenCreator

TypeScript★ 11,884⑂ 1,184▲ 317 stars

More Trending Repositories