A reward-based crowdfunding platform. Creators publish a project, backers pledge, and money only moves if the goal is met.
IdeyaNest funds creative projects on a threshold model (IDN-EXT-01). A creator sets a goal and a deadline. Backers pledge against reward tiers and are charged when they pledge. A campaign succeeds at 80% of its goal, the creator may extend the deadline once, and withdrawing the money closes the campaign. If it ends below 80%, every backer is refunded in full. The platform's fee is 15% of a withdrawal, bank fees included. It is not all-or-nothing, and must not be described that way.
This is not investment. A backer receives a product or an experience, never equity, interest, or a share of revenue.
Status: in development. Nothing here is production-ready yet.
| Area | Summary |
|---|---|
| Discovery | Fifteen categories, roughly a hundred subcategories, faceted filtering by status, location, goal, amount raised, and completion, with seven sort orders |
| Campaign | Story, reward tiers built from atomic items, add-ons, FAQ, updates, comments, and a mandatory risks section |
| Pledging | Reward selection, add-ons, shipping destination, and payment at the moment of pledging. A pledge can be raised, never cancelled |
| Funding threshold | Success from 80% of the goal, a 7-day window after the deadline, one extension, and full refunds below 80%. The outcome is frozen when decided (docs/architecture.md §5.1) |
| Pledge manager | Post-campaign surveys, address collection, upgrades, shipping rates, tax, backer reports, and tracking |
| Creator tools | Live funding figures, referral attribution, backer segmentation, bulk messaging, and a financial summary |
| Trust and safety | Pre-launch review, reporting, suspension, identity verification, and a full audit trail |
The complete specification is in docs/architecture.md.
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Web │ │ Mobile │ │ Admin │
│ Next.js │ │ Expo │ │ React │
└────┬─────┘ └────┬─────┘ └────┬─────┘
└─────────────┼─────────────┘
│
┌────────▼────────┐
│ API gateway │
│ Spring Boot │
└────────┬────────┘
│
┌──────────┬──────────┬────────┼────────┬──────────┬──────────┐
│ Auth │ Projects │Discovery│ Pledge │ Payments │ Ledger │
└──────────┴──────────┴────────┴────────┴──────────┴──────────┘
│
┌──────────────┬───────────────┼───────────────┬──────────────┐
┌────▼────┐ ┌─────▼─────┐ ┌─────▼─────┐ ┌─────▼─────┐ ┌─────▼─────┐
│Postgres │ │ Redis │ │ Search │ │ Object │ │ Payment │
│ │ │ cache/queue│ │ │ │ storage │ │ provider │
└─────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
A modular monolith, not microservices. Pledging, payment, and ledger writes must share a transaction; splitting them would buy distribution complexity in exchange for correctness risk in the one place the product cannot afford it. Module boundaries are explicit so extraction stays cheap when a real scaling need appears.
| Layer | Technology | Why |
|---|---|---|
| Backend | Java 21, Spring Boot, Gradle | Mature transaction handling, BigDecimal in the standard library, and a deep ecosystem for financial and audit work |
| Database | PostgreSQL | ACID, exact numerics, full-text search, and geospatial support in one system |
| Cache, queue | Redis | Caching, job queue, distributed locks |
| Web | Next.js, React 19, TypeScript | Server rendering, which is not optional for a platform that depends on organic discovery |
| Mobile | React Native, Expo | Shares types, validation schemas, and the API client with the web app |
| Styling | Tailwind 4 on design tokens | One palette, enforced by tests |
| Components | Storybook 10 | Appearance reviewed in isolation; behaviour covered by tests |
ideanest/
├── apps/
│ ├── api/ Spring Boot service
│ ├── web/ Next.js — public site and admin console
│ └── mobile/ Expo application (not yet created)
├── packages/
│ ├── api-client/ Typed API surface, generated from apps/api/openapi.json
│ ├── design-tokens/ Colour, radius, motion — the source of truth
│ └── ui/ Primitives, layout, motion components
├── docs/
│ ├── architecture.md Full platform specification
│ ├── ui-kit.md Colour, surface, typography, components
│ └── motion-system.md Motion tokens, patterns, budgets
├── ops/
│ ├── backup/ Backup and point-in-time recovery drill
│ ├── deploy/ Environments, the release pipeline, and rolling back
│ ├── observability/ Prometheus alert rules and a scrape configuration
│ └── seed/ Local demo data. Development only
├── CLAUDE.md Contribution and workflow rules
└── .github/workflows/
├── ci.yml Typecheck, tests, Storybook build and preview, the
│ First Load JS budgets, and the web image's install
│ stage. Each job runs only when
│ the change touches it; `CI complete` reports for
│ all of them and is the required check
├── mobile-check.yml Mobile typecheck, tests and config. Called by
│ ci.yml and before every mobile build
├── mobile-release.yml The EAS build, on manual dispatch only
├── lighthouse.yml Lab Core Web Vitals. Weekly and on request —
│ advisory, and never able to fail a pull request
├── release.yml Build once, deploy that build: staging on merge,
│ production on a tag, rollback by digest
├── deploy.yml One environment's rollout. Called by release.yml
├── restore-drill.yml The quarterly restore rehearsal §19.4 requires
└── storybook-preview-cleanup.yml
Deletes a preview when its pull request closes
The gh-pages branch is written by CI only. It holds the published Storybook
builds and is never edited by hand.
Requirements: Node 22 or newer, pnpm 11 or newer, and — for the backend — JDK 21 or newer and Docker. Gradle itself is not a requirement; the wrapper fetches it. Docker is: the backend runs against a real PostgreSQL locally and in its tests, never an in-memory substitute.
git clone https://github.com/ismetcahangirov/ideanest.git
cd ideanest
pnpm install
cd apps/api && ./gradlew build # backend: compile and testA freshly migrated database is empty, and an empty crowdfunding platform hides most of what there is to look at: every progress bar is a sliver, the moderation queue and the broken moderation queue render identically, and the finance console has nothing to page through.
ops/seed/ fills one. Run the service once so Flyway
finishes, then:
ops/seed/run.shThat writes 26 campaigns across every lifecycle state, 923 accounts — one per console role — and the pledges, charges, ledger postings, refunds, disputes and payouts behind them. Every account shares one password, generated on your machine the first time the seed runs and printed when it finishes; the role table is in the directory's own README.
Development only. The accounts share one password and the payment records name providers that were never called. Do not point it at anything deployed.
If a PostgreSQL already owns port 5432 on your machine, publish the compose database elsewhere with the overlay next to it:
cd apps/api
docker compose -f compose.yaml -f compose.local-port.yaml up -d
DB_URL=jdbc:postgresql://localhost:5433/ideanest \
SPRING_DOCKER_COMPOSE_ENABLED=false ./gradlew bootRun| Command | Effect |
|---|---|
pnpm storybook |
Component workshop at localhost:6006 |
pnpm dev:web |
Web application at localhost:3000. Proxies /v1 to the backend, so run that too |
pnpm typecheck |
Type checking across every package |
pnpm test |
Behaviour, accessibility, and colour-discipline tests |
pnpm build:storybook |
Static Storybook build, as CI runs it |
pnpm build:web |
Production build of the web application |
pnpm --filter @ideanest/api-client generate |
Rewrites the typed client from apps/api/openapi.json |
The backend is a Gradle project and is not driven through pnpm. Its commands and
conventions are in apps/api/README.md.
The API contract is two committed files, and neither is regenerated by the
build. apps/api/openapi.json is written by ./gradlew exportOpenApi and
packages/api-client/src/schema.ts by the command above. Both are asserted
current by tests, so a change to a response body shows up in a diff rather than
in a client's runtime — see
packages/api-client/README.md.
Start with Storybook. It is the fastest way to understand the visual system,
and Patterns/Discovery Rail shows every primitive working together.
CI publishes a browsable build for every pull request and comments the link on it, so a reviewer can look at a component instead of reading a description of one.
| Build | URL |
|---|---|
main |
https://ismetcahangirov.github.io/ideanest/main/ |
| Pull request | https://ismetcahangirov.github.io/ideanest/pr-<number>/ |
The directory is removed when the pull request closes. Pull requests from forks get no preview: their token is read-only by design, and granting an untrusted branch write access in exchange for a URL is not a worthwhile trade.
Three rules hold the interface together. Two of them are enforced by tests.
Colour comes only from tokens. A hex literal in source fails the build. That
is what makes packages/design-tokens trustworthy as the complete palette.
Lime means urgent, not successful. A campaign that reached its goal uses
--success. Conflating them would tell a backer the opposite of the truth.
Motion decreases as money gets closer. Discovery may animate. Checkout must not — every animation on a payment screen reads as hesitation.
Details in docs/ui-kit.md and
docs/motion-system.md.
Read CLAUDE.md first. In short:
- Pull
mainbefore starting - Branch as
<type>/<description>— never commit tomain - Write commits and pull requests in English, using Conventional Commits
- Open a pull request, link its issue, and add
type:,area:, andpriority:labels - Merge only when CI is green
Work is tracked as epics with sub-issues.
Pick a sub-issue rather than an epic. Issues labelled status: needs-decision
are blocked on a product or legal answer — implementing around them wastes the
work, because the answer changes the design.
These are tracked as issues and block real design decisions:
- Payment provider limits. The provider is Epoint.az. Backers are charged at
pledge time, refunded with
/reverse, and creators are paid to a registered business card. Still to confirm with Epoint: how long/reversestays available after a payment (believed to be about 120 days), and the limits on payouts to a card. Payriff is integrated beside it (#351) for payments and refunds, with a sandbox; how creators are paid through Payriff without the platform handling card numbers is open (#352). - Holding third-party funds. Backers' money now sits on the platform's account from the pledge until a withdrawal or refund, up to about 120 days — which makes the payment services licence question sharper, not smaller.
- Merchant of record. Determines who owes tax on a reward, and therefore how the ledger is structured.
UNLICENSED. All rights reserved.