karmacircleCommunity/KarmaCircle
Über uns
A platform to connect and support NGOs, charities and you to build a better tomorrow.
Web- und App-EntwicklungWhat you can do
- Find organizations in a searchable directory and follow them.
- Set up an organization step by step, from draft to a live public page, with an owner dashboard.
- Run events in person, online or hybrid, with drafts, capacity, a waitlist, approval or invitation access, check-in and CSV export.
- Join events and keep track of what you attend and host.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalKarmaCircle
KarmaCircle connects NGOs, charities and volunteers. Organizations publish a profile and run events, and people find them, follow them and sign up.
Open the site · API docs · Knowledge base · How it works · Run it locally
It is a monorepo with a React web app, a TypeScript API on PostgreSQL and a Go background worker.
What you can do
- Find organizations in a searchable directory and follow them.
- Set up an organization step by step, from draft to a live public page, with an owner dashboard.
- Run events in person, online or hybrid, with drafts, capacity, a waitlist, approval or invitation access, check-in and CSV export.
- Join events and keep track of what you attend and host.
- Sign in with email and password or Google, and reset a forgotten password.
- Support an organization through a Razorpay checkout.
Tech stack
| Part | Tools |
|---|---|
Web (apps/web) |
React 19, TypeScript 6, Vite 8, Tailwind CSS 4, React Router 7, SWR 2, Redux Toolkit 2, Zustand 5, GSAP 3 |
API (apps/api) |
Node.js, Express 4, TypeScript 5, Drizzle ORM 0.45, Zod 4, Passport and JWT, Swagger UI |
Worker (apps/worker) |
Go 1.26, pgx 5, standard library HTTP server |
| Data and services | PostgreSQL 17, Vercel Blob for images, Resend for email, Razorpay for payments |
| Testing | Vitest 5, Playwright 1.63, Jest 29, Supertest 7 |
| Tooling and hosting | pnpm 11, Turborepo 2, GitHub Actions, Vercel, Neon, Render |
Architecture
flowchart LR
web["React web app<br/>Vercel"] -->|"REST, cookie session"| api["Express API<br/>Vercel"]
api --> db[("PostgreSQL 17<br/>Neon")]
api -.->|"wake after commit"| worker["Go worker<br/>Render"]
worker -->|"claim jobs, total views"| db
worker -->|"queued email"| email["Resend"]
api -->|"password reset"| email
web -->|"image upload with a short-lived token"| blob["Vercel Blob"]
The decisions and their trade-offs are in How KarmaCircle works.
Engineering highlights
Web and mobile
- Mobile-first layouts in Tailwind CSS, backed by a written design system.
- Route-level code splitting: every page except the landing page loads on demand, and a failed chunk download shows a reload screen.
- Long lists that stay light: the API pages them, and the app loads more on scroll with skeleton placeholders.
- Time zones done properly: an event keeps its own zone, and readers elsewhere also see their local time.
- Direct image upload: the browser sends cover images straight to storage using a short-lived token from the API.
- Accessibility: a skip link and reduced-motion handling, with measured scores below.
Backend and data
- No overbooking: joining locks the event row, so two people cannot take the last place.
- Transactional outbox: an email job is saved in the same transaction as the change it reports.
- A queue without a broker: the worker claims jobs with
FOR UPDATE SKIP LOCKEDand retries with backoff. - Measured indexes: the upcoming events query went from about 19 ms to under 1 ms on 100,000 events (numbers).
- Sessions and abuse limits:
httpOnlycookie sessions that can be revoked, rate limits and daily email budgets.
Where it runs
| Part | Production |
|---|---|
| Web | www.karmacircle.org on Vercel |
| API | api.karmacircle.org on Vercel, Singapore |
| Database | PostgreSQL on Neon, Singapore |
| Worker | Render, from main |
Status on 2026-11-30:
- Production started with an empty database, so the public lists hold only what has been added since.
- The worker runs in development mode, so queued email is not sent yet.
- The dev environment has no worker.
- CI uses Node.js 22, while the production API runs on Node.js 26.
Quick start
You need Node.js 22.22.1 or newer, PostgreSQL 17 and, for the worker, Go 1.26. These commands use Homebrew on macOS. The local development guide explains each step, other options and common problems.
- Clone and install.
git clone https://github.com/karmacircleCommunity/KarmaCircle.git
cd KarmaCircle
npm install --global [email protected]
pnpm install --frozen-lockfile
- Start PostgreSQL and create a database.
brew install postgresql@17
brew services start postgresql@17
/opt/homebrew/opt/postgresql@17/bin/createdb karmacircle_dev
- Copy the example environment files, which already hold working local values.
cp apps/api/.env.example apps/api/.env
cp apps/web/.env.example apps/web/.env
- Create the tables and load demo data.
pnpm --filter karmacircle-api db:migrate
pnpm --filter karmacircle-api db:seed
- Start the web app and the API.
pnpm dev
Open http://localhost:3000.
The API documentation is at http://localhost:5050/docs.
- Optionally start the worker in a second terminal.
cd apps/worker
DATABASE_URL="postgresql://localhost:5432/karmacircle_dev" go run .
Tests and CI
- The API has Jest and Supertest suites that run against a real PostgreSQL database.
- The web app has Vitest unit tests and Playwright browser tests for Chromium, Firefox and WebKit.
- The Go worker has tests for its queue, retries, email handling and view totals, most of them against a real PostgreSQL database.
- CI lints, type-checks and builds the web app and the API, then runs the API tests and the web unit tests.
- CI also vets, builds and tests the worker.
- Browser tests are currently skipped in CI, including on pull requests, because of a condition bug in the workflow.
- API deploys apply database migrations before releasing the new code.
How to run them is in the local development guide.
Web performance
Lighthouse 12.8.2, median of three runs against a local production build with a local API and demo data (2026-11-29). A deployed site will measure differently.
| Page | Performance (mobile / desktop) | Accessibility | Best practices | SEO | LCP (mobile / desktop) |
|---|---|---|---|---|---|
| Home | 87 / 99 | 100 | 96 | 100 | 3.5 s / 0.9 s |
| Events | 77 / 94 | 100 | 96 | 100 | 5.1 s / 1.6 s |
| Event page | 73 / 92 | 100 | 96 | 100 | 6.1 s / 1.8 s |
Best practices loses points locally because the Vercel analytics scripts answer 404 outside Vercel. Mobile load time on the event pages is still slow.
Documentation
| Topic | Read |
|---|---|
| Setup | Local development, Docker, fork and clone, frontend, backend |
| Design | How it works, database hosting, database performance |
| Web app | Feature specs, design system, testing |
| API and worker | Module specs, API contract, worker |
| Security | Reporting a vulnerability, audit record |
Contributing
Start with the open issues and read CONTRIBUTING.md before taking one on. It explains how to claim an issue, run the checks and prepare a pull request. Everyone taking part follows the code of conduct.
License
KarmaCircle is licensed under the MIT License.
If the project is useful to you, you can give it a star or sponsor its maintainer.
Ähnliche Projekte entdecken
Wird geladen…