StrangeBytes's picture
Upload 8 files
8ebe2ad verified
Raw History Blame Contribute Delete
7.29 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta
name="description"
content="Build an AI roleplay character with opening messages and a portrait. Download a portable RPKG file for Museris, directly from your browser.">
<title>Character Builder · Museris</title>
<link
rel="icon"
href="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 40 40%27%3E%3Ctext y=%2732%27 font-size=%2736%27 fill=%27%23e5c58e%27%3E✧%3C/text%3E%3C/svg%3E">
<link rel="stylesheet" href="./style.css">
<script type="module" src="./app.js"></script>
</head>
<body>
<main>
<div class="intro">
<h1>RPKG character builder</h1>
<p>Create a character with a definition, opening messages, and an optional portrait. Download it as a single file to import into Museris.</p>
<details class="format-info" open>
<summary>What is an RPKG file?</summary>
<p>
An <code>.rpkg</code> file is a portable ZIP package for roleplay characters and lorebooks. It keeps character text, alternative greetings, and portrait
images together, so you can share a complete character or move it between devices without losing its details.
</p>
<p>The contents are plain JSON and images, so you can inspect them with ordinary ZIP tools. This builder exports one character per package.</p>
<p><a id="rpkg-repo" href="https://github.com/StrangeBytesOrg/rpkg" target="_blank" rel="noopener noreferrer">View the RPKG specification on GitHub ↗</a></p>
</details>
</div>
<div class="workspace">
<form id="builder">
<section class="panel">
<div class="section-heading">
<h2>Character details</h2>
<button type="button" id="example" class="text-button">Try an example ↗</button>
</div>
<label for="name">Name <span class="required">required</span></label><input
id="name"
name="name"
placeholder="Character name"
required
maxlength="200"
autocomplete="off">
<label for="tagline">Tagline <span class="optional">optional</span></label><input
id="tagline"
name="tagline"
placeholder="A starship mechanic with a secret worth keeping"
maxlength="500">
<label for="definition">Character definition <span class="required">required</span></label><p class="hint" id="definition-help">
Describe their personality, history, voice, and the world they live in. This is what the AI uses to play your character.
</p><textarea
id="definition"
name="definition"
rows="9"
required
aria-describedby="definition-help"
placeholder="Who are they beneath the surface? What do they want? How do they speak? What brings you together?"></textarea>
</section>
<section class="panel">
<div class="section-heading"><h2>Opening messages</h2></div>
<label for="greeting">Opening message <span class="required">required</span></label><p class="hint" id="greeting-help">
Write their first message. Set the scene, let them speak, and leave room for the other person to act.
</p><textarea
id="greeting"
name="greeting"
rows="5"
required
aria-describedby="greeting-help"
placeholder="The workshop door slides open. Your character looks up…"></textarea>
<div id="alternatives"></div>
<button type="button" id="add-greeting" class="text-button add-button">+ Add an alternative opening</button>
</section>
<section class="panel">
<div class="section-heading"><h2>Portrait</h2><span class="optional">optional</span></div>
<label for="portrait">Character portrait</label><input
type="file"
id="portrait"
accept="image/png, image/jpeg, image/webp"
aria-describedby="portrait-help"><p class="hint" id="portrait-help">PNG, JPEG, or WebP · up to 5 MB. Embedded in your character file.</p>
<button type="button" id="remove-portrait" class="text-button" hidden>Remove portrait</button>
</section>
<p id="status" role="status" aria-live="polite"></p>
<div class="export-bar">
<button type="submit" id="download" class="primary">Download character <span aria-hidden="true">↓</span></button><span class="hint">Portable .rpkg
file<br>Ready to import into Museris</span>
</div>
</form>
<aside>
<div class="preview-card">
<div class="portrait-area">
<img id="preview-portrait" alt="Character portrait" hidden><span id="portrait-placeholder" aria-hidden="true">✧</span><span
class="preview-badge">CHARACTER PREVIEW</span>
</div>
<div class="preview-body">
<h2 id="preview-name">Character name</h2>
<p id="preview-tagline">Character tagline</p>
<div class="preview-rule"></div><span class="eyebrow">OPENING MESSAGE</span><p id="preview-greeting" class="opening">
Your opening message will appear here.
</p>
</div>
</div>
<p class="import-help">
Import the downloaded file into <a
href="https://museris.com/download?utm_source=huggingface&utm_medium=space&utm_campaign=character_builder"
target="_blank"
rel="noopener noreferrer">Museris</a> to use your character.
</p>
<p class="privacy">Your character stays in your browser.<br>No uploads. No account needed.</p>
</aside>
</div>
</main>
</body>
</html>