Guides
Developer Guide
Architecture overview for integrators working with the hosted Anchor product.
Anchor is a hosted free product for SA SMEs. This guide is for technical integrators (API/MCP). For access or deployment questions, contact Anchor.
Tech stack
- Framework — Next.js (App Router)
- Database — PostgreSQL with Drizzle ORM
- Auth — NextAuth.js
- API — REST under
/api/v1plus MCP at/api/mcp - UI — Tailwind CSS + shadcn/ui
Integration entry points
| Surface | Path / docs |
|---|---|
| REST API | API Reference, API Integration guide |
| MCP | MCP guide — https://anchorapp.co.za/api/mcp |
| API keys | Settings → API Keys in the app |
High-level layout
app/ # Next.js App Router (landing, auth, dashboard, API, docs)
components/ # UI (dashboard, landing, shared)
lib/
api/ # Auth context, limits, handlers
db/ # Drizzle schemas
mcp/ # MCP tools
banking/ currency/ documents/ email/ tax/ ...
content/docs/ # This documentation (MDX)
public/brand/ # Anchor brand assetsProduct notes
- No paid SaaS plan on this deployment — free forever for SA SMEs
- No self-hosting option for end users
- Payroll disabled for South Africa
- Optional Stripe Connect is for customer payment collection / accounting sync, not for buying Anchor seats
- Monetary amounts in the API are integer cents (e.g. R12.50 =
1250)
REST conventions
- Routes live under
app/api/v1/ - Auth: session cookies or
Authorization: Bearer <api-key>with organisation context - Org-scoped data only — never cross-tenant
- See API Integration for examples
MCP conventions
- Endpoint:
/api/mcp(Streamable HTTP + OAuth) - Tools in
lib/mcp/tools/— one tool per operation, Zod.describe()on every field - Amounts in cents; use
wrapTool()for errors - See MCP guide
Support
Email info@anchorapp.co.za or call 084-288-9240.