{"id":33918506,"url":"https://github.com/bearcove/arborium","last_synced_at":"2026-01-13T21:59:30.408Z","repository":{"id":327632399,"uuid":"1107066502","full_name":"bearcove/arborium","owner":"bearcove","description":"An opinionated tree-sitter + tree-sitter-highlight + grammars bundle","archived":false,"fork":false,"pushed_at":"2026-01-10T09:26:27.000Z","size":22157,"stargazers_count":321,"open_issues_count":11,"forks_count":13,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T02:54:30.754Z","etag":null,"topics":["highlighting","rust","syntax","tree-sitter"],"latest_commit_sha":null,"homepage":"https://arborium.bearcove.eu/","language":"JavaScript","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/bearcove.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["fasterthanlime"],"patreon":"fasterthanlime"}},"created_at":"2025-11-30T14:14:01.000Z","updated_at":"2026-01-10T14:40:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bearcove/arborium","commit_stats":null,"previous_names":["bearcove/arborium"],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/bearcove/arborium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Farborium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Farborium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Farborium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Farborium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearcove","download_url":"https://codeload.github.com/bearcove/arborium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearcove%2Farborium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["highlighting","rust","syntax","tree-sitter"],"created_at":"2025-12-12T08:24:18.711Z","updated_at":"2026-01-13T21:59:30.404Z","avatar_url":"https://github.com/bearcove.png","language":"JavaScript","funding_links":["https://github.com/sponsors/fasterthanlime","https://patreon.com/fasterthanlime"],"categories":[],"sub_categories":[],"readme":"# arborium\n\nBatteries-included [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar collection with HTML rendering and WASM support.\n\n[![Crates.io](https://img.shields.io/crates/v/arborium.svg)](https://crates.io/crates/arborium)\n[![Documentation](https://docs.rs/arborium/badge.svg)](https://docs.rs/arborium)\n[![License](https://img.shields.io/crates/l/arborium.svg)](LICENSE-MIT)\n\n## Quick Start\n\n### As a Rust library\n\n```bash\ncargo add arborium\n```\n\nBy default, all permissively-licensed grammars are included (~70 languages). To select specific languages:\n\n```bash\ncargo add arborium --no-default-features --features lang-rust,lang-javascript\n```\n\n### As a CLI tool\n\n```bash\ncargo install arborium-cli\narborium file.rs  # Syntax highlight in your terminal\n```\n\n### In the browser\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@arborium/arborium@2/dist/arborium.iife.js\"\u003e\u003c/script\u003e\n\u003c!-- Auto-highlights all code blocks! --\u003e\n```\n\n## Features\n\n- **~70 language grammars** included out of the box\n- **Permissively licensed** (MIT/Apache-2.0/CC0/Unlicense) grammars enabled by default\n- **WASM support** with custom allocator fix\n- **HTML rendering** with 32 built-in themes\n- **Browser usage** via drop-in script tag or ESM module\n- **CLI tool** (`arborium-cli`) - syntax highlighting for terminal and HTML\n- **Feature flags** for fine-grained control over included languages\n\n## Documentation\n\nFor complete documentation including:\n- Full language support list\n- Browser usage guide (drop-in script, ESM modules, compile to WASM)\n- All 32 built-in themes\n- HTML tag reference\n- WASM build instructions\n- Feature flags reference\n\nSee the **[arborium crate on crates.io](https://crates.io/crates/arborium)** or **[docs.rs](https://docs.rs/arborium)**.\n\n## Repository Structure\n\n- **[`crates/arborium/`](crates/arborium/)** - Main umbrella crate (start here!)\n- **[`crates/arborium-cli/`](crates/arborium-cli/)** - Terminal syntax highlighter CLI\n- **[`crates/arborium-*/`](crates/)** - Individual language grammar crates (~100 crates)\n- **[`packages/arborium/`](packages/arborium/)** - NPM package for browser use\n- **[`xtask/`](xtask/)** - Build automation and code generation\n\n## Sponsors\n\nThanks to all individual sponsors:\n\n\u003cp\u003e\n\u003ca href=\"https://github.com/sponsors/fasterthanlime\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/github-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/github-light.svg\" height=\"40\" alt=\"GitHub Sponsors\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003ca href=\"https://patreon.com/fasterthanlime\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/patreon-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/patreon-light.svg\" height=\"40\" alt=\"Patreon\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n...along with corporate sponsors:\n\n\u003cp\u003e\n\u003ca href=\"https://zed.dev\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/zed-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/zed-light.svg\" height=\"40\" alt=\"Zed\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003ca href=\"https://depot.dev?utm_source=arborium\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./static/sponsors-v3/depot-dark.svg\"\u003e\n\u003cimg src=\"./static/sponsors-v3/depot-light.svg\" height=\"40\" alt=\"Depot\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\nThis project is dual-licensed under [MIT](LICENSE-MIT) OR [Apache-2.0](LICENSE-APACHE).\n\nThe bundled grammar sources retain their original licenses - see [LICENSES.md](LICENSES.md) for details.\n\n## Development\n\nThis project uses `cargo xtask` for most development and release tasks.\n\nFor detailed architecture, workflows, publishing order, and layout, see `DEVELOP.md`.\n\nFor a quick overview of available commands, run:\n\n```bash\ncargo xtask help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearcove%2Farborium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearcove%2Farborium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearcove%2Farborium/lists"}