# Project Templates

## Project Templates

The ChainGPT plugin ships with **10 production-ready project scaffolds** that generate complete, working applications. Each template includes a full project structure: `package.json`, TypeScript configuration, `.env.example`, service layer, routes, and demo scripts -- ready to run out of the box.

### Available Templates

| Template                  | Stack                 | Products Used              |
| ------------------------- | --------------------- | -------------------------- |
| **Web3 AI Chatbot**       | Express + TypeScript  | LLM                        |
| **NFT Minting Service**   | Node.js               | NFT Generator              |
| **Contract Audit CI/CD**  | GitHub Actions        | Auditor                    |
| **Crypto News Dashboard** | Vanilla JS            | News API                   |
| **AI Twitter Agent**      | Node.js               | AgenticOS                  |
| **NFT Marketplace**       | Next.js + wagmi       | NFT + LLM + Auditor + News |
| **DeFi Dashboard**        | React + Recharts      | LLM + News + Auditor       |
| **Next.js Chatbot**       | Next.js 14 App Router | LLM                        |
| **React Native Wallet**   | Expo + React Native   | LLM + NFT                  |
| **Nuxt News App**         | Nuxt 3 SSR            | News API                   |

### Template Descriptions

#### Web3 AI Chatbot

A backend chatbot service built with Express and TypeScript. Integrates the ChainGPT LLM for conversational Web3 Q\&A. Includes chat history management, streaming responses, and a REST API layer.

#### NFT Minting Service

A Node.js service that handles the full NFT lifecycle: prompt enhancement, image generation, and on-chain minting. Supports multiple chains and includes queue management for batch operations.

#### Contract Audit CI/CD

A GitHub Actions workflow that automatically audits Solidity contracts on every pull request. Integrates the ChainGPT Auditor into your CI/CD pipeline with configurable severity thresholds and report formatting.

#### Crypto News Dashboard

A lightweight, vanilla JavaScript frontend that displays real-time crypto news. Supports category filtering, search, and auto-refresh. No build step required -- open `index.html` and go.

#### AI Twitter Agent

An autonomous Node.js agent powered by ChainGPT's AgenticOS. Monitors crypto trends, generates relevant content, and posts to Twitter/X on a configurable schedule.

#### NFT Marketplace

A full-stack Next.js marketplace using wagmi for wallet connectivity. Combines four ChainGPT products: NFT generation and minting, LLM-powered descriptions, contract auditing for listed collections, and a news feed sidebar.

#### DeFi Dashboard

A React dashboard with Recharts visualizations. Pulls DeFi analytics via the LLM, displays relevant news, and can audit any smart contract address directly from the UI.

#### Next.js Chatbot

A modern chatbot UI built on Next.js 14's App Router with server components and streaming. Uses the ChainGPT LLM with a polished chat interface, message history, and markdown rendering.

#### React Native Wallet

A cross-platform mobile app built with Expo and React Native. Combines LLM-powered portfolio insights with in-app NFT generation and viewing.

#### Nuxt News App

A server-side rendered news application built on Nuxt 3. Fetches crypto news with category-based routing, SEO-optimized pages, and ISR (Incremental Static Regeneration) for performance.

### Multi-Product Composition

Several templates demonstrate how to **compose multiple ChainGPT products** into a single application. This is a key architectural pattern:

* **Service layer isolation**: Each ChainGPT product gets its own service module (e.g., `services/llm.ts`, `services/nft.ts`, `services/auditor.ts`). This keeps API concerns separated and testable.
* **Shared configuration**: A single `.env` file and config module manages all API keys and endpoints. Templates use a unified ChainGPT client initialization.
* **Cross-product workflows**: Products can be chained together. For example, the NFT Marketplace template uses the LLM to generate collection descriptions, the NFT Generator to create artwork, and the Auditor to verify collection contracts -- all in one user flow.
* **Credit-aware design**: Multi-product templates include credit balance checks and cost estimation before executing expensive operations, preventing unexpected credit depletion.

### Using Templates

Ask Claude to scaffold a project from any template:

> "Create a new project using the NFT Marketplace template."

> "Scaffold a DeFi Dashboard for my project."

> "Set up the Contract Audit CI/CD template in my repo."

Claude generates the complete project structure, pre-configured with your environment. After scaffolding, you typically just need to:

1. Copy `.env.example` to `.env` and add your API key
2. Run `npm install`
3. Run `npm run dev`

Each template includes a `README.md` with specific setup instructions and a demo script you can run to verify everything works.


---

# 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://docs.chaingpt.org/dev-docs-b2b-saas-api-and-sdk/chaingpt-claude-skill-and-plugin/features/project-templates.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.
