{"id":50833895,"url":"https://github.com/divvun/keyboard-viewer","last_synced_at":"2026-06-14T02:03:20.097Z","repository":{"id":327270599,"uuid":"1095120612","full_name":"divvun/keyboard-viewer","owner":"divvun","description":"Web app to view, edit and test keyboard definitions stored in GitHub.com/giellalt/keyboard-* repos.","archived":false,"fork":false,"pushed_at":"2026-05-11T14:20:39.000Z","size":180,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T15:04:39.987Z","etag":null,"topics":["indigenous-languages","keyboard","keyboard-layout","keyboard-view","language-technology","minority-languages"],"latest_commit_sha":null,"homepage":"https://keyboard.giellalt.org/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divvun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-12T16:08:07.000Z","updated_at":"2026-05-11T14:26:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/divvun/keyboard-viewer","commit_stats":null,"previous_names":["dylanhand/keyboard-viewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/divvun/keyboard-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divvun%2Fkeyboard-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divvun%2Fkeyboard-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divvun%2Fkeyboard-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divvun%2Fkeyboard-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divvun","download_url":"https://codeload.github.com/divvun/keyboard-viewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divvun%2Fkeyboard-viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34306774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["indigenous-languages","keyboard","keyboard-layout","keyboard-view","language-technology","minority-languages"],"created_at":"2026-06-14T02:03:19.097Z","updated_at":"2026-06-14T02:03:20.092Z","avatar_url":"https://github.com/divvun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Divvun Keyboard Viewer\n\nAn interactive web application for visualizing and testing Divvun keyboard\nlayouts across multiple platforms. Built with Fresh (Deno), Preact, and Vite.\n\n## Features\n\n- **Interactive Keyboard Display**: Click keys or use your physical keyboard to\n  test layouts\n- **Multi-Platform Support**: View keyboards for macOS, iOS, Android, Windows,\n  and Chrome OS\n- **Device Variants**: Support for different mobile device types (phones,\n  tablets)\n- **GitHub Integration**: Load keyboard layouts directly from GitHub\n  repositories\n- **YAML Editor**: Paste and test kbdgen YAML layout definitions\n- **Layer Visualization**: See different keyboard layers (default, shift, alt,\n  symbols, etc.)\n- **Dead Key Support**: Full support for dead key combinations\n- **Embeddable**: Generate iframe code to embed keyboards in other sites\n- **Responsive Design**: Works on desktop and mobile devices\n- **URL Sharing**: Share specific keyboard configurations via URL parameters\n\n## Prerequisites\n\nMake sure to install Deno:\n\u003chttps://docs.deno.com/runtime/getting_started/installation\u003e\n\n## Development\n\nStart the project in development mode:\n\n```bash\ndeno task dev\n```\n\nThis will start the Vite development server and watch for changes.\n\n## Available Commands\n\n- `deno task dev` - Start development server\n- `deno task build` - Build for production\n- `deno task start` - Start production server\n- `deno task prod` - Serve production build\n- `deno task check` - Run linting and type checking\n- `deno task ci` - Clean install dependencies\n- `deno task update` - Update Fresh framework\n\n## Usage\n\n### Main Viewer\n\nNavigate to the root URL to access the main keyboard viewer interface. The\nviewer includes:\n\n1. **Output Area**: Displays text as you type on the virtual or physical\n   keyboard\n2. **Virtual Keyboard**: Interactive visual representation of the keyboard\n   layout\n3. **Layer Information**: Shows the currently active keyboard layer\n4. **Load from GitHub**: Select from available Divvun keyboard repositories\n5. **YAML Editor**: Paste and test custom kbdgen YAML layouts\n\n### Loading Keyboards from GitHub\n\n1. Select a repository from the dropdown (e.g., keyboard-sme, keyboard-fin)\n2. Choose a layout file\n3. Select the target platform (macOS, iOS, Android, etc.)\n4. For mobile platforms, optionally select device variant (phone/tablet)\n\n### Using the YAML Editor\n\n1. Switch to the \"YAML Editor\" tab\n2. Paste a kbdgen YAML layout definition\n3. Select the platform to preview\n4. The keyboard shows a live preview, making it easy to edit a keyboard\n   definition and see the result in real time.\n\n### Embedding Keyboards\n\nClick the \"Get Embed Code\" button to copy an iframe snippet that can be embedded\nin other websites. The embed URL supports these parameters:\n\n- `kbd`: Repository/keyboard identifier\n- `layout`: Layout name (without .yaml extension)\n- `platform`: Target platform (macOS, iOS, android, windows, chromeOS)\n- `variant`: Device variant (primary, phone, tablet)\n- `interactive`: Enable/disable interaction (default: true)\n\nExample embed URL:\n\n```\n/embed?kbd=sme\u0026layout=se\u0026platform=macOS\u0026variant=primary\n```\n\n### URL Parameters\n\nYou can share specific keyboard configurations by including URL parameters:\n\n```\n/?kbd=sme\u0026layout=se\u0026platform=macOS\u0026variant=primary\n```\n\n## Technology Stack\n\n- **Framework**: Fresh 2.x (Deno web framework)\n- **Runtime**: Deno\n- **UI Library**: Preact\n- **State Management**: @preact/signals\n- **Build Tool**: Vite 7.x\n- **Styling**: Tailwind-style CSS (not actually Tailwind)\n- **Data Format**: kbdgen YAML layouts\n\n## Key Components\n\n### KeyboardViewer\n\nThe main interactive keyboard viewer with GitHub loader and YAML editor.\n\n### KeyboardEmbed\n\nLightweight embeddable keyboard component for use in iframes.\n\n### KeyboardDisplay\n\nRenders the visual keyboard layout with key state management.\n\n### useKeyboard\n\nCustom hook that manages keyboard state, layer switching, and key combinations.\n\n### useKeyboardScaling\n\nCustom hook that handles responsive scaling of the keyboard display.\n\n## Supported Platforms\n\n- **macOS**: Desktop keyboard layouts\n- **iOS**: iPhone and iPad virtual keyboards\n- **Android**: Mobile virtual keyboards\n- **Windows**: Desktop keyboard layouts\n- **Chrome OS**: Chromebook keyboard layouts\n\n## kbdgen Format\n\nThis viewer supports keyboard layouts defined in the kbdgen YAML format used by\nDivvun. Each layout can define multiple modes (layers) and supports:\n\n- Dead keys and combining characters\n- Multiple keyboard layers (default, shift, alt, caps, symbols)\n- Platform-specific layouts\n- Device-specific variants\n- Transform rules for complex input\n\n## License\n\nThis project is licensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n  \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or\n  \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivvun%2Fkeyboard-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivvun%2Fkeyboard-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivvun%2Fkeyboard-viewer/lists"}