📱 Android Developer Integration Brief – kerdos-ai
✅ Overview
This is a full stack web app built using Next.js (React) with a PostgreSQL + Drizzle ORM
backend and optional AI/LLM capabilities. You will be building an Android frontend that
interfaces with this backend (likely through REST or RPC APIs).
🔗 Backend API
Framework: Next.js 15 (Canary version) – supports both REST APIs and Edge
Functions.
API routes will be exposed via /api/*.
If needed, we can also provide endpoints for:
o Authentication
o User CRUD
o AI inference
o Data management
🔧 API documentation or Postman collection can be generated on request.
KERDOS INFRASOFT PVT LTD: CIN - U62099KA2023PTC182869, UDYAM-KR-03-0388831, GSTIN 29AAKCK7265N1ZM
Unit 101, Oxford Towers - 139, HAL Airport Rd, Kodihalli, Indiranagar, Bengaluru 560008 | INDIA
TEL: +91 11 69269337, 9490470485
www.kerdos.xyz | www.kerdos.io |www.kerdos.in | www.kerdosinfrasoft.com
🔐 Authentication
NextAuth.js v5 (beta) is used for authentication.
o Supports multiple providers (credentials, OAuth, etc.)
o Android can authenticate via email+password, JWT, or OAuth flow
(depending on setup).
Passwords are hashed using bcrypt-ts.
Auth tokens (JWTs or session cookies) will be required for protected API routes.
🧠 AI Integration
AI SDKs like @ai-sdk/groq, @ai-sdk/xai, and ai package suggest support for LLM
features (chat, completion, etc.).
Backend provides AI processing endpoints—can expose endpoints for:
o Chatbot
o AI data processing
o Natural language parsing
o Etc.
KERDOS INFRASOFT PVT LTD: CIN - U62099KA2023PTC182869, UDYAM-KR-03-0388831, GSTIN 29AAKCK7265N1ZM
Unit 101, Oxford Towers - 139, HAL Airport Rd, Kodihalli, Indiranagar, Bengaluru 560008 | INDIA
TEL: +91 11 69269337, 9490470485
www.kerdos.xyz | www.kerdos.io |www.kerdos.in | www.kerdosinfrasoft.com
🧬 Database
PostgreSQL (hosted, likely via Render external DB).
Accessed through:
o drizzle-orm – TypeScript ORM
o drizzle-kit – for migrations and schema generation
Android app will not directly access the database—interact via API only.
📦 Project Scripts (For Reference Only)
build, db:migrate, db:generate, db:push/pull: These are internal scripts for database
setup and deployment.
🧩 Relevant Packages / Tech for Android Integration
Purpose Package / Stack
Frontend Framework React + Next.js 15 (Edge & App router)
API Routes /api/* endpoints (Node.js handlers)
Authentication NextAuth.js (email/pass or OAuth)
Database PostgreSQL + Drizzle ORM
AI features @ai-sdk/*, ai, LLM backend-ready
Data Format JSON (REST), or optional RPC
KERDOS INFRASOFT PVT LTD: CIN - U62099KA2023PTC182869, UDYAM-KR-03-0388831, GSTIN 29AAKCK7265N1ZM
Unit 101, Oxford Towers - 139, HAL Airport Rd, Kodihalli, Indiranagar, Bengaluru 560008 | INDIA
TEL: +91 11 69269337, 9490470485
www.kerdos.xyz | www.kerdos.io |www.kerdos.in | www.kerdosinfrasoft.com
Purpose Package / Stack
Auth Security JWT or Cookie-based sessions
Middleware Node.js (Express-style handlers)
Hosting Likely Vercel (serverless + edge)
🔧 What You Need to Build the Android App
1. Base URL: We will provide the base API URL
2. Auth: Use email/password or OAuth (depending on implementation).
3. Endpoints: Will expose relevant API endpoints (login, register, chat, etc.).
4. Token Handling: Secure storage of JWT/session.
5. AI Features: If needed, mobile frontend can access LLM via chat or submit data.
📥 Optional Next Steps (We Can Provide)
✅ OpenAPI spec / Postman collection for backend
✅ Authentication flow documentation
✅ Endpoint definitions
✅ Firebase integration
KERDOS INFRASOFT PVT LTD: CIN - U62099KA2023PTC182869, UDYAM-KR-03-0388831, GSTIN 29AAKCK7265N1ZM
Unit 101, Oxford Towers - 139, HAL Airport Rd, Kodihalli, Indiranagar, Bengaluru 560008 | INDIA
TEL: +91 11 69269337, 9490470485
www.kerdos.xyz | www.kerdos.io |www.kerdos.in | www.kerdosinfrasoft.com