Snippet is a personal code notebook for Android that serves as the official demonstration showcase for compose-highlight (dev.hossain:compose-highlight), a syntax highlighting library for Jetpack Compose.
Built for developers, Snippet lets you explore syntax highlighting themes on mobile while serving as a fast, offline-first tool for keeping code snippets, syncing GitHub Gists, and sharing code images.
COMPOSE-HIGHLIGHT SHOWCASE
• Live Syntax Highlighting: See compose-highlight render syntax across Kotlin, Java, Rust, Python, TypeScript, Go, Swift, C/C++, SQL, JSON, YAML, Markdown, and more.
• Theme Gallery: Preview popular editor color themes including Dracula, Monokai, GitHub Dark/Light, Nord, Solarized, and Material Ocean with full dark and light mode support.
• Performance: Test real-time highlighting during typing and smooth scrolling on large code blocks.
• Styled Code Cards: Export high-resolution code images with customizable padding, gradient backgrounds, and window controls (Carbon / Ray.so style).
NOTEBOOK & UTILITY FEATURES
• Offline-First Storage: Keep snippets organized locally with tags and language metadata.
• Instant Search: Fast full-text search powered by SQLite Room and FTS4.
• GitHub Gists Sync: Connect your GitHub Personal Access Token to browse multi-file Gists, view revisions, and import or export snippets.
• AI Assistant (BYOK): Optional code assistant for explaining syntax or generating snippets using your own API key (Cloudflare Workers AI or OpenRouter).
• System Share Target: Send code to Snippet from any browser or app via the Android share sheet.
PRIVACY & DATA SAFETY
• No ads, no analytics, no telemetry.
• All snippets and credentials remain strictly on your device.
• Built with modern Android architecture: Slack Circuit (UDF), Metro DI, Material 3 Expressive, and Baseline Profiles.
Code notebook & demo for the compose-highlight Jetpack Compose library.