Open a Character.AI data export (ZIP or JSON) locally and save chats as .txt. Pure parser ported from kamiko.fun's hosted viewer, including the nested turn_key.chat_id split; minimal dependency-free ZIP reader using DecompressionStream in the browser and zlib in Node; synthetic sample fixture; MIT. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
76 lines
2.9 KiB
JSON
76 lines
2.9 KiB
JSON
[
|
|
{
|
|
"turn_key": { "chat_id": "chat_aurora_001", "turn_id": "turn_0001" },
|
|
"create_time": "2026-09-01T10:00:00Z",
|
|
"author": { "name": "Aurora the Starkeeper", "is_human": false },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_a1", "raw_content": "Hi, I'm Aurora. Point at any star and I'll tell you its story." }
|
|
],
|
|
"primary_candidate_id": "cand_a1",
|
|
"is_pinned": false
|
|
},
|
|
{
|
|
"turn_key": { "chat_id": "chat_aurora_001", "turn_id": "turn_0002" },
|
|
"create_time": "2026-09-01T10:00:42Z",
|
|
"author": { "name": "synthetic_sample_user_2026_11_11", "is_human": true },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_u1", "raw_content": "What's that bright one near the moon tonight?" }
|
|
],
|
|
"primary_candidate_id": "cand_u1",
|
|
"is_pinned": false
|
|
},
|
|
{
|
|
"turn_key": { "chat_id": "chat_aurora_001", "turn_id": "turn_0003" },
|
|
"create_time": "2026-09-01T10:01:10Z",
|
|
"author": { "name": "Aurora the Starkeeper", "is_human": false },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_a2a", "raw_content": "That's probably Venus — it hangs close to the moon this week." },
|
|
{ "candidate_id": "cand_a2b", "raw_content": "Could be Jupiter tonight, want me to check the date?" }
|
|
],
|
|
"primary_candidate_id": "cand_a2b",
|
|
"is_pinned": true
|
|
},
|
|
{
|
|
"turn_key": { "chat_id": "chat_aurora_001", "turn_id": "turn_0004" },
|
|
"create_time": "2026-09-01T10:02:00Z",
|
|
"author": { "name": "synthetic_sample_user_2026_11_11", "is_human": true },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_u2", "raw_content": "Neat! Also\r\nsecond line with a Windows newline, and some \"quotes\" + emoji 🌟." }
|
|
],
|
|
"primary_candidate_id": "cand_u2"
|
|
},
|
|
{
|
|
"turn_key": { "chat_id": "chat_koda_002", "turn_id": "turn_1001" },
|
|
"create_time": "2026-09-02T18:30:00Z",
|
|
"author": { "name": "Koda", "is_human": false },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_k1", "raw_content": "*wags tail* You're finally home! Tell me about your day." }
|
|
],
|
|
"primary_candidate_id": "cand_k1"
|
|
},
|
|
{
|
|
"turn_key": { "chat_id": "chat_koda_002", "turn_id": "turn_1002" },
|
|
"create_time": "2026-09-02T18:31:05Z",
|
|
"author": { "is_human": true },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_k2", "raw_content": "Long day. No name field on this turn on purpose, to test the no-speaker case." }
|
|
],
|
|
"primary_candidate_id": "cand_k2"
|
|
},
|
|
{
|
|
"turn_key": { "chat_id": "chat_koda_002", "turn_id": "turn_1003" },
|
|
"author": { "name": "Koda", "is_human": false },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_k3", "raw_content": "No create_time on this turn on purpose — tests the file-order fallback." }
|
|
],
|
|
"primary_candidate_id": "cand_k3"
|
|
},
|
|
{
|
|
"turn_key": { "chat_id": "chat_koda_002", "turn_id": "turn_1004" },
|
|
"candidates": [
|
|
{ "candidate_id": "cand_k4", "raw_content": "" }
|
|
],
|
|
"primary_candidate_id": "cand_k4"
|
|
}
|
|
]
|