Kaleidoscope
Kaleidoscope is the world's most powerful file comparison and merge app. It allows you to spot differences in text and image files, or even folders full of files. Protocol Launcher allows you to generate deep links to open and compare resources in Kaleidoscope.
Usage
There are two ways to use this library:
- On-Demand import from subpaths enables tree-shaking and keeps bundles small.
- Full Import from the root package is convenient but includes all app modules.
Pick On-Demand for production builds; Full Import is fine for quick scripts or demos.
Select Installation Method
On-Demand
Recommended. Optimized for production.
Full Import
Convenient. Good for quick scripts.
Open Kaleidoscope
ts
import { open } from 'protocol-launcher/kaleidoscope'
const url = open()Compare Files
ts
import { compare } from 'protocol-launcher/kaleidoscope'
const url = compare({
previousPath: '/Users/dev/Desktop/previous.md',
latestPath: '/Users/dev/Desktop/latest.md',
})Compare Clipboard
ts
import { clipboard } from 'protocol-launcher/kaleidoscope'
const url = clipboard({
label: 'Clipboard',
})Open History
ts
import { history } from 'protocol-launcher/kaleidoscope'
const url = history({
label: 'History',
filePath: '/Users/dev/protocol-launcher/packages/protocol-launcher/src/kaleidoscope/history.ts',
})