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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gentiq-app",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "description": "CLI to scaffold a new Gentiq application",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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 Default Template Application
1
+ # πŸš€ Gentiq AI Application
2
2
 
3
- **Location:** `/templates/default`
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
- A world-class conversational AI scaffold built fully on the Gentiq Framework. This template serves as a complete, reference-ready application ready for extension and branding.
5
+ ## ✨ Key Features
6
6
 
7
- ## Quick Start (Minimal Environment)
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
- 1. **Copy Environment**: Copy `.env.example` to `.env` in the project root and fill in your values (MongoDB, MinIO, AI Providers).
10
- 2. **Setup Backend**:
13
+ ---
11
14
 
12
- ```bash
13
- cd templates/default/backend && uv sync
14
- ```
15
+ ## πŸ› οΈ Getting Started
15
16
 
16
- 3. **Run Backend**:
17
+ Follow these steps to get your development environment up and running.
17
18
 
18
- ```bash
19
- uv run uvicorn main:app.api --reload --port 8000
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
- 4. **Setup Frontend**:
23
-
24
- ```bash
25
- cd templates/default/frontend && npm install
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
- 5. **Run Frontend**:
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
- ```bash
31
- npm run dev
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
- ## Development
47
+ ---
35
48
 
36
- The template app is configured to pull in core functionality from the local `packages/` directory for real-time development.
49
+ ## πŸ“ Project Structure
37
50
 
38
- ### Backend Entrypoint (`templates/default/backend/main.py`)
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
- Our backend leverages the `GentiqApp` factory to dynamically spin-up the core server logic.
62
+ ---
41
63
 
42
- ```python
43
- from gentiq import GentiqApp
64
+ ## πŸš€ Deployment
44
65
 
45
- app = GentiqApp()
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
- ### Frontend Entrypoint (`templates/default/frontend/src/App.tsx`)
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
- The frontend is a lightweight Vite application that exports UI instances from the `gentiq` React package.
71
+ ---
52
72
 
53
- ```tsx
54
- import { GentiqProvider, ChatUI, AdminPanel } from 'gentiq'
55
- import 'gentiq/style.css'
73
+ ## πŸ“– Learn More
56
74
 
57
- export default function App() {
58
- return (
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
- ## Features Included (Out-of-the-Box)
78
+ ---
67
79
 
68
- - **AI Streaming**: Real-time agent streaming via PydanticAI and Vercel SDK.
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)*