# 📄 Page 2: Architecture

## Architecture

AfriWage is built as a Turborepo monorepo to separate our front-end application from our reusable Stellar SDK logic.

#### Tech Stack

* **Frontend:** Next.js 14 (App Router), Tailwind CSS, shadcn/ui.
* **Blockchain:** Stellar SDK v12, Freighter Wallet integration.
* **Tooling:** Turborepo, Biome (Linting/Formatting), TypeScript.

#### The Flow

1. **Employer** connects Freighter wallet and selects a worker.
2. UI calls `@afriwage/sdk` to build a Stellar transaction.
3. USDC is sent over the **Stellar Network** (Testnet currently).
4. A connected **Stellar Anchor** (e.g., Yellow Card) detects the transaction and processes the off-ramp to local fiat (NGN/GHS).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://k1ngd4vid.gitbook.io/afriwage-docs/page-2-architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
