Open source · Developers

Developer-led tools, opened from production

Encapsa open-sources the tools behind its platform through encapsa-ai and opensite-ai. Every library was taken out of production use, not built as a demo.

Explore opensite-ai

Explore encapsa-ai

npm crates.io RubyGems GitHub Releases ~/encapsa — zsh package.json

How we build

Production constraints shape the libraries

The repository set reflects the contracts Encapsa and OpenSite AI rely on while building and operating their own systems.

prod-first

Extracted from production, not demos

Every library was taken out of production use. The opensite-ai set was chosen from 50+ internal platform applications and modules based on how much each library helped in real use.

perf-contract

Performance budgets as contracts

The @opensite/ui targets are explicit: LCP ≤ 2.5s, INP ≤ 200ms, and CLS ≤ 0.1.

typed-core

Tree-shakable and typed by default

The foundational @opensite/ui library is tree-shakable and runs in TypeScript strict mode.

local-first

Local-first and privacy-respecting

dep-sync makes no network calls and includes no telemetry. Brain has no built-in fetching, telemetry, storage, API keys, or AI calls.

polyglot

Polyglot where it matters

The public toolchain spans TypeScript, Rust, Ruby, and Python.

permissive

Permissive licenses

The stated licenses are BSD-3-Clause, MIT, and Apache-2.0.

agent-ready

Agent-ready tooling

opensite-skills provides one source of truth for agent skills, while dep-sync exports a Markdown context file for AI coding agents.

README.md

Ecosystem architecture

A layered runtime for semantic sites

Semantic components sit above a registry-driven runtime, focused application primitives, and shared React foundations.

Layer 1 · Semantic UI

@opensite/ui ui-library

Layer 2 · Runtime

@page-speed/blocks @page-speed/skins

Layer 3 · Primitives

@page-speed/img @page-speed/video @page-speed/pressable @page-speed/router @page-speed/icon @page-speed/forms

Attached nodes

@page-speed/media-immersive

@page-speed/markdown-to-jsx

@page-speed/social-share

icons.opensite.ai

Layer 4 · Foundations

@page-speed/hooks @opensite/hooks

Dependency map for the verified package relationships listed below.

Verified edges

  • @page-speed/blocks connects to @opensite/ui, @page-speed/img, @page-speed/video, @page-speed/pressable, and @page-speed/router.
  • @page-speed/img uses useOptimizedImage from @page-speed/hooks.
  • @page-speed/media-immersive is built on @page-speed/img and @page-speed/video.
  • @page-speed/markdown-to-jsx is preconfigured for @page-speed/img and @page-speed/pressable.
  • @page-speed/social-share connects to @opensite/hooks.
  • @page-speed/icon fetches icons from icons.opensite.ai.

Semantic UI engine

326 blocks, one semantic rendering path

@opensite/ui defines the component surface. ui-library documents it, while page-speed-blocks and page-speed-skins render and skin semantic block data.

ui.opensite.dev/categories registry hero 78 contact 40 features 26 about 23 testimonials 23 footer 19 navbar 19 faq 17 gallery 17 blog 14 carousel 13 stats 12 process 9 article 7 link-page 5 advanced 3 integrations 1 Total 326 blocks App.tsx

opensite-ui

@opensite/ui

The foundational component library for the OpenSite Semantic Site Builder. It is tree-shakable, TypeScript strict, shadcn/ui compatible, and built for Tailwind CSS v4.

npm install @opensite/ui

GitHub

npm

ui-library

The official showcase, documentation, and API for the Semantic UI engine at ui.opensite.dev.

GitHub

ui.opensite.dev

page-speed-blocks

@page-speed/blocks

The rendering runtime for @opensite/ui, with pre-compiled Tailwind CSS, registry-based rendering, RouterProvider integration, and dynamic data feeds.

pnpm add @page-speed/blocks

GitHub

npm

page-speed-skins

@page-speed/skins

A JSON-first skin system delivered through jsDelivr. It uses Tailwind classes and CSS variables with no runtime JavaScript overhead.

GitHub

npm

Rendering and media

Media primitives with explicit fallbacks

Composable packages cover responsive images, adaptive video, immersive feeds, lightboxes, PDFs, maps, and area-proportional diagrams.

page-speed-img

@page-speed/img

A React image component that computes pixel-perfect src values and DPR-aware sizes through useOptimizedImage. It is a drop-in alternative to next/image outside Next.js.

pnpm add @page-speed/img

GitHub

npm

page-speed-video

@page-speed/video

HLS adaptive streaming with hls.js, native HLS on Safari and iOS starting on the highest rendition, progressive MP4 fallback, and optimized posters.

GitHub

npm

page-speed-media-immersive

@page-speed/media-immersive

A vertical video feed using a portal, CSS isolation, a pointer-driven spring pager, HLS with MP4 fallback, and an iOS-safe body scroll lock.

GitHub

npm

page-speed-lightbox

@page-speed/lightbox

A responsive, keyboard-friendly lightbox for images, videos, PDFs, and custom React components, with lazy loading for heavy dependencies.

GitHub

npm

page-speed-pdf-viewer

@page-speed/pdf-viewer

A linearized PDF viewer with sub-1-second page rendering, progressive loading, full-text search, zoom, download, and print.

GitHub

npm

page-speed-maps

@page-speed/maps

MapLibre primitives for React.

pnpm add @page-speed/maps maplibre-gl react-map-gl

GitHub

npm

page-speed-venn-diagram

@page-speed/venn-diagram

Area-proportional Venn and Euler diagrams with hover and click events plus keyboard navigation.

GitHub

npm

Interaction and application

Small primitives for routing, forms, and content

These packages handle navigation, normalized actions, reactive forms, performance signals, browser state, icons, sharing, and safe markdown rendering.

page-speed-router

@page-speed/router

SSR-compatible native browser routing with zero dependencies and under 3KB minified and gzipped.

GitHub

npm

pressable

@page-speed/pressable

A universal link and button component that normalizes internal, external, mailto, and tel links. Internal links remain anchors for SEO.

<Pressable href="/about">About Us</Pressable>

GitHub

npm

page-speed-forms

@page-speed/forms

Type-safe forms with field-level reactivity, a declarative FormEngine, built-in inputs, sync and async validation, a Valibot adapter, and file uploads.

GitHub

npm

page-speed-hooks

@page-speed/hooks

Core Web Vitals and performance hooks implementing web.dev guidance, at about 2–3 KB per hook.

const vitals = useWebVitals({ reportAllChanges: true })

GitHub

npm

opensite-hooks

@opensite/hooks

Zero-dependency, SSR-safe React hooks for state, storage, media queries, timing, resize observation, and previous values.

GitHub

npm

page-speed-icon

@page-speed/icon

A dynamic icon loader that fetches from icons.opensite.ai and accepts prefix/name and prefix:name formats.

icons.opensite.ai

GitHub

npm

page-speed-social-share

@page-speed/social-share

Inline share buttons and a scroll-aware sticky sidebar, with native Web Share API support on capable devices.

GitHub

npm

markdown-to-jsx

@page-speed/markdown-to-jsx

A tree-shakable, SSR-compatible markdown renderer at about 8KB gzipped, with XSS protection, URL sanitization, and overrides for image and Pressable primitives.

GitHub

npm

encapsa-ai

Developer tools from Encapsa workflows

Desktop dependency tooling, shared graph visualization, and evidence-based AI skill analysis are maintained in the encapsa-ai organization.

dep-sync

Update order (Kahn's algorithm)

  1. @yourco/hooks
  2. @yourco/forms
  3. @yourco/ui
  4. app

- "^0.2.1" + "^0.2.2"

No network. No telemetry.

dep-sync

dep-sync scans local dependencies, devDependencies, and peerDependencies, then filters to configured internal packages. Rust's semver::VersionReq detects drift; cycle detection and Kahn's algorithm produce a stable dependency-first order. It previews exact package.json edits while preserving key order, indentation, trailing newlines, and range style, with no commits, publishes, telemetry, or network calls.

macOS .dmg Linux .AppImage .deb Windows .exe MIT

Download a release

GitHub

brain

Brain is a React and TypeScript visualization library for knowledge graphs, AI context, documentation networks, and application dashboards. Its 3D, 2D, and keyboard-accessible list views share one selection and inspection model, with WebGL opt-in. It has no built-in fetching, telemetry, storage, API keys, or AI calls, and requires neither Next.js nor Tailwind.

npm install @encapsa-dev/brain

Open the demo

GitHub

npm

knowledge graph 3D · 2D · List

Selected node

documentation

Relationships

  • context
  • source
  • dashboard

skill.zip — analysis

✓ Prompt injection evidence attached ✓ Credential exposure evidence attached ✓ Risky scripts evidence attached ✓ Hidden threats evidence attached

skill-guard

Skill Guard inspects AI skill ZIP files for prompt injection, credential exposure, risky scripts, and hidden threats. It produces evidence-based security reports.

Analyze a skill

GitHub

Agents and polyglot utilities

Agent skills, Rust cleanup, and Ruby parsing

The repository set extends beyond React with shared agent skills, a Rust markdown cleanup CLI, and a Ruby URL parser.

opensite-skills

A single source of truth for 50+ AI coding-agent skills following the Agent Skills open standard, with a persistent memory system.

~/opensite-skills

├─ ~/.claude/skills

├─ ~/.codex/skills

├─ .cursor/skills

├─ ~/.copilot/skills

└─ ~/.agents/skills

GitHub

markdown-ai-cite-remove

A Rust CLI that removes inline citations, reference links, and bibliography sections from AI-generated markdown. The binary is mdcr.

before / after

- Rust is fast[1][2].

+ Rust is fast.

$ echo "Text[1]" | mdcr

100+ MB/s Apache-2.0

GitHub

crates.io

domain_extractor

A Ruby URL and domain parser with multi-part TLD support, URI-compatible accessors, authentication extraction, and Rails integration.

irb

~5k–6k URLs/sec · Ruby 3.4 · Apple Silicon BSD-3-Clause

GitHub

RubyGems

All repositories

Developer FAQ

Answers grounded in the published repository contracts and package metadata.

How are the two GitHub organizations divided?

encapsa-ai contains developer tooling, AI utilities, agent components, and desktop apps. opensite-ai contains the website and UI libraries used by the OpenSite Semantic Site Builder, including React hooks, Semantic UI components, and Ruby and Rust utilities.

Which licenses are used?

BSD-3-Clause covers most opensite-ai packages and Encapsa Brain. MIT applies to dep-sync and page-speed-humanizer. Apache-2.0 applies to markdown-ai-cite-remove. A license is not inferred for repositories where no exact license is stated.

How are the packages and applications installed?

Published JavaScript packages use npm-compatible registries. markdown-ai-cite-remove installs through cargo, domain_extractor through gem, and dep-sync provides prebuilt release binaries for macOS, Linux, and Windows.

Are these demo projects?

No. Every library was taken out of production use. The opensite-ai selection came from 50+ internal platform applications and modules based on how much each library helped in real use.

Are the React libraries tree-shakable and typed?

The verified core contract is specific: @opensite/ui is tree-shakable and uses TypeScript strict mode. @page-speed/forms is type-safe, and other repositories document their package-level TypeScript contracts individually.

Do dep-sync or Brain send project data?

dep-sync is local-first, makes no network calls, and includes no telemetry. Brain has no built-in fetching, telemetry, storage, API keys, or AI calls.

Clone the code and take part

Clone a repository, star the work you use, open an issue, or contribute where your experience can help.

opensite-ai on GitHub

encapsa-ai on GitHub

Browse the UI catalog

Icon library

get started

The Vertical AI Platform for Regulated Industries

Encapsa AI delivers privacy-native, purpose-built vertical AI for regulated industries. Zero-data-egress architecture, closed-circuit LLM, and on-premise deployment - one platform replacing 5-8 disconnected tools.