Language metadata that can answer back.

Detect filenames, inspect versions, switch locale, and verify the package health from the same static site generated by the library.

0 languages
0 extensions and filenames
0 locales

Live execution

Type a filename or pick a language slug.

Languages

Search the generated catalog by name, slug, extension, runtime, ecosystem, or package manager.

Runtimes

Runtime platforms and ecosystems supported across the catalog. Click a card to filter the language list.

Package Managers

Package managers referenced in language tooling metadata. Click a card to filter the language list.

Paradigms

Programming paradigms across the catalog. Click a card to filter the language list.

Ecosystems

Technology ecosystems referenced in language tooling metadata. Click a card to filter the language list.

Quality

These snapshots are produced by the website preparation script, so the page reflects the same test and benchmark commands used locally.

Unit tests

loading

Benchmarks

loading

API

Use the full catalog synchronously or load language modules on demand.

Detect and localize

import { api } from "code-languages";

const language = api
  .detect("src/App.vue")
  .locale("es-PE")
  .get();

Dynamic language import

import { api } from "code-languages";

const astro = await api
  .language("astro")
  .locale("en-US")
  .load();

Runtime platform query

import { api } from "code-languages";

const info = api.runtime("node").info();
// { name: "Node.js", slug: "node", ... }

const langs = api.runtime("jvm")
  .langs()
  .locale("es")
  .get();

Package manager query

import { api } from "code-languages";

const info = api.packageManager("cargo").info();
const langs = api.packageManager("npm").langs().get();

// Runtimes that include this package manager
const runtimes = api.packageManager("pip").runtimes();