@typecaast/react 0.5.3 → 0.5.5
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 +32 -0
- package/package.json +5 -5
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @typecaast/react
|
|
2
|
+
|
|
3
|
+
The React renderer for [Typecaast](https://typecaast.com) — drop a `<Typecaast>`
|
|
4
|
+
component on a page and play back a scripted chat conversation from one JSON
|
|
5
|
+
config, in a pixel-faithful skin (Slack, iMessage, WhatsApp, Discord, …).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @typecaast/react react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
import { Typecaast } from "@typecaast/react";
|
|
13
|
+
import config from "./conversation.json";
|
|
14
|
+
|
|
15
|
+
export default () => <Typecaast config={config} autoplay loop />;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
The skin loads lazily from `config.meta.skin.id`, and you pass only the
|
|
19
|
+
serializable config — so this works in a React Server Component (Next.js App
|
|
20
|
+
Router) with no `"use client"`.
|
|
21
|
+
|
|
22
|
+
## Authoring configs
|
|
23
|
+
|
|
24
|
+
A config is plain JSON — write or edit it by hand (or have an LLM do it), no
|
|
25
|
+
playground required:
|
|
26
|
+
|
|
27
|
+
- [Authoring configs](https://typecaast.com/docs/authoring-configs) — every field and timeline step type.
|
|
28
|
+
- [Pacing & timing](https://typecaast.com/docs/pacing) — gaps, delays, and how to get ~1–2s between messages.
|
|
29
|
+
- JSON Schema: <https://typecaast.com/schema/v1/typecaast.schema.json> — add a `$schema` line for editor autocomplete.
|
|
30
|
+
- **For LLMs/agents:** the index at <https://typecaast.com/llms.txt>, and the [`@typecaast/mcp`](https://www.npmjs.com/package/@typecaast/mcp) server to assemble and validate configs from your own project.
|
|
31
|
+
|
|
32
|
+
Full docs: <https://typecaast.com/docs>. Apache-2.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typecaast/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "React renderer: <Typecaast> real-time player + useTypecaast hook.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@typecaast/core": "0.
|
|
28
|
-
"@typecaast/schema": "0.
|
|
29
|
-
"@typecaast/skin-kit": "0.
|
|
30
|
-
"@typecaast/skins": "0.
|
|
27
|
+
"@typecaast/core": "0.6.1",
|
|
28
|
+
"@typecaast/schema": "0.4.1",
|
|
29
|
+
"@typecaast/skin-kit": "0.6.1",
|
|
30
|
+
"@typecaast/skins": "0.5.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=18"
|