ai-schadcn-chat 0.1.0 → 0.1.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/README.md CHANGED
@@ -6,6 +6,37 @@
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.6-blue.svg)](https://www.typescriptlang.org/)
8
8
 
9
+ ## Demo
10
+
11
+ The package ships with a full interactive demo at `demo/`. Build it
12
+ locally with:
13
+
14
+ ```bash
15
+ pnpm install
16
+ pnpm exec vite --config demo/vite.config.ts build
17
+ # static output → demo/dist/
18
+ ```
19
+
20
+ The published `dist/` and `demo/dist/` are independent artifacts — the
21
+ package and the demo do not need each other at install time. The demo
22
+ imports `ai-schadcn-chat` from npm (see `demo/package.json`) so the
23
+ deployed demo bundle does not require the package source on the
24
+ server.
25
+
26
+ ## Deployment
27
+
28
+ The demo ships as a static SPA. Two paths to get it to a host:
29
+
30
+ 1. **Coolify (self-hosted PaaS on Hetzner VPS)** — `Dockerfile` and
31
+ `docker-compose.prod.yml` at the repo root, ready to wire as a new
32
+ Coolify application with `build_pack=dockerfile` and host
33
+ `ai-chat.eduardoinerarte.dk`. A push to `main` triggers a rebuild
34
+ via the Coolify GitHub webhook.
35
+ 2. **Static host** (Nginx / Caddy / Cloudflare Pages / S3) — run the
36
+ build command above, upload `demo/dist/` to the host, point
37
+ `ai-chat.eduardoinerarte.dk` at it via wildcard DNS or a
38
+ dedicated A record.
39
+
9
40
  ## Why ai-schadcn-chat
10
41
 
11
42
  - **Three surfaces, one package** — drop in `<ChatPanel />` for an instant chat UI, compose `<ChatProvider />` + `<MessageList />` + `<ChatComposer />` for a custom layout, or use the framework-agnostic `ChatEngine` class without React at all.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-schadcn-chat",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A fully-featured, deeply configurable AI chat panel for React 18/19 — works with any Anthropic / OpenAI / OpenAI-compatible API (OpenRouter, MiniMax, etc.)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -69,8 +69,8 @@
69
69
  "./styles.css": "./dist/styles.css",
70
70
  "./typeset.css": "./dist/typeset.css",
71
71
  "./typeset-presets.css": "./dist/typeset-presets.css",
72
- "./scroller.css": "./dist/scroller.css",
73
- "./marker.css": "./dist/marker.css"
72
+ "./scroller.css": "./dist/styles/scroller.css",
73
+ "./marker.css": "./dist/styles/marker.css"
74
74
  },
75
75
  "main": "./dist/index.js",
76
76
  "module": "./dist/index.js",
File without changes
File without changes