Search documentation

↑↓ to move↵ to open

kirari


Customize

Languages

Explore every opt-in language and format.

From components to configuration files. Import the definitions you need; the others stay out of your bundle.

Import from /core to ship only Python. The main entry always bundles JavaScript as its default.

Example
import { tokenize, render } from 'kirari/core'
import { python } from 'kirari/languages'

const html = render(tokenize('print("Hello, world!")', python))
48 languages
LanguageExport
Cc
C#csharp
C++cpp
Clojureclojure
CSScss
Dartdart
Diffdiff
Dockerfiledockerfile
Dotenvdotenv
Elixirelixir
GLSLglsl
Gogo
GraphQLgraphql
Groovygroovy
HCLhcl
HTMLhtml
INIini
Javajava
JavaScriptjavascript
JSONjson
JSONCjsonc
JSXjsx
Juliajulia
Kotlinkotlin
Lualua
Makefilemakefile
Markdownmarkdown
Nginxnginx
PHPphp
Plain textplaintext
PowerShellpowershell
Protocol Buffersprotobuf
Pythonpython
Rr
Rubyruby
Rustrust
Scalascala
Shellshell
SQLsql
Sveltesvelte
Swiftswift
TOMLtoml
TSXtsx
TypeScripttypescript
Vuevue
XMLxml
YAMLyaml
Zigzig

Every definition is a named export of kirari/languages; bundlers keep only the ones you import. Without a bundler, import one file instead, such as kirari/languages/python.

JSX and TSX are separate definitions. Use hcl for Terraform and shell for common shell syntax. These are lexical grammars, not compiler parsers.