Skip to main content

compression-utils

Work with the URL compression system in kheMessage. Use when modifying how content is stored in URLs, debugging encoding issues, or optimizing compression.

소스 정보

저장소
HKTITAN/kheMessage
최근 소스 활동
2026년 2월 1일 11:49
감지된 SKILL.md 언어
영어
스타
1
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
compression-utils
description
Work with the URL compression system in kheMessage. Use when modifying how content is stored in URLs, debugging encoding issues, or optimizing compression.
# Compression Utilities Skill Work with the URL-based storage and compression system. ## When to Use - Debugging URL encoding issues - Optimizing compression performance - Extending the storage format - Handling special characters ## Compression Pipeline ``` blocks → serializeBlocks (binary + compact props) → CompressionStream (deflate or brotli) → format byte + Base85 → URL hash ``` ## Format Versions | Format byte | Encoding | Compression | |-------------|----------|-------------| | (legacy) | base64url | deflate-raw | | 0x01 | base64url | deflate-raw | | 0x02 | base85 | deflate-raw | | 0x03 | base85 | encrypted (AES-GCM) | | 0x04 | base85 | brotli | Format detection: if hash contains chars outside base64url (A-Za-z0-9_-), it's base85. Otherwise legacy base64url. ## Compact Property Keys Block properties use short keys when serialized: - `lang` → `l` - `checked` → `c` - `start` → `s` - `emoji` → `e` - `depth` → `d` ## Encryption (Format 0x03) AES-GCM-256 with PBKDF2 key derivation (120k iterations). Payload: salt(12) + IV(12) + ciphertext+tag(16). Triggered via "Lock with password" in Share menu. ## URL Structure ``` https://example.com/?theme=dark#base85EncodedContent ``` ## Limitations - URL length limits (~2000 chars safe, ~8000 max in modern browsers) - Base85 adds ~25% overhead (vs base64 ~33%) - Brotli supported in Safari 18.4+, Firefox 147+; deflate used as fallback ## Debugging Tips 1. Check browser console for compression errors 2. Test with content containing special characters 3. Verify URL doesn't exceed limits 4. Use DevTools Network tab to check actual URL 5. For encrypted content: ensure Web Crypto API is available
GitHub에서 보기