create-gentiq-app 0.7.6 β 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -0
- package/package.json +1 -1
- package/templates/starter/.env.example +10 -0
- package/templates/starter/README.md +58 -50
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# create-gentiq-app π
|
|
2
|
+
|
|
3
|
+
The official CLI for bootstrapping **Gentiq** applications. Kickstart your agentic chatbot in seconds.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
The fastest way to get started with Gentiq is to run the following command in your terminal:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx create-gentiq-app@latest my-awesome-ai
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or with **Yarn**:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn create gentiq-app my-awesome-ai
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or with **PNPM**:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm create gentiq-app my-awesome-ai
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## What is Gentiq?
|
|
28
|
+
|
|
29
|
+
**Gentiq** is a world-class AI agent framework designed for building production-ready, conversational applications. It combines the power of **PydanticAI** on the backend with a high-performance **React** frontend, providing everything you need out-of-the-box.
|
|
30
|
+
|
|
31
|
+
### Features Scaffolded:
|
|
32
|
+
- β‘ **AI Streaming**: Real-time agent responses via PydanticAI and Vercel AI SDK.
|
|
33
|
+
- π οΈ **Admin Dashboard**: Built-in analytics, history logs, and user management.
|
|
34
|
+
- π° **Atomic Balance**: Native tracking and enforcement of per-user token and request limits.
|
|
35
|
+
- π **Flexible Persistence**: Integrated MinIO/S3 for file storage and MongoDB for state.
|
|
36
|
+
- π **Enterprise-Grade Security**: Full JWT authentication suite and encrypted sessions.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Project Structure
|
|
41
|
+
|
|
42
|
+
When you initialize a new app, the CLI generates a modern, monorepo-friendly structure:
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
my-awesome-ai/
|
|
46
|
+
βββ backend/ # FastAPI + PydanticAI application
|
|
47
|
+
β βββ main.py # App entry point
|
|
48
|
+
β βββ pyproject.toml # Python dependencies (UV managed)
|
|
49
|
+
βββ frontend/ # Vite + React application
|
|
50
|
+
β βββ src/ # UI components and hooks
|
|
51
|
+
β βββ package.json # Frontend dependencies
|
|
52
|
+
βββ .env.example # Environment variable template
|
|
53
|
+
βββ README.md # Your project documentation
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Local Development
|
|
59
|
+
|
|
60
|
+
Once your project is scaffolded, follow these steps to get running:
|
|
61
|
+
|
|
62
|
+
### 1. Environment Setup
|
|
63
|
+
Copy the example environment file and add your API keys and modify other variables as desired:
|
|
64
|
+
```bash
|
|
65
|
+
cp .env.example .env
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 2. Launch Backend
|
|
69
|
+
The backend uses `uv` for lightning-fast Python package management.
|
|
70
|
+
```bash
|
|
71
|
+
cd backend
|
|
72
|
+
uv sync
|
|
73
|
+
uv run uvicorn main:app.api --reload --port 8000
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 3. Launch Frontend
|
|
77
|
+
```bash
|
|
78
|
+
cd frontend
|
|
79
|
+
npm install
|
|
80
|
+
npm run dev
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Your app is now live at `http://localhost:5173`!
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Why Gentiq?
|
|
88
|
+
|
|
89
|
+
Unlike generic boilerplates, Gentiq is built with **developer velocity** and **production scalability** in mind. It provides the "boring" parts of AI developmentβauthentication, rate limiting, and persistenceβso you can focus on building your agents.
|
|
90
|
+
|
|
91
|
+
- **Type-Safe**: End-to-end TypeScript and Python (Pydantic) types.
|
|
92
|
+
- **Customizable**: Every part of the UI and Backend is modular and extensible.
|
|
93
|
+
- **Modern Stack**: React 19, FastAPI, PydanticAI, and TailwindCSS.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
APP_NAME=gentiq-app
|
|
2
|
+
OPENAI_API_KEY=sk-proj-...
|
|
3
|
+
LOGFIRE_API_KEY=pylf_...
|
|
4
|
+
LOGFIRE_TOKEN=pylf_...
|
|
5
|
+
BACKEND_URL=http://localhost:8000
|
|
6
|
+
JWT_SECRET_KEY=deveopment_jwt_key
|
|
7
|
+
JWT_EXPIRATION_HOURS=720
|
|
8
|
+
ADMIN_JWT_SECRET_KEY=development_admin_jwt_key
|
|
9
|
+
ADMIN_JWT_EXPIRATION_HOURS=1440
|
|
10
|
+
BACKEND_API_KEY=development_api_key
|
|
@@ -1,72 +1,80 @@
|
|
|
1
|
-
# Gentiq
|
|
1
|
+
# π Gentiq AI Application
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This is a production-ready conversational AI application built with the [Gentiq Framework](https://github.com/arxyzan/gentiq). It features a high-performance Python backend and a modern React frontend, providing everything you need to build world-class AI agents out of the box.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## β¨ Key Features
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- **β‘ Real-time AI Streaming**: Powered by PydanticAI and Vercel AI SDK for buttery-smooth streaming responses.
|
|
8
|
+
- **π οΈ Integrated Admin Panel**: Built-in dashboard for monitoring user history, analytics, and system state.
|
|
9
|
+
- **π° Atomic Balance Tracking**: Native enforcement of per-user token and request limits.
|
|
10
|
+
- **π Robust Persistence**: Pre-configured support for MongoDB (state) and MinIO/S3 (attachments).
|
|
11
|
+
- **π Secure by Default**: Full JWT authentication suite with role-based access control.
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
2. **Setup Backend**:
|
|
13
|
+
---
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
cd templates/default/backend && uv sync
|
|
14
|
-
```
|
|
15
|
+
## π οΈ Getting Started
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
Follow these steps to get your development environment up and running.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
### 1. Prerequisites
|
|
20
|
+
- **Python 3.12+** (Recommended: [uv](https://github.com/astral-sh/uv))
|
|
21
|
+
- **Node.js 18+** (Recommended: [pnpm](https://pnpm.io/))
|
|
22
|
+
- **Docker** (for running MongoDB/MinIO locally)
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
### 2. Environment Setup
|
|
25
|
+
Copy the example environment file to your project root and fill in your API keys:
|
|
26
|
+
```bash
|
|
27
|
+
cp .env.example .env
|
|
28
|
+
```
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
### 3. Launch the Backend
|
|
31
|
+
The backend manages your AI agents and data persistence.
|
|
32
|
+
```bash
|
|
33
|
+
cd backend
|
|
34
|
+
uv sync
|
|
35
|
+
uv run uvicorn main:app.api --reload --port 8000
|
|
36
|
+
```
|
|
29
37
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
### 4. Launch the Frontend
|
|
39
|
+
The frontend provides a premium chat interface and admin dashboard.
|
|
40
|
+
```bash
|
|
41
|
+
cd frontend
|
|
42
|
+
npm install
|
|
43
|
+
npm run dev
|
|
44
|
+
```
|
|
45
|
+
Navigate to `http://localhost:5173` to see your app in action!
|
|
33
46
|
|
|
34
|
-
|
|
47
|
+
---
|
|
35
48
|
|
|
36
|
-
|
|
49
|
+
## π Project Structure
|
|
37
50
|
|
|
38
|
-
|
|
51
|
+
```text
|
|
52
|
+
βββ backend/ # FastAPI + PydanticAI application
|
|
53
|
+
β βββ main.py # Backend entry point & agent definitions
|
|
54
|
+
β βββ pyproject.toml # Python dependencies (UV managed)
|
|
55
|
+
βββ frontend/ # Vite + React application
|
|
56
|
+
β βββ src/ # Components, hooks, and UI logic
|
|
57
|
+
β βββ package.json # Frontend dependencies
|
|
58
|
+
βββ .env.example # Template for environment variables
|
|
59
|
+
βββ README.md # You are here!
|
|
60
|
+
```
|
|
39
61
|
|
|
40
|
-
|
|
62
|
+
---
|
|
41
63
|
|
|
42
|
-
|
|
43
|
-
from gentiq import GentiqApp
|
|
64
|
+
## π Deployment
|
|
44
65
|
|
|
45
|
-
|
|
46
|
-
api = app.api # The FastAPI instance
|
|
47
|
-
```
|
|
66
|
+
Gentiq is designed to be easily containerized and deployed. The recommended approach is to use Docker for both the backend and frontend components.
|
|
48
67
|
|
|
49
|
-
|
|
68
|
+
- **Frontend**: Build as a static site or host on Vercel/Netlify.
|
|
69
|
+
- **Backend**: Deploy as a FastAPI service on AWS/GCP/Railway.
|
|
50
70
|
|
|
51
|
-
|
|
71
|
+
---
|
|
52
72
|
|
|
53
|
-
|
|
54
|
-
import { GentiqProvider, ChatUI, AdminPanel } from 'gentiq'
|
|
55
|
-
import 'gentiq/style.css'
|
|
73
|
+
## π Learn More
|
|
56
74
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<GentiqProvider>
|
|
60
|
-
{/* ... routes ... */}
|
|
61
|
-
</GentiqProvider>
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
```
|
|
75
|
+
- [Gentiq Documentation](https://github.com/arxyzan/gentiq) - Deep dive into agents and architecture.
|
|
76
|
+
- [PydanticAI Docs](https://ai.pydantic.dev/) - Learn how to build type-safe agents.
|
|
65
77
|
|
|
66
|
-
|
|
78
|
+
---
|
|
67
79
|
|
|
68
|
-
|
|
69
|
-
- **Admin Dashboard**: Comprehensive user analytics, history logs, and permissioning system.
|
|
70
|
-
- **Atomic Balance**: Integrated tracking and enforcement of per-user token and request limits.
|
|
71
|
-
- **MinIO/S3 Persistence**: Robust file storage for chat attachments and assistant multimodal context.
|
|
72
|
-
- **JWT Security Suite**: Encrypted user and administrative authentication flows.
|
|
80
|
+
*Generated with [create-gentiq-app](https://github.com/arxyzan/gentiq/tree/main/packages/cli)*
|