Apache License 2.0

项目介绍

bearcove/arborium 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 Apache License 2.0 许可证,目前获得 510 个 Star、43 次 Fork。

仓库全名
bearcove/arborium
开源许可证
Apache License 2.0
Star 数
510
Fork 数
43
未关闭 Issue
45

README 摘要

arborium Batteries-included tree-sitter grammar collection with HTML rendering and WASM support. Quick Start As a Rust library By default, all permissively-licensed grammars are included (70 languages). To select specific languages: As a CLI tool In the browser Features 70 language grammars included out of the box Permissively licensed (MIT/Apache-2.0/CC0/Unlicense) grammars enabled by default WASM support with…

完整内容见 GitHub 原始 README 或本页 。

常见问题

arborium 用什么语言开发?

主要使用 JavaScript 编写,采用 Apache License 2.0 许可证,目前有 510 个 Star。

arborium 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 arborium 的源码?

可以直接克隆仓库:git clone https://github.com/bearcove/arborium.git,默认分支为 main;安装与运行步骤见仓库 README。

arborium 最近还在维护吗?

仓库最近一次更新为 8月28日,当前有 45 个未关闭 Issue;Star 数为 510,可作为社区活跃度的参考。

关于

An opinionated tree-sitter + tree-sitter-highlight + grammars bundle

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
599
价值分
316
活跃状态
活跃

语言占比

Ada
Agda
Assembly
Awk
Batchfile
C
C#
C++
CMake
COBOL
CSS
Cap'n Proto
Clojure
Common Lisp
D
Dart
Dockerfile
Elixir
Elm
Emacs Lisp
Erlang
F#
GLSL
Gleam
Go
Groovy
HCL
HLSL
HTML
Haskell
Idris
Java
JavaScript
Jinja
Julia
Just
Kotlin
Lean
Lua
MATLAB
Makefile
Meson
Nix
OCaml
Objective-C
Objective-C++
Odin
Open Policy Agent
PHP
Perl
PowerShell
Prolog
Python
R
Racket
ReScript
Ruby
Rust
SCSS
Scala
Scheme
Shell
Solidity
Starlark
Svelte
Swift
SystemVerilog
TLA
Thrift
Tree-sitter Query
TypeScript
Typst
VHDL
Verilog
Vim Script
Visual Basic .NET
Vue
Wolfram Language
Zig
jq

README

arborium

Batteries-included tree-sitter grammar collection with HTML rendering and WASM support.

Crates.io Documentation License

Quick Start

As a Rust library

cargo add arborium

By default, all permissively-licensed grammars are included (~70 languages). To select specific languages:

cargo add arborium --no-default-features --features lang-rust,lang-javascript

As a CLI tool

cargo install arborium-cli
arborium file.rs  # Syntax highlight in your terminal

In the browser

<script src="https://cdn.jsdelivr.net/npm/@arborium/arborium@2/dist/arborium.iife.js"></script>
<!-- Auto-highlights all code blocks! -->

Features

  • ~70 language grammars included out of the box
  • Permissively licensed (MIT/Apache-2.0/CC0/Unlicense) grammars enabled by default
  • WASM support with custom allocator fix
  • HTML rendering with 32 built-in themes
  • Browser usage via drop-in script tag or ESM module
  • CLI tool (arborium-cli) - syntax highlighting for terminal and HTML
  • Feature flags for fine-grained control over included languages

Documentation

For complete documentation including:

  • Full language support list
  • Browser usage guide (drop-in script, ESM modules, compile to WASM)
  • All 32 built-in themes
  • HTML tag reference
  • WASM build instructions
  • Feature flags reference

See the arborium crate on crates.io or docs.rs.

Repository Structure

Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

…along with corporate sponsors:

Zed Depot

Co-developed with LLMs

This project was co-developed with LLMs such as Claude, Codex, etc. Human maintainers are responsible for their contributions regardless of machine help.

License

This project is dual-licensed under MIT OR Apache-2.0.

The bundled grammar sources retain their original licenses - see LICENSES.md for details.

Development

This project uses cargo xtask for most development and release tasks.

For detailed architecture, workflows, publishing order, and layout, see DEVELOP.md.

For a quick overview of available commands, run:

cargo xtask help

评论

暂无评论