What are we building today?Ask anything, or start from one of these.
// Any bubble ends the welcome state, whoever put it there — a client, your own loop,
// or this button. The element watches its own viewport for it.
const seed = document.getElementById('seed');
seed.addEventListener('click', () => {
const viewport = document.querySelector('aparte-chat-viewport');
viewport.appendMessage({ id: 'u1', role: 'user', content: 'What is a transport?', timestamp: Date.now() });
viewport.appendMessage({
id: 'a1',
role: 'assistant',
content: 'The seam between the chat and your model: browser-direct with your own key, or your own /api/chat with the key on the server.',
timestamp: Date.now(),
});
seed.disabled = true;
});