A fast, multilingual text segmentation tool for breaking text into sentences, phrases, and words.
- Multilingual Support - Supports 19+ languages including English, Chinese, Japanese, Korean, Thai, Arabic, and more
- Multiple Segmentation Modes - Segment text into sentences, phrases, or words
- East Asian Text Processing - Advanced CJK, Thai, and Khmer word segmentation using ICU
- Fast & Lightweight - Runs entirely in the browser with no server-side processing
- Token Analysis - View detailed token information with offsets and punctuation detection
- Share Results - Generate shareable URLs with your segmentation results
- Internationalization - UI available in English and Chinese
- Open Source - MIT licensed and free to use
- Framework: React 19 + TanStack Start
- Styling: Tailwind CSS 4 + Base UI
- Text Segmentation: @echogarden/text-segmentation
- Internationalization: Intlayer
- Build Tool: Vite 7
- Deployment: Cloudflare Workers
- Code Quality: Ultracite (Biome preset)
- Node.js 20+
- pnpm 9+
# Clone the repository
git clone https://github.com/nicepkg/vercut.git
cd vercut
# Install dependencies
pnpm install# Start development server
pnpm devOpen http://localhost:3001 in your browser.
# Build for production
pnpm build# Deploy to Cloudflare Workers
cd apps/web
pnpm deployvercut/
├── apps/
│ └── web/ # Main web application
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── lib/ # Utilities and helpers
│ │ ├── routes/ # TanStack Router routes
│ │ └── types/ # TypeScript types
│ └── public/ # Static assets
└── packages/
└── config/ # Shared configuration
| Command | Description |
|---|---|
pnpm dev |
Start development server |
pnpm build |
Build for production |
pnpm check-types |
Type check all packages |
pnpm check |
Run linting and formatting |
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Echogarden for the excellent text segmentation library
- TanStack for the amazing React ecosystem
- Cloudflare for hosting
This project is licensed under the MIT License - see the LICENSE file for details.