back to home

polarsource / polar

Turn your software into a business.

9,461 stars
668 forks
332 issues
PythonTypeScriptHCL

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing polarsource/polar in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/polarsource/polar)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<p align="center"> <a href="https://polar.sh"> <img src="https://github.com/user-attachments/assets/89a588e5-0c58-429a-8bbe-20f70af41372" /> </a> </p> <div align="center">

<a href="https://www.producthunt.com/posts/polar-5?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-polar&#0045;5" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=484271&theme=dark&period=daily" alt="Polar - An&#0032;open&#0032;source&#0032;monetization&#0032;platform&#0032;for&#0032;developers | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> <a href="https://www.producthunt.com/posts/polar-5?embed=true&utm_source=badge-top-post-topic-badge&utm_medium=badge&utm_souce=badge-polar&#0045;5" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-topic-badge.svg?post_id=484271&theme=dark&period=monthly&topic_id=267" alt="Polar - An&#0032;open&#0032;source&#0032;monetization&#0032;platform&#0032;for&#0032;developers | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

</div> <hr /> <div align="center">

<a href="https://polar.sh">Website</a> <span>  •  </span> <a href="https://polar.sh/docs">Docs</a> <span>  •  </span> <a href="https://polar.sh/docs/api-reference">API Reference</a>

<p align="center"> <a href="https://discord.gg/Pnhfz3UThd"> <img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" /> </a> <a href="https://twitter.com/intent/follow?screen_name=polar_sh"> <img src="https://img.shields.io/twitter/follow/polar_sh.svg?label=Follow%20@polar_sh" alt="Follow @polar_sh" /> </a> </p> </div> <hr />

Polar: Open Source payments infrastructure for the 21st century

Focus on building your passion, while we focus on the infrastructure to get you paid.

  • Sell SaaS and digital products in minutes
  • All-in-one funding & monetization platform for developers.
  • Sell access to GitHub repositories, Discord Support channels, File Downloads, License Keys & much more with Digital Products & Subscriptions.
  • We're the merchant of record handling the...
    • ...boilerplate (billing, receipts, customer accounts etc)
    • ...headaches (sales tax, VAT)

Pricing

  • 4% + 40¢
  • No fixed monthly costs
  • Additional fees may apply. Read more

Roadmap, Issues & Feature Requests

🎯 Upcoming milestones. Check out what we're building towards

💬 Shape the future of Polar with us. Join our Discord

🐛 Found a bug? Submit it here

🔓 Found a security vulnerability? We greatly appreciate responsible and private disclosures. See Security

Polar API & SDK

You can integrate Polar on your docs, sites or services using our Public API and Webhook API.

We also maintain SDKs for the following languages:

Contributions

Our DEVELOPMENT.md file contains everything you need to know to configure your development environment.

[!TIP] Want to get started quickly? Use GitHub Codespaces.

Open in GitHub Codespaces

Contributors

<a href="https://github.com/polarsource/polar/graphs/contributors"> <img src="https://contrib.rocks/image?repo=polarsource/polar" /> </a>

Monorepo

  • server – Python / FastAPI / Dramatiq / SQLAlchemy (PostgreSQL) / Redis
  • clients – Turborepo
    • web (Dashboard) – NextJS (TypeScript)
    • polarkit - Shared React components

<sub>♥️🙏 To our pyproject.toml friends: FastAPI, Pydantic, Dramatiq, SQLAlchemy, Githubkit, sse-starlette, Uvicorn, httpx-oauth, jinja, blinker, pyjwt, Sentry + more</sub><br /> <sub>♥️🙏 To our package.json friends: Next.js, TanStack Query, tailwindcss, openapi-typescript-codegen, axios, radix-ui, cmdk, framer-motion + more</sub><br /> <sub>♥️🙏 To IPinfo that provides IP address data to help us geolocate customers during checkout.</sub>

License

Licensed under Apache License, Version 2.0.