twiklite
Version:
A lightweight optimized version of Twikoo
41 lines (32 loc) • 1.54 kB
Markdown
# Twiklite
[](https://opensource.org/licenses/MIT)
A lightweight optimized version of [Twikoo](https://github.com/twikoojs/twikoo), designed for reduced bundle size and simplified functionality.
## ✨ Features
- **~25% smaller** production bundle compared to original Twikoo.
- Only the core features are retained, while the non-essential features are removed:
- Comment management
- User browser/region display
- Image uploads
- Owo
- UA information collection
- Like & Liked
- more ...
- Compatible with existing Twikoo server-side deployments, Markdown and API is still supported.
> The default maximum character limit has been modified from ~~500~~ to 300 .
## ⚠️ Trade-offs
- Requires a separate admin page using vanilla Twikoo for moderation.
- Some configuration items of comment management may not be supported, such as browser and region display, whether true or false, they are actually false.
## 📦 File Differences
| File | Description |
|------|-------------|
| `dist/core.js` | Standard version |
| `dist/core.all.js` | Includes version developed by Tencent Cloud (Larger volume) |
## 🛠️ Usage
1. Deploy the [tkserver](https://twikoo.js.org/backend.html) as usual.
2. Replace Twikoo client-side with Twiklite:
```html
<script src="https://unpkg.com/twiklite/dist/core.js"></script>
```
3. Remove server-side UA storage to save space (optional).
## 📜 License
MIT © ZeoSeven