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

sabi-canvas

v0.2.3

Published

A powerful, open-source canvas design editor framework built with React and Konva.

Readme

Sabi Canvas

A powerful, open-source canvas design editor framework built with React and Konva. Sabi Canvas gives developers a full-featured graphic design editor — shapes, images, text, fonts, templates, layers, undo/redo, export to PDF/PNG — ready to embed in any React application.

Features

  • Konva-powered canvas — high-performance 2D rendering
  • Rich text editing — multiple fonts, sizes, colors, alignment
  • Image management — upload, crop, background removal (AI), drag-drop
  • Shape library — rectangles, circles, polygons, custom SVG shapes
  • Design templates — pre-built templates with full customization
  • Layer management — reorder, group, lock, hide layers
  • Undo/Redo — full history management
  • Export — PDF and PNG export with configurable DPI
  • Auto-save — project persistence via localStorage
  • Dark/Light mode — full theme support
  • AI features — AI text writing, background removal
  • Mobile responsive — works on desktop and mobile

Installation

npm install sabi-canvas

Peer Dependencies

npm install react react-dom react-konva konva framer-motion lucide-react react-router-dom @tanstack/react-query

Quick Start

import { EditorLayout } from 'sabi-canvas';
import 'sabi-canvas/styles'; // Import CSS

function DesignEditorPage() {
  return (
    <div style={{ position: 'fixed', inset: 0 }}>
      <EditorLayout isBlank />
    </div>
  );
}

CSS Setup

Option A — Import pre-built CSS (recommended)

// In your app's entry point (e.g., main.tsx)
import 'sabi-canvas/styles';

Option B — Tailwind CSS scanning

If your project uses Tailwind, add sabi-canvas source to your tailwind.config.ts content:

content: [
  './src/**/*.{ts,tsx}',
  './node_modules/sabi-canvas/src/**/*.{ts,tsx}',
]

Usage

Basic Editor

import { EditorLayout } from 'sabi-canvas';

<EditorLayout
  isBlank            // Start with blank canvas
  templateId="..."   // Or load a template
/>

With Contexts (advanced)

import {
  EditorProvider,
  CanvasObjectsProvider,
  CustomFontsProvider,
  useEditor,
  useCanvasObjects,
} from 'sabi-canvas';

AI Features Configuration

The editor supports AI-powered text writing and background removal. Configure your API keys via environment variables:

VITE_AI_API_KEY=your_key_here
VITE_REMOVE_BG_API_KEY=your_key_here
VITE_PIXABAY_API_KEY=your_key_here

Development

This package lives as a Git submodule inside sabiprint.

# Clone with submodule
git clone --recurse-submodules https://github.com/seunoyeniyi/sabiprint.git

# Update submodule to latest
git submodule update --remote sabi_canvas

# Build the library
cd sabi_canvas
npm install
npm run build

Contributing

Pull requests are welcome! Please open an issue first to discuss what you would like to change.

License

MIT