webcut
v0.2.9
Published
A powerful video editing canvas UI library for web applications
Downloads
99
Maintainers
Readme
📋 Table of Contents
- Project Introduction
- Design Philosophy
- Core Features
- Quick Examples
- Installation
- Documentation
- License
- Acknowledgements
Project Introduction
WebCut is a video editing UI framework specifically designed for web applications. It provides intuitive canvas interface and comprehensive timeline tools, enabling developers to easily perform video editing, text/graphic overlay, element layout and transformation operations in the browser, and integrate them into their applications in a modular way.
Design Philosophy
WebCut's core philosophy is "Complex Capabilities, Simple Usage". We believe that implementing professional-grade video editing on the web platform should not be a burden. Through componentized architecture and responsive APIs, developers can focus on creativity itself, rather than underlying details.
Our Design Principles
| Principle | Description | |-----------|-------------| | 🎯 User-First Design | Intuitive interfaces and clear documentation, reducing learning costs | | ⚡ Performance Optimization | Optimized for browser environments to ensure smooth operation | | 🔧 Extensibility | Modular design for easy customization and feature extension | | 🛡️ Type Safety | Comprehensive TypeScript support to reduce development errors
Core Features
Editing and Creation
| Feature | Description | |---------|-------------| | 🎨 Canvas Editing | Intuitive canvas-based editing interface, what you see is what you get | | 🎬 Player Control | Play/pause, progress and volume control, supporting frame-level precise operations | | 📝 Text Overlay | Multi-style text addition and customization, supporting rich text effects | | ⏱️ Timeline | Precise timeline control, supporting scaling, positioning and clip management | | 🎛️ Element Transformation | Intuitive scaling, rotation and position adjustment, supporting precise value input |
Auxiliary Tools
| Feature | Description | |---------|-------------| | 📏 Size Measurement | Accurate text, video and image size calculation and control | | 🧰 Utility Functions | Export Blob, text-to-image conversion and other practical features | | 📱 Responsive Design | Adapt to different screen sizes, providing consistent editing experience |
Project Showcase
Project screenshots or demo videos can be placed here
Quick Examples
Integration in Vue Project
The following example shows how to quickly integrate WebCut in a Vue project:
<script setup lang="ts">
// Import core components and styles
import { WebCutEditor } from 'webcut';
import 'webcut/esm/style.css';
// Project ID (example)
const yourProjectId = 'example-project';
</script>
<template>
<div class="editor-container">
<h1>Video Editor</h1>
<!-- Use the complete editor component directly -->
<WebCutEditor :project-id="yourProjectId" />
</div>
</template>
<style scoped>
.editor-container {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
}
</style>Tip: The above code will render a complete video editing interface, including video canvas, toolbar and timeline. You can also import components and tools from
webcutas needed for customization.
Installation
WebCut supports installation via multiple package managers:
# Using npm
npm install webcut
# Using yarn
yarn add webcut
# Using pnpm
pnpm add webcutNote: WebCut currently supports modern browser environments. Before use, please ensure that your project has configured the necessary polyfills (if supporting older browsers is required).
Documentation
WebCut provides detailed documentation to help you get started quickly:
- API Documentation: Located in
docs/api.mdanddocs/zh-cn/api.md - Component Documentation: Detailed component usage instructions
- Quick Start Guide: Helping new users get started quickly
- FAQ: Solutions and best practices
For online documentation, please visit our documentation site.
License
This project is licensed under the MIT License, allowing free use, modification, and distribution. See the file for details.
Acknowledgements
WebCut's development would not be possible without the support of the following excellent open-source projects:
Core Dependencies
- @webav/av-canvas - Provides underlying video rendering capabilities
- @webav/av-cliper - Supports video editing functionality
- Vue 3 - Responsive frontend framework
Development Tools
- TypeScript - Type system support
- naive-ui - UI component library
- @vicons - Icon library
Thank you to the contributors of these projects for their efforts to the open-source community!
Tip: If you like this project, please give us a ⭐️ support!
