charon
Self-hosted chat for stories and roleplay. Character cards, lorebooks, personas, streaming replies, and one SQLite file you own.
MITv0.1.3main683 filesupdated 23 Nov 2026
Open source, in full.
Every line that runs on your machine is here: the chat tree, the card importer, the streaming, and the interface. No closed build and no missing folder. Download the archive, or open any file below.
Run it from source
pnpm install
cp .env.example .env
pnpm run devFiles
.agents/1
friction-log/8
20260807010035-rtk-lint-alias/1
friction.md628 B
20260918204029-docs-markdown-md/1
friction.md1.4 KB
20260919144320-vite-config-silently/1
friction.md1.2 KB
20260924010703-global-playwright-expects/1
friction.md916 B
20261018024122-rtk-shell-tool/1
friction.md1.1 KB
20261114055859-drizzle-kit-generate/1
friction.md1.1 KB
config.json94 B
README.md1.4 KB
.dsh/1
skills/1
impeccable/3
reference/42
degraded/4
adapt.md11.0 KB
adapt.native.md3.8 KB
android.md4.1 KB
animate.md5.1 KB
audit.md9.4 KB
audit.native.md8.1 KB
bolder.md3.4 KB
clarify.md4.5 KB
colorize.md4.4 KB
component-review.md7.8 KB
craft-floor.md4.4 KB
craft.md555 B
critique.md44.5 KB
delight.md3.6 KB
distill.md5.4 KB
doctor.md5.5 KB
document.md26.8 KB
extract.md3.3 KB
generate.md12.8 KB
harden.md10.5 KB
hooks.md14.8 KB
init.md11.4 KB
ios.md3.7 KB
layout.md5.0 KB
live-setup.md8.0 KB
live.md36.3 KB
mode-operate.md4.6 KB
mode-persuade.md3.6 KB
mode-read.md4.3 KB
new-work.md60.9 KB
onboard.md7.5 KB
operate.md4.0 KB
optimize.md7.4 KB
overdrive.md8.8 KB
polish.md6.5 KB
quieter.md4.8 KB
region-map.md3.3 KB
routing.md3.3 KB
shape.md3.5 KB
typeset.md6.1 KB
visualize.md13.6 KB
scripts/10
command-metadata.json8.1 KB
engine-checksums.txt787 B
impeccable10.9 KB
impeccable.cmd12.2 KB
live-browser-dom.js12.0 KB
live-browser-ignores.js10.2 KB
live-browser-session.js5.7 KB
live-browser.js550.0 KB
modern-screenshot.umd.js28.6 KB
VERSION7 B
SKILL.md11.5 KB
.githooks/1
pre-commit798 B
.github/1
ISSUE_TEMPLATE/2
bug.yml1.9 KB
friction.yml1.0 KB
.impeccable/1
critique/1
2026-10-30T14-26-11Z__src.md11.3 KB
.vscode/1
settings.json193 B
bin/1
charon.mjs15.3 KB
docs/12
user/7
characters.md4.3 KB
chatting.md2.9 KB
getting-started.md4.5 KB
index.md3.2 KB
lorebooks.md3.2 KB
troubleshooting.md2.9 KB
card-tooling.md8.5 KB
characters-page-redesign.md33.1 KB
chat-page-hook-audit.md19.4 KB
deployment.md3.1 KB
features.md6.4 KB
generation-engine.md8.0 KB
launch-kit.md5.5 KB
markdown.md17.9 KB
packaging.md22.3 KB
state-machines.md30.6 KB
ui-spec.md90.3 KB
drizzle/30
meta/21
_journal.json4.2 KB
0000_snapshot.json24.4 KB
0001_snapshot.json27.9 KB
0002_snapshot.json29.5 KB
0003_snapshot.json32.0 KB
0004_snapshot.json36.4 KB
0005_snapshot.json37.6 KB
0006_snapshot.json39.2 KB
0007_snapshot.json39.4 KB
0008_snapshot.json39.2 KB
0009_snapshot.json40.2 KB
0010_snapshot.json41.5 KB
0011_snapshot.json41.5 KB
0012_snapshot.json40.7 KB
0013_snapshot.json40.2 KB
0014_snapshot.json40.5 KB
0015_snapshot.json40.4 KB
0017_snapshot.json41.3 KB
0018_snapshot.json41.3 KB
0019_snapshot.json41.5 KB
0020_snapshot.json41.7 KB
0000_nebulous_famine.sql5.0 KB
0005_soft_cerise.sql335 B
0008_tidy_shape.sql757 B
0009_furry_wasp.sql357 B
0021_single_user.sql8.1 KB
patches/1
@[email protected]36.1 KB
scripts/20
__fixtures__/1
build-seed-portraits.mjs3.2 KB
card-kit.ts3.9 KB
card.ts4.9 KB
check-fonts.mjs714 B
mcp-card.sh152 B
migrate-data.ts20.9 KB
migrate-image-paths.ts7.7 KB
migration-io.test.ts1.3 KB
migration-io.ts132 B
release-beast.sh3.8 KB
sync-models-dev.mjs4.4 KB
verify-user-docs.mjs11.1 KB
vite-dev-policy.test.ts2.6 KB
vite-dev-policy.ts3.4 KB
src/14
components/10
ai/6
ModelDefaultsFields.tsx10.3 KB
ProviderDialog.tsx5.1 KB
ProviderManager.tsx10.9 KB
TestMessageDialog.tsx3.8 KB
character/7
character-definition.tsx5.8 KB
character-poster.tsx7.2 KB
more-by-creator.test.tsx3.5 KB
more-by-creator.tsx2.8 KB
common/25
ChipInput.tsx2.6 KB
CommandMenu.tsx3.0 KB
ConfirmDialog.test.tsx1.2 KB
ConfirmDialog.tsx1.7 KB
EmptyState.tsx856 B
ErrorBanner.tsx735 B
ErrorBoundary.tsx1.4 KB
Logo.tsx623 B
MobileTabBar.tsx1.5 KB
ModelCombobox.test.tsx2.3 KB
ModelCombobox.tsx5.0 KB
NewSheet.tsx2.9 KB
PageHeader.tsx1.6 KB
PageTransition.tsx1.1 KB
RelativeTime.tsx1.2 KB
RouteLoading.tsx834 B
RowActionsMenu.tsx1.5 KB
SaveBar.tsx826 B
SectionNav.tsx2.5 KB
Skeletons.tsx1.6 KB
SkipLink.tsx389 B
StatChip.tsx484 B
StatusDot.tsx669 B
TagFilterPopover.tsx2.8 KB
lorebook/2
EntryEditorSheet.tsx11.7 KB
ImportLorebookDialog.tsx3.7 KB
preset/2
PresetDialog.tsx12.8 KB
PresetManager.tsx8.1 KB
settings/2
DisplayPreferences.tsx2.0 KB
settings-ui.tsx1.3 KB
ui/64
accordion.tsx2.7 KB
alert-dialog.tsx5.5 KB
alert.tsx2.0 KB
aspect-ratio.tsx276 B
attachment.tsx5.9 KB
avatar.test.tsx2.5 KB
avatar.tsx5.5 KB
badge.tsx1.8 KB
breadcrumb.tsx2.4 KB
bubble.tsx4.3 KB
button-group.tsx2.7 KB
button.tsx2.9 KB
calendar.tsx7.8 KB
card.tsx2.6 KB
carousel.tsx5.5 KB
chart.tsx10.1 KB
checkbox.tsx1.4 KB
collapsible.tsx747 B
combobox.tsx9.6 KB
command.tsx4.8 KB
context-menu.tsx9.3 KB
dialog.tsx4.2 KB
direction.tsx501 B
drawer.tsx4.0 KB
dropdown-menu.tsx9.8 KB
empty.tsx2.3 KB
field.tsx5.7 KB
hover-card.tsx1.5 KB
input-group.tsx4.9 KB
input-otp.tsx2.5 KB
input.tsx899 B
item.tsx4.6 KB
kbd.tsx881 B
label.tsx612 B
marker.tsx1.8 KB
menubar.tsx9.5 KB
message-scroller.tsx3.9 KB
message.tsx2.2 KB
navigation-menu.tsx6.7 KB
optimized-image.test.tsx3.5 KB
optimized-image.tsx3.4 KB
pagination.tsx2.7 KB
popover.tsx2.3 KB
progress.tsx755 B
questionnaire.tsx9.9 KB
radio-group.tsx1.6 KB
resizable.tsx1.6 KB
scroll-area.tsx1.6 KB
select.tsx7.1 KB
separator.tsx654 B
sheet.tsx4.5 KB
sidebar.tsx21.0 KB
skeleton.tsx282 B
slider.tsx1.8 KB
sonner.tsx1.6 KB
spinner.tsx589 B
switch.tsx1.6 KB
table.tsx2.2 KB
tabs.tsx3.4 KB
textarea.tsx764 B
toggle-group.tsx3.2 KB
toggle.tsx1.7 KB
tooltip.tsx2.1 KB
Header.tsx5.8 KB
MarkdownContent.tsx412 B
RichText.tsx3.1 KB
db/5
__tests__/14
aiProviders.repo.test.ts6.5 KB
character-data.ts608 B
characters.repo.test.ts18.3 KB
chats.repo.test.ts12.6 KB
helpers.ts1.2 KB
lorebook-data.ts1.3 KB
lorebooks.repo.test.ts16.5 KB
migrate.test.ts5.1 KB
onboarding.repo.test.ts3.1 KB
personas.repo.test.ts3.4 KB
presets.repo.test.ts1.9 KB
repositories/11
aiProviders.ts3.7 KB
backgrounds.ts1.1 KB
character-revisions.ts6.0 KB
characters.ts8.7 KB
chats.ts7.0 KB
generation.ts8.3 KB
lorebooks.ts6.6 KB
onboarding.ts1.3 KB
personas.ts1.8 KB
presets.ts2.9 KB
userSettings.ts2.8 KB
index.ts849 B
migrate.ts3.8 KB
schema.ts20.2 KB
features/4
chat/3
config/7
fns.ts702 B
lorebook.ts831 B
persona.ts897 B
provider.ts3.6 KB
service.test.ts2.6 KB
service.ts2.6 KB
types.ts2.2 KB
tree/10
active-path.test.ts5.1 KB
active-path.ts1.2 KB
fns.ts2.1 KB
operations.test.ts7.9 KB
operations.ts2.9 KB
optimistic.test.ts5.0 KB
optimistic.ts2.5 KB
service.test.ts17.1 KB
service.ts14.2 KB
types.ts1.0 KB
ui/14
components/22
chat-background.test.tsx1.3 KB
chat-background.tsx3.6 KB
chat-day-group.tsx776 B
chat-header.tsx5.0 KB
chat-message.tsx15.0 KB
chat-row.test.tsx3.8 KB
chat-row.tsx5.2 KB
composer.test.tsx5.6 KB
composer.tsx9.0 KB
custom-image-panel.tsx6.3 KB
image-lightbox.test.tsx2.7 KB
image-lightbox.tsx3.5 KB
image-panels.test.tsx8.6 KB
message-list.test.tsx7.0 KB
message-list.tsx14.2 KB
rename-chat-dialog.tsx3.2 KB
hooks/6
.gitkeep0 B
use-chat-list.test.tsx3.0 KB
use-chat-list.ts1.6 KB
use-floating-panel.ts2.0 KB
use-generation-chat.ts6.6 KB
pages/3
settings/14
sections/9
background-section.tsx12.7 KB
character-section.tsx2.9 KB
chat-details-section.tsx6.5 KB
display-section.tsx1.5 KB
lorebooks-section.tsx15.6 KB
model-section.tsx1.7 KB
persona-section.tsx17.1 KB
prompts-section.test.tsx1.2 KB
prompts-section.tsx2.3 KB
blur-commit-textarea.tsx8.0 KB
save-status.test.tsx3.3 KB
save-status.tsx6.0 KB
section-header.test.tsx1.3 KB
section-header.tsx902 B
settings-mode-switch.tsx1.4 KB
settings-nav-model.ts1.0 KB
settings-nav.tsx2.8 KB
settings-panel.tsx10.3 KB
chat-store.ts6.1 KB
custom-image-store.ts2.6 KB
custom-image.ts1.7 KB
macros.ts538 B
message-overview.test.ts2.8 KB
message-overview.ts2.2 KB
pending.test.ts1.5 KB
pending.ts830 B
generation/24
chat-stream.ts1.5 KB
cleanup.test.ts5.1 KB
cleanup.ts2.3 KB
context.test.ts1.4 KB
context.ts3.2 KB
contract.ts2.1 KB
errors.test.ts1.2 KB
errors.ts2.4 KB
finalize.ts2.7 KB
fns.ts1.5 KB
image.test.ts1.4 KB
image.ts2.1 KB
prepare.test.ts10.8 KB
prepare.ts6.4 KB
prompt.test.ts19.1 KB
prompt.ts15.5 KB
proposal-fns.ts1.8 KB
proposal.ts6.8 KB
proposals.ts3.9 KB
provider.ts881 B
tools.test.ts13.0 KB
tools.ts14.2 KB
logging/9
EXAMPLES.md3.3 KB
format.ts737 B
index.ts116 B
level.ts940 B
logger.test.ts9.8 KB
logger.ts1.8 KB
README.md4.3 KB
transports.ts2.0 KB
types.ts752 B
onboarding/8
character-step.tsx2.9 KB
onboarding-gate.test.ts1.9 KB
onboarding-gate.ts596 B
onboarding-page.tsx1.8 KB
onboarding-wizard.tsx7.1 KB
persona-step.tsx4.3 KB
provider-step.tsx12.1 KB
hooks/14
use-mobile.ts576 B
useAiProviders.ts3.3 KB
useBackgrounds.ts1.4 KB
useCharacters.ts6.2 KB
useChatConfig.ts2.5 KB
useChats.test.tsx7.3 KB
useChats.ts6.2 KB
useLorebooks.ts5.6 KB
useOnboarding.ts719 B
usePersonas.ts2.5 KB
usePresets.ts2.7 KB
useProviderModels.ts538 B
useUserSettings.ts1.9 KB
integrations/1
tanstack-query/2
devtools.tsx160 B
root-provider.tsx624 B
lib/25
cardkit/12
assets.ts1.3 KB
check.test.ts3.0 KB
check.ts5.9 KB
discovery.test.ts512 B
discovery.ts4.9 KB
index.ts625 B
render.ts6.2 KB
report.ts4.7 KB
shell.ts2.2 KB
submit.test.ts522 B
submit.ts9.2 KB
types.ts804 B
character/10
card-path.test.ts1.4 KB
card-path.ts1.9 KB
card-session.test.ts3.7 KB
card-session.ts3.5 KB
diff.test.ts9.6 KB
diff.ts6.2 KB
display-name.test.ts2.5 KB
display-name.ts1.2 KB
normalize.test.ts15.8 KB
normalize.ts9.3 KB
chat/7
lorebook/4
st-core/8
character/10
ambient.d.ts429 B
index.ts2.2 KB
parser.test.ts9.5 KB
parser.ts2.2 KB
png-encode.ts1.7 KB
serializer.ts3.2 KB
types.ts5.4 KB
validator.ts4.0 KB
validators.test.ts5.5 KB
validators.ts9.6 KB
chat-tree/5
context/7
assembler.ts3.7 KB
collection.ts2.2 KB
examples.ts1.8 KB
index.ts855 B
story-string.ts1.6 KB
types.ts1.8 KB
validators.ts1.0 KB
lorebook/5
script/5
shared/7
transform/5
index.ts78 B
app-errors.ts684 B
auth-client.ts196 B
auth.functions.ts449 B
auth.ts2.0 KB
crypto.ts609 B
css-supports.ts1.0 KB
default-prompts.ts1.7 KB
error-copy.test.ts1.6 KB
error-copy.ts1.1 KB
image-optimization.ts3.1 KB
markdown-balance.test.ts2.0 KB
markdown.test.ts3.7 KB
markdown.ts17.6 KB
models-dev.json92.2 KB
models-dev.ts1.5 KB
plain-text.test.ts2.2 KB
plain-text.ts3.5 KB
richtext-settings.tsx4.4 KB
utils.ts192 B
mcp/1
card-server.ts12.6 KB
routes/12
api/6
characters/12
$id_.edit.tsx20.8 KB
$id_.revisions.test.tsx8.0 KB
$id_.revisions.tsx8.7 KB
$id.test.tsx5.5 KB
$id.tsx12.5 KB
delete-stats.test.ts1.0 KB
delete-stats.ts509 B
detail-helpers.test.ts4.8 KB
detail-helpers.ts1.7 KB
index.tsx18.4 KB
new.test.tsx19.0 KB
new.tsx20.4 KB
settings/7
defaults.tsx601 B
index.tsx206 B
preferences.tsx717 B
presets.tsx673 B
profile.tsx4.6 KB
providers.tsx595 B
route.tsx4.4 KB
__root.tsx9.8 KB
index.tsx24.4 KB
onboarding.tsx218 B
setup.tsx9.0 KB
signin.tsx6.4 KB
up.ts1.6 KB
server/19
__tests__/5
character-import.test.ts24.4 KB
image-limits.test.ts2.4 KB
image-optimizer.test.ts13.1 KB
private-fs.test.ts4.1 KB
uploads.test.ts997 B
fns/13
aiProviders.ts5.4 KB
backgrounds.ts2.6 KB
cardkit.ts955 B
characters.ts8.0 KB
chats.ts6.3 KB
lorebooks.ts9.5 KB
models.ts2.8 KB
onboarding.ts702 B
personas.ts5.0 KB
presets.ts2.5 KB
setup.ts524 B
userLorebookSettings.ts2.6 KB
userSettings.ts2.1 KB
schemas/4
services/3
ai/2
chat-tester.ts3.2 KB
model-fetcher.ts2.2 KB
character/1
importer.ts14.9 KB
lorebook/1
importer.ts984 B
bootstrap.test.ts5.5 KB
bootstrap.ts236 B
cardkit.ts4.3 KB
image-limits.ts4.0 KB
image-optimizer.ts17.8 KB
preset-input.test.ts2.2 KB
preset-input.ts3.0 KB
private-fs.ts9.2 KB
seed-portraits.ts123.6 KB
seed.ts24.1 KB
session.ts1.1 KB
settings-patch.test.ts3.5 KB
settings-patch.ts2.2 KB
uploads.ts454 B
validators.ts257 B
test/1
setup.ts1.3 KB
fonts.css8.2 KB
router.tsx891 B
routeTree.gen.ts23.3 KB
styles.css30.4 KB
static/9
fonts/29
fraunces-500-latin-ext.woff258.0 KB
fraunces-500-latin.woff265.7 KB
fraunces-600-latin-ext.woff231.4 KB
fraunces-600-latin.woff234.3 KB
fraunces-700-latin-ext.woff258.0 KB
fraunces-700-latin.woff265.7 KB
inter-400-6ab57b19c6.woff247.1 KB
inter-400-b6db4a06c1.woff283.1 KB
inter-400-latin-ext.woff283.1 KB
inter-400-latin.woff247.1 KB
inter-500-latin-ext.woff283.1 KB
inter-500-latin.woff247.1 KB
inter-600-latin-ext.woff283.1 KB
inter-600-latin.woff247.1 KB
inter-700-latin-ext.woff283.1 KB
inter-700-latin.woff247.1 KB
OFL-Fraunces.txt4.3 KB
OFL-Inter.txt4.3 KB
OFL-JetBrainsMono.txt4.3 KB
marketing/6
characters-library.webp40.6 KB
chat-branching.webp63.3 KB
chat-mobile.webp35.5 KB
import.webp10.1 KB
providers.webp14.6 KB
tree-detail.webp36.8 KB
favicon.ico31.3 KB
logo.svg446 B
logo192.png4.6 KB
logo512.png13.9 KB
manifest.json472 B
og.png18.4 KB
robots.txt143 B
.cta.json496 B
.cursorrules175 B
.dockerignore281 B
.env.example816 B
.gitignore1.3 KB
.oxfmtrc.json112 B
AGENTS.md3.7 KB
components.json532 B
CONTRIBUTING.md16.6 KB
docker-compose.yml1.1 KB
Dockerfile1.4 KB
drizzle.config.ts284 B
LICENSE1.0 KB
NOTICE960 B
package.json4.3 KB
pnpm-lock.yaml395.6 KB
pnpm-workspace.yaml789 B
README.md10.7 KB
SECURITY.md1.3 KB
tsconfig.json680 B
tsr.config.json24 B
vite.config.ts2.4 KB
vitest.config.ts392 B
License
MIT. Use it, change it, ship it, keep the notice. The characters are yours; the code is everyone's.