ktk-cli
v2.0.3
Published
Production-grade CLI for AI RAG + Blockchain Web3 Startups - Choose your features!
Maintainers
Readme
⚡ KTK CLI
AI RAG + Blockchain Startup Generator
KTK CLI is a production-grade scaffolding engine that bridges Verifiable AI with Blockchain Immutability.
Instead of generating shallow boilerplates, KTK creates a complete Web3 + AI foundation with 50%+ production-ready code, including:
- a fully wired RAG (Retrieval-Augmented Generation) pipeline
- an EVM-based on-chain audit trail for AI responses
Build trustable AI systems, not demos.
🔥 Why KTK?
Modern AI systems suffer from a critical problem: lack of trust and auditability.
KTK solves this by making every AI interaction verifiable.
Core Idea
- AI answers remain fast and off-chain
- Cryptographic proofs (hashes) of documents, prompts, and responses are immutably logged on-chain
This creates a tamper-proof AI knowledge system suitable for startups and enterprises.
🚀 Key Value Propositions
🧠 Advanced RAG Pipeline
- Out-of-the-box RAG architecture
- Smart document chunking
- Vector search powered by Qdrant
- Deterministic retrieval and context assembly
- Clean separation of ingestion, retrieval, and generation
🔗 Blockchain Trust Layer
- Every AI interaction is hashed
- Hashes are logged on-chain via an EVM smart contract
- Provides cryptographic proof of:
- what document was used
- what question was asked
- what answer was generated
- Enables future verification and compliance
🛡 Enterprise-Grade Security
- Sign-In with Ethereum (SiWE) for wallet-based identity
- API rate limiting by wallet address
- Role-ready backend architecture
- End-to-end TypeScript safety
⚡ Modern, Scalable Architecture
- Next.js 14 (App Router) frontend
- NestJS backend with modular design
- Docker Compose for local and cloud environments
- Opinionated defaults to reduce setup friction
🛠 Tech Stack
| Layer | Technology | |-------------|------------| | Frontend | Next.js 14, Tailwind CSS, RainbowKit, Wagmi | | Backend | NestJS, TypeScript, Swagger (OpenAPI) | | AI / Vector | RAG Pipeline, OpenAI API, Qdrant | | Blockchain | Solidity, Hardhat, EVM (Sepolia) | | Database | PostgreSQL, Redis | | DevOps | Docker, Docker Compose |
📦 Quick Start
1️⃣ Install KTK CLI
npm install -g ktk-cli