Lightweight design viewing for your Vue app—pan, zoom, and navigate multi-page designs. Runs entirely in the browser with no server dependencies.

Prerequisites#
Before you begin, make sure you have the following:
- Node.js v22+ and npm installed locally – Download Node.js
- A supported browser – Chrome 114+, Edge 114+, Firefox 115+, Safari 15.6+
See Browser Support for the full list.
Get Started#
Create a new Vue application with Design Viewer integration.
Step 1: Create a New Project#
npm create vue@latest your-project-name
cd your-project-namenpm create vue@latest your-project-name
cd your-project-namepnpm create vue your-project-name
cd your-project-namepnpm create vue your-project-name
cd your-project-nameyarn create vue your-project-name
cd your-project-nameyarn create vue your-project-name
cd your-project-nameReplace the content of src/assets/main.css with body { margin: 0; }. The template limits the width of the app, so the editor does not fill wide windows.
Step 2: Clone the Starter Kit#
Clone the starter kit and copy the viewer configuration to your project:
git clone https://github.com/imgly/starterkit-design-viewer-ts-web.git
cp -r starterkit-design-viewer-ts-web/src/imgly ./src/imgly
rm -rf starterkit-design-viewer-ts-webgit clone https://github.com/imgly/starterkit-design-viewer-ts-web.git
cp -r starterkit-design-viewer-ts-web/src/imgly ./src/imgly
rm -rf starterkit-design-viewer-ts-webnpx degit imgly/starterkit-design-viewer-ts-web/src/imgly ./src/imglynpx degit imgly/starterkit-design-viewer-ts-web/src/imgly ./src/imglyStep 3: Install Dependencies#
The Creative Editor SDK package provides all viewing functionality.
npm install @cesdk/cesdk-js@1.87.0-rc.3npm install @cesdk/cesdk-js@1.87.0-rc.3pnpm add @cesdk/cesdk-js@1.87.0-rc.3pnpm add @cesdk/cesdk-js@1.87.0-rc.3yarn add @cesdk/cesdk-js@1.87.0-rc.3yarn add @cesdk/cesdk-js@1.87.0-rc.3Step 4: Download Assets#
CE.SDK requires engine assets (fonts, icons, UI elements) to function. These must be served as static files from your project’s public/ directory.
curl -O https://cdn.img.ly/packages/imgly/cesdk-js/1.87.0-rc.3/imgly-assets.zip
unzip imgly-assets.zip -d public/
rm imgly-assets.zipcurl -O https://cdn.img.ly/packages/imgly/cesdk-js/1.87.0-rc.3/imgly-assets.zip
unzip imgly-assets.zip -d public/
rm imgly-assets.zipStep 5: Create the Viewer Component#
Create a Vue component using the official CE.SDK Vue wrapper:
<template> <CreativeEditor :config="{ baseURL: '/assets' }" :init="init" width="100vw" height="100vh" /></template>
<script setup lang="ts">import { initDesignViewer } from '../imgly';import type CreativeEditorSDK from '@cesdk/cesdk-js';import CreativeEditor from '@cesdk/cesdk-js/vue';
async function init(cesdk: CreativeEditorSDK) { await initDesignViewer(cesdk); await cesdk.actions.run('scene.create');}</script>Step 6: Use the Component#
Import and use the Design Viewer component in your application:
<template> <DesignViewer /></template>
<script setup lang="ts">import DesignViewer from './components/DesignViewer.vue';</script>Get Started#
Integrate the Design Viewer into an existing Vue application. The steps expect a TypeScript project built with Vite. The project must have src/ and public/ folders.
If the project still has the Vite template CSS, replace the content of src/assets/main.css (src/style.css in a vue-ts project) with body { margin: 0; }. The template limits the width of the app, so the editor does not fill wide windows.
Step 1: Navigate to Your Project#
cd your-projectcd your-projectStep 2: Clone the Starter Kit#
Clone the starter kit and copy the viewer configuration to your project:
git clone https://github.com/imgly/starterkit-design-viewer-ts-web.git
cp -r starterkit-design-viewer-ts-web/src/imgly ./src/imgly
rm -rf starterkit-design-viewer-ts-webgit clone https://github.com/imgly/starterkit-design-viewer-ts-web.git
cp -r starterkit-design-viewer-ts-web/src/imgly ./src/imgly
rm -rf starterkit-design-viewer-ts-webnpx degit imgly/starterkit-design-viewer-ts-web/src/imgly ./src/imglynpx degit imgly/starterkit-design-viewer-ts-web/src/imgly ./src/imglyStep 3: Install Dependencies#
The Creative Editor SDK package provides all viewing functionality.
npm install @cesdk/cesdk-js@1.87.0-rc.3npm install @cesdk/cesdk-js@1.87.0-rc.3pnpm add @cesdk/cesdk-js@1.87.0-rc.3pnpm add @cesdk/cesdk-js@1.87.0-rc.3yarn add @cesdk/cesdk-js@1.87.0-rc.3yarn add @cesdk/cesdk-js@1.87.0-rc.3Step 4: Download Assets#
CE.SDK requires engine assets (fonts, icons, UI elements) to function. These must be served as static files from your project’s public/ directory.
curl -O https://cdn.img.ly/packages/imgly/cesdk-js/1.87.0-rc.3/imgly-assets.zip
unzip imgly-assets.zip -d public/
rm imgly-assets.zipcurl -O https://cdn.img.ly/packages/imgly/cesdk-js/1.87.0-rc.3/imgly-assets.zip
unzip imgly-assets.zip -d public/
rm imgly-assets.zipStep 5: Create the Viewer Component#
Create a Vue component using the official CE.SDK Vue wrapper:
<template> <CreativeEditor :config="{ baseURL: '/assets' }" :init="init" width="100vw" height="100vh" /></template>
<script setup lang="ts">import { initDesignViewer } from '../imgly';import type CreativeEditorSDK from '@cesdk/cesdk-js';import CreativeEditor from '@cesdk/cesdk-js/vue';
async function init(cesdk: CreativeEditorSDK) { await initDesignViewer(cesdk); await cesdk.actions.run('scene.create');}</script>Step 6: Use the Component#
Import and use the Design Viewer component in your application:
<template> <DesignViewer /></template>
<script setup lang="ts">import DesignViewer from './components/DesignViewer.vue';</script>Set Up a Scene#
Replace the scene.create line in src/components/DesignViewer.vue. Use one of these calls:
CE.SDK offers multiple ways to load content into the viewer. Choose the method that matches your use case:
// Load from a template archive - loads a previously saved projectawait cesdk.load('https://example.com/design.zip');
// Load from a scene file - restores a saved sceneawait cesdk.load('https://example.com/scene.scene');
// Zoom to fit the contentawait cesdk.actions.run('zoom.toPage', { page: 'first', autoFit: true, padding: 24});Customize (Optional)#
Theming#
CE.SDK supports light and dark themes out of the box, plus automatic system preference detection. Switch between themes programmatically:
// 'light' | 'dark' | 'system' | (() => 'light' | 'dark')cesdk.ui.setTheme('dark');See Theming for custom color schemes, CSS variables, and advanced styling options.
Localization#
Customize UI labels and add support for multiple languages. The i18n system supports translation keys for all UI elements:
// Override specific labelscesdk.i18n.setTranslations({ en: { 'component.zoom.in': 'Zoom In', 'component.zoom.out': 'Zoom Out' }});
// Add a new languagecesdk.i18n.setTranslations({ de: { 'component.zoom.in': 'Vergrößern' }});
// Set the active localecesdk.i18n.setLocale('de');See Localization for supported languages, translation key reference, and right-to-left language support.
Key Capabilities#
The Design Viewer includes everything needed for design viewing.
Pan & Zoom
Navigate designs with intuitive pan and zoom controls.
Page Navigation
Navigate between pages in multi-page designs and presentations.
Zoom Controls
Zoom in and out of the canvas with fit-to-screen options.
Read-Only Mode
Display design content without editing capabilities for preview and approval workflows.
Approval Workflows
Review and approve designs without the risk of accidental modifications.
Lightweight Interface
Minimal UI focused on viewing experience without editing distractions.
Troubleshooting#
Viewer doesn’t load#
- Check the editor size: Ensure the
widthandheightof<CreativeEditor>give it a visible area - Verify the baseURL: Assets must be accessible from the CDN or your self-hosted location
- Check console errors: Look for CORS or network errors in browser developer tools
Content doesn’t appear#
- Check network requests: Open DevTools Network tab and look for failed requests to
cdn.img.ly - Self-host assets for production: See Serve Assets to host assets on your infrastructure
Watermark appears in production#
- Add your license key: Set the
licenseproperty in your configuration - Get a license: Contact us at img.ly/forms/contact-sales/
Next Steps#
- Configuration – Complete list of initialization options
- Serve Assets – Self-host engine assets for production
- Theming – Customize colors and appearance
- Localization – Add translations and language support