Learn how to download and run a pre-configured SvelteKit project for CE.SDK from GitHub. This approach provides a ready-made environment, eliminating the need for initial setup.
What’s CreativeEditor SDK?#
CreativeEditor SDK (CE.SDK) lets you integrate a customizable image and video editor into your web app. It includes filters, text overlays, and other media editing tools, and adapts easily to your use case.
CreativeEditor SDK is a commercial product. To use it, you need a valid license key. If you don’t have one yet, you can get a free trial or purchase a license.
Free TrialPurchase License
Who Is This Guide For?#
This guide is for developers who:
- Want to skip setting up a custom environment to test CE.SDK.
- Prefer to use a pre-built SvelteKit template or sample project.
- Are comfortable using Git and SvelteKit to set up local development environments.
What You’ll Achieve#
Follow this guide to:
- Clone the project from GitHub.
- Install dependencies.
- Run the project locally.
- Access a fully functional editor in your browser.
Prerequisites#
Before you start, ensure you have the following:
- A cloning tool (Git, GitHub CLI, or
npx). - The latest LTS version of Node.js and npm: Needed to install dependencies and run the local server. Download Node.js.
- A valid CE.SDK license key.
Step 1: Clone the GitHub Repository#
Begin by cloning the CE.SDK examples repository from GitHub:
git clone https://github.com/imgly/cesdk-web-examples.gitClone taking too long?
Try a shallow clone instead:
git clone --depth=1 --branch main --single-branch https://github.com/imgly/cesdk-web-examples.gitThen, navigate to the SvelteKit folder:
cd cesdk-web-examples/integrate-with-angulargh repo clone imgly/cesdk-web-examplesClone taking too long?
Try a shallow clone instead:
gh repo clone imgly/cesdk-web-examples -- --depth=1 --branch main --single-branchThen navigate to the SvelteKit folder:
cd cesdk-web-examples/integrate-with-angularUse npx degit to clone only the Angular integration example:
npx degit https://github.com/imgly/cesdk-web-examples/integrate-with-sveltekitStep 2: Install the Dependencies#
At the root of the project directory, install the required dependencies using npm:
npm installThis downloads and installs all the packages specified in the project’s package.json file.
Step 3: Add Your License Key#
Next, add your license key to the project:
- Open
/src/lib/CreativeEditorSDK.svelte. - Replace the placeholder license key with your valid key:
const defaultConfig = { license: "<YOUR_CE_SDK_LICENSE>", // Replace with your CE.SDK license key // ...};Step 4: Run the Project#
Launch the development server by running:
npm run devBy default, the SvelteKit app runs on port 5173.
- Navigate to
http://localhost:5173/in your browser. - Access a fully functional video and image editor in your browser.
Troubleshooting & Common Issues#
❌ Issue: Module not found or missing packages
- Ensure you’ve run
npm installand that it completed without any issues.
❌ Error: 'vite' is not recognized as an internal or external command, operable program or batch file.
-
The install step also installs Vite, which the project requires to run locally. Double-check that you’ve run the following commands in the correct order:
npm install.npm run dev.
❌ Error: Editor engine could not be loaded: The License Key (API Key) you are using to access CE.SDK is invalid
-
Verify that your CE.SDK license key:
- Is valid.
- Hasn’t expired.
- Is correctly added to the
defaultConfigobject.
❌ Issue: The editor doesn’t appear.
- Look for any server-side errors in the terminal.
- Check the browser console for detailed error messages.
Next Steps#
Congratulations! You’ve successfully integrated CE.SDK into SvelteKit. When you’re ready, explore the SDK, and proceed to the next steps: