create-gentiq-app 0.15.1 → 0.16.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gentiq-app",
3
- "version": "0.15.1",
3
+ "version": "0.16.0-beta.1",
4
4
  "description": "CLI to scaffold a new Gentiq application",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,12 +1,12 @@
1
1
  # 🚀 Gentiq AI Application
2
2
 
3
- A production-ready conversational AI application built with the [Gentiq framework](https://github.com/arxyzan/gentiq): a FastAPI + PydanticAI backend and a React frontend, with authentication, streaming, chat history, an admin panel and per-user balance tracking already wired together.
3
+ A production-ready conversational AI application built with the [Gentiq framework](https://github.com/arxyzan/gentiq): a FastAPI + PydanticAI backend and a React frontend, with authentication, streaming, chat history, an admin panel and per-user usage limits already wired together.
4
4
 
5
5
  ## ✨ What you get
6
6
 
7
7
  - **⚡ Real-time streaming** — PydanticAI on the backend, the Vercel AI SDK protocol on the wire.
8
- - **🛠️ Admin panel** — users, chat-history auditing, analytics, balances, and maintenance operations at `/admin`.
9
- - **💰 Usage & cost tracking** — per-user token and request balances, priced per model against live provider rates.
8
+ - **🛠️ Admin panel** — users and their plans, chat-history auditing, analytics, and maintenance operations at `/admin`.
9
+ - **💰 Usage & cost tracking** — per-user plans or credits (or no limit at all), with every turn priced per model against live provider rates.
10
10
  - **📂 Pluggable persistence** — SQLite + local filesystem out of the box; MongoDB + MinIO/S3 for production.
11
11
  - **🔒 JWT auth** — signup/login, argon2id password hashing, and role-based admin permissions.
12
12
  - **🌍 i18n & RTL** — the template ships English and Persian; add a language by extending `i18n.resources`.
@@ -33,9 +33,12 @@ ADMIN_JWT_EXPIRATION_HOURS=8
33
33
  # no token Logfire stays local, so leave this commented out until you have one.
34
34
  # LOGFIRE_TOKEN=pylf_...
35
35
 
36
- # --- Starting balance per new user ------------------------------------------
37
- INITIAL_BALANCE_TOKENS=250000
38
- INITIAL_BALANCE_REQUESTS=100
36
+ # --- Usage limits -----------------------------------------------------------
37
+ # Users are unlimited unless the app sets a default plan or default credits, or an
38
+ # admin does under Settings > Usage & access. Daily limits reset at midnight here:
39
+ # QUOTA_TIMEZONE=UTC
40
+ # Calendar for monthly limits and plan lengths: gregorian or persian. Unset follows the timezone.
41
+ # QUOTA_CALENDAR=
39
42
 
40
43
  # --- Uploads ----------------------------------------------------------------
41
44
  # MAX_ATTACHMENT_SIZE=10485760
@@ -1,6 +1,6 @@
1
1
  # Backend
2
2
 
3
- The FastAPI + [PydanticAI](https://ai.pydantic.dev/) half of the application. `main.py` defines an agent, its tools and its context; `GentiqApp` turns that into a full API — auth, chat streaming, history, attachments, balances, and the admin endpoints.
3
+ The FastAPI + [PydanticAI](https://ai.pydantic.dev/) half of the application. `main.py` defines an agent, its tools and its context; `GentiqApp` turns that into a full API — auth, chat streaming, history, attachments, plans and usage limits, and the admin endpoints.
4
4
 
5
5
  ## Run it
6
6
 
@@ -127,7 +127,7 @@ export default function App() {
127
127
  account: {
128
128
  enabled: true,
129
129
  fields: {
130
- balance: 'editable',
130
+ usage: 'editable',
131
131
  logout: 'editable',
132
132
  }
133
133
  }