npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@actovision/kaptha-creative-suite

v1.0.1

Published

Kaptha Creative Suite — React canvas design editor

Readme

@actovision/kaptha-creative-suite

React canvas design editor — thin wrapper that loads the Kaptha Creative Suite from CDN.

Installation

npm install @actovision/kaptha-creative-suite

Quick Start

import { KapthaCreativeSuite } from '@actovision/kaptha-creative-suite';

function App() {
  return (
    <KapthaCreativeSuite
      apiKey="your-api-key"
      style={{ width: '100vw', height: '100vh' }}
      onSave={async (data) => {
        console.log('Design saved:', data);
      }}
    />
  );
}

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | apiKey | string | Yes | Your Kaptha API key | | theme | 'light' \| 'dark' | No | Editor theme | | defaultWidth | number | No | Initial canvas width | | defaultHeight | number | No | Initial canvas height | | className | string | No | CSS class for container | | style | CSSProperties | No | Inline styles for container | | templates | Template[] | No | Custom template library | | templatesUrl | string | No | URL to fetch templates JSON | | templateAssetsBaseUrl | string | No | Base URL for template assets | | googleFontsList | string[] | No | Custom Google Fonts list | | presetSizes | PresetSize[] | No | Custom canvas size presets | | documents | DocumentMeta[] | No | Saved documents list |

Callbacks

| Prop | Type | Description | |------|------|-------------| | onReady | () => void | Called when editor is ready | | onError | (error: Error) => void | Called on initialization error | | onLoadError | (error: Error) => void | Called if CDN bundle fails to load | | onSave | (data, preview?) => Promise<void> | Save handler | | onExport | (data) => void | Export handler | | onImageUpload | (file) => Promise<{ url }> | Image upload handler | | onDocumentDelete | (docId) => Promise<void> | Document delete handler | | onDocumentDuplicate | (docId) => Promise<DocumentMeta> | Document duplicate handler | | onDocumentLoad | (docId) => Promise<ExportData> | Document load handler | | onAIText | (action, text) => Promise<string \| null> | AI text action handler | | onAIImage | (action, imageUrl) => Promise<string \| null> | AI image action handler |

Script Tag Usage (No NPM)

You can also use the editor directly via CDN without this wrapper:

<link rel="stylesheet" href="https://code.kaptha.dev/creative/embed/editor.css" />
<script src="https://code.kaptha.dev/creative/embed/editor.js"></script>

<div id="editor" style="width: 100vw; height: 100vh;"></div>

<script>
  const editor = KapthaCreativeSuite.createEditor({
    container: '#editor',
    apiKey: 'your-api-key',
    onSave: async (data) => console.log(data),
  });

  // Later: editor.destroy();
</script>

Preloading

To preload the CDN bundle before rendering:

import { loadBundle } from '@actovision/kaptha-creative-suite';

// Call early (e.g., on route prefetch)
loadBundle();

TypeScript

All types are exported:

import type {
  KapthaCreativeSuiteProps,
  ExportData,
  Template,
  DocumentMeta,
  PresetSize,
  ThemeMode,
  ShapeType,
  NodeData,
  ToolType,
} from '@actovision/kaptha-creative-suite';

How It Works

This package is a thin React wrapper (~2 KB) that:

  1. Dynamically loads the editor JS + CSS from code.kaptha.dev
  2. Creates a React root inside your container div
  3. Renders the full Kaptha Creative Suite editor
  4. Provides TypeScript types for full IDE support

The actual editor code is served from Cloudflare R2 CDN, keeping your bundle size minimal.

License

MIT