# googlearchive/caja

Caja is a tool for safely embedding third party HTML, CSS and JavaScript in your website.

Repository: https://github.com/googlearchive/caja
Canonical: https://ross.abutalabs.com/products/caja
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2020-12-02T14:49:58+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4158, "days_push": 2100, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1132, forks 113 (observed 2026-08-28T04:03:42.822916+00:00)

## What it is
Caja is a Java-based tool for safely embedding third-party HTML, CSS, and JavaScript in a website using an object-capability security model. It compiles untrusted code so it can interact richly with the host page without stealing cookies, phishing, or sniffing user data.

## Use cases
- safely embed third-party HTML, CSS and JavaScript in my website
- run untrusted JavaScript in a sandbox on my page
- build secure mashups with multiple third-party apps on one page
- prevent embedded widgets from stealing cookies or redirecting to phishing sites
- let a REST service supply JavaScript that is safe to embed
- use new JavaScript features on older browsers

## When to choose
- you maintain a legacy system already built on Caja
- you need object-capability sandboxing of third-party code on very old browsers

## When to avoid
- starting a new project - the project was archived in 2021 and has known unpatched security vulnerabilities
- you need actively maintained HTML/CSS sanitization - use Closure library or DOMPurify instead
- you need modern web security mitigations like CSP and Trusted Types

## Facets
- artifact type: library
- maturity: abandoned
- function: security, templating, serialization
- domain: security, web-development, frontend
- platform: jvm
- tags: sandboxing, html-sanitizer, css-sanitizer, object-capability, xss-prevention, third-party-embedding, deprecated, google-archive, web-server

## Member repositories
- googlearchive/caja (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:42.822916+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-30T06:37:57.313999+00:00, confidence not recorded.
  - readme: https://github.com/googlearchive/caja (fetched 2026-08-28T04:03:42.822916+00:00, sha 221ef4a104f9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
