# antonmedv/codejar

An embeddable code editor for the browser 🍯

Repository: https://github.com/antonmedv/codejar
Canonical: https://ross.abutalabs.com/products/codejar
Homepage: https://medv.io/codejar/
Language: TypeScript
License: MIT
License Family: permissive
Topics: code-editor
Last push: 2025-10-14T09:24:07+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 47, release rhythm 20, longevity 100
- inputs: {"age_days": 2346, "days_push": 323, "days_rel": 323, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1974, forks 123 (observed 2026-08-28T04:06:01.182975+00:00)

## What it is
CodeJar is a lightweight (~2.5 kB), dependency-free embeddable code editor for the browser built on contenteditable. It handles indentation, auto-closing brackets and quotes, Tab key handling, and undo/redo, while letting you plug in any highlighting library like Prism.js or highlight.js.

## Use cases
- embed a code editor in a web page
- add a lightweight code input box to a web app
- build an online code playground
- let users edit code snippets in the browser
- create a custom code editor with my own syntax highlighter
- replace CodeMirror with a tiny editor

## When to choose
- you need a tiny, dependency-free code editor in the browser
- you want full control over syntax highlighting via your own highlight function
- you need basic editing features like auto-indent, bracket closing, and undo/redo without a heavyweight editor

## When to avoid
- you need advanced IDE features like code folding, linting, or multi-cursor editing
- you need a full-featured editor with built-in language grammars and autocomplete
- you are building a non-browser (desktop or mobile-native) editor

## Facets
- artifact type: library
- maturity: active
- function: editor, ui-components
- domain: web-development, frontend, text-editors, developer-tools
- platform: browser
- tags: code-editor, embeddable, lightweight, syntax-highlighting, contenteditable, typescript, no-dependencies, web-server, javascript

## Member repositories
- antonmedv/codejar (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.182975+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:04:55.391263+00:00, confidence not recorded.
  - readme: https://github.com/antonmedv/codejar (fetched 2026-08-28T04:06:01.182975+00:00, sha 6ad1cf61d6ce)
  - homepage: https://medv.io/codejar/ (fetched 2026-08-29T10:44:30.851663+00:00, sha 1d5d06a17c07)
  - registry_npm: https://registry.npmjs.org/codejar (fetched 2026-08-29T10:44:30.860652+00:00, sha a9ec5545a7a1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
