Live App (PWA): roleplayforge.vercel.app · Source: github.com/shashibuilds/PersonaKiln · Docs: Platform Support | Roadmap
PersonaKiln is a local-first browser workbench for authoring, organizing, converting, and testing AI roleplay assets. The aim is to give creators a reliable place to manage Character Cards (V2/V3, PNG, JSON, CHARX), lorebooks, generation presets, and repeatable LLM evaluations without overstating cross-platform compatibility.
Repository state (2026-11-03 — v1.0.0): Production deploys from
mainto roleplayforge.vercel.app as an installable Progressive Web App (PWA). Includes a phone-first Library and Details layout, a context bar (undo, redo, save status), paste-to-card import, a chat test bench for cards (with alternate greeting and group preview support), multi-card ZIP import/export, backup export that can leave API keys out, and an install prompt. Move data between devices with a backup file. CI verifies lint/type checking, 62 test suites, and a production PWA build.
The current codebase includes:
- Character Card V2 & V3 Studio: A searchable card gallery and full Character Card V2/V3 editing workflows.
- Multi-Format Import & Export: PNG card metadata (with V2 backfill and extra-asset chunk preservation), JSON, CHARX, and multi-card ZIP import/export paths, plus a public Chub card import path and paste-to-card import.
- Lorebook Editor & Diagnostics: Lorebook entry editing, activation keys, regex options, position preservation, and overlap utilities.
- Schema-Validated AI Patching: AI-proposed card patches with diff review, selective application, and undo/redo support.
- Scenario Testing & Model Evaluation: Card variants, comparison tools, chat test bench, scenario runs, transcript review, and diagnostic metrics.
- Multi-Provider LLM Connections: Direct connections to configured model providers, including Google Gemini, OpenAI, Anthropic, OpenRouter, and local Ollama endpoints where the provider/endpoint supports them.
- Local-First Storage & Backups: Local browser storage (IndexedDB), backup/restore (with the option to exclude API keys), and optional passphrase/passkey encryption for saved API keys.
- Installable PWA: Progressive Web App configuration for offline-capable, installable desktop and mobile browser use.
Feature presence does not, by itself, prove complete compatibility with every receiving platform. See the platform support matrix for the limits of current claims.
- One workbench, specialist workflows. Support, card building, lorebook design, preset coaching, and test analysis should share the same project data and history rather than fragment into separate bots or apps.
- Local-first by default. Keep character data in the user's browser unless a deliberate feature says otherwise. AI operations send selected content to the user's chosen provider; make that boundary clear.
- Review before applying. Material AI edits must be inspectable and selectively applicable, with undo support.
- Loss-aware conversion. Preserve unknown fields where feasible. When data must be transformed or dropped, provide a clear conversion report instead of silently losing it.
- Repeatable evaluation. Store enough information about the asset versions, model, settings, scenario, and evaluator to explain comparisons.
- Evidence-led compatibility. Label features as implemented, partially supported, verified, or planned. Do not equate successful import with equivalent runtime behavior.
Organize character cards, edit supported V2/V3 fields, import and export known formats (PNG, JSON, CHARX, ZIP), manage variants, and run local consistency and token-budget checks.
Create and edit world-info/lorebook entries, activation keys, regex options, and ordering. Expand toward fixture-based validation of platform-specific activation behavior.
Use structured, schema-validated proposals with previews and selective application rather than allowing unreviewed model output to rewrite a project.
Run roleplay scenarios against configured LLM providers, review transcripts, compare card variants, and inspect diagnostic signals. Evaluator scores are fallible evidence, not ground truth.
Manage versioned generation settings separately from provider credentials. Show which parameters map cleanly across platforms and which are platform-specific or unsupported.
Offer per-format/per-platform import and export adapters, round-trip tests, and conversion receipts describing preserved, transformed, unsupported, and dropped fields.
The application is designed around local browser storage and direct calls to the user's chosen model provider. Do not assume that prompts, selected card text, or transcripts stay local when an AI feature is used: they may be sent to that provider.
Cards and lorebooks are stored in browser IndexedDB (RoleplayForgeDB). The optional master passphrase or passkey encrypts saved API keys; it does not encrypt all card/lorebook content stored in the browser. Losing the passphrase and recovery key can make encrypted keys unrecoverable. The project has not undergone a formal third-party security audit. Review the in-app security guidance before storing sensitive content.
- Product vision: mission, principles, work areas, and boundaries.
- Roadmap: phased delivery and completion criteria.
- Platform and format support: implemented paths versus verified compatibility.
- Testing strategy: required checks, integrity tests, and release smoke tests.
Requirements: Node.js 20+ (Node 20 is used by CI) or a compatible Bun environment.
npm ci
npm run dev
npm run lint
npm test
npm run buildThe Vite development server normally uses port 3000. The current CI workflow runs dependency installation, lint/type checking, automated tests, and npm run build (PWA icons are generated separately with npm run generate:icons). A green CI run verifies the production bundle for that commit, but it does not replace the installed-PWA smoke test on Android. scripts/smoke.py (Python Playwright, run by hand against vite preview; usage is in its docstring) is a manual browser smoke test and is not part of CI.
- Add or extend fixtures for every new import/export capability.
- Test
import → edit → export → re-importfor data-bearing formats. - Preserve unknown extension fields where feasible and report unsupported or dropped fields.
- Date platform compatibility claims and cite the tested version/schema.
- Label model pricing as estimated and potentially stale unless it is fetched and verified.
- Keep provider credentials out of card exports, logs, and test fixtures.
- Update the relevant docs when behavior or support boundaries change. There is no changelog file: squash-merged pull request titles are the changelog.
MIT. See LICENSE for the original CardCrucible license and attribution. Retain that attribution through the transition to PersonaKiln.