Appearance
Installation Guide β
ContinueJS is modular. You only install what you need for your project architecture.
π¦ Package Manager Installation β
Core Package β
The @continuejs/core package contains the draft engine, storage managers, observer logic, encryption module, and serialization system.
bash
# npm
npm install @continuejs/core
# pnpm
pnpm add @continuejs/core
# yarn
yarn add @continuejs/coreWeb Component UI Library (Optional) β
If you want pre-built, themeable, accessible Web Components (<continuejs-banner> and <continuejs-modal>):
bash
npm install @continuejs/uiFramework Adapters (Optional) β
Install the adapter for your framework of choice:
bash
# React (React 18 & 19 supported)
npm install @continuejs/react
# Vue (Vue 3 supported)
npm install @continuejs/vue
# Svelte (Svelte 4 & 5 supported)
npm install @continuejs/svelteπ CDN Direct Usage (No Build Step) β
If you are building a static website, HTML page, or prototyped app without a build bundler, you can import ContinueJS directly from a CDN using native JavaScript ES Modules.
Using esm.sh β
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CDN Example</title>
</head>
<body>
<form id="feedback-form">
<input type="text" name="feedback" placeholder="Your feedback...">
</form>
<script type="module">
import { attach } from 'https://esm.sh/@continuejs/core';
import 'https://esm.sh/@continuejs/ui';
attach({
target: document.querySelector('#feedback-form'),
id: 'cdn-feedback-draft',
});
</script>
</body>
</html>πΊοΈ Import Maps Setup β
For clean imports without relative pathing:
html
<script type="importmap">
{
"imports": {
"@continuejs/core": "https://esm.sh/@continuejs/core",
"@continuejs/ui": "https://esm.sh/@continuejs/ui",
"@continuejs/react": "https://esm.sh/@continuejs/react"
}
}
</script>