# liferay/senna.js

:seedling: A blazing-fast Single Page Application engine

Repository: https://github.com/liferay/senna.js
Canonical: https://ross.abutalabs.com/products/sennajs
Homepage: http://sennajs.com
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: senna, spa, single-page-app
Archived: true
Last push: 2021-04-20T17:56:31+00:00

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

## Adoption (not part of the score)
Stars 1715, forks 167 (observed 2026-08-28T04:05:26.231257+00:00)

## What it is
Senna.js is a lightweight (~15 KB, dependency-free) single page application engine that converts multi-page websites into SPAs using the HTML5 History API. It provides low-level APIs for routing, screens, caching, and page transitions, and is maintained primarily to serve Liferay DXP.

## Use cases
- turn a static multi-page site into a single page app
- add client-side navigation without full page reloads
- use HTML5 pushState instead of hashbang routing
- cache page content in memory for instant back/forward navigation
- add CSS transitions between page states
- keep URLs bookmarkable and SEO-crawlable in an SPA

## When to choose
- you want a tiny, dependency-free SPA engine for an existing server-rendered site
- you need history-based navigation with cacheable screens and minimal JavaScript
- you are working within the Liferay DXP ecosystem

## When to avoid
- you need a full-featured SPA framework with components, state management, and ecosystem
- you want an actively developed standalone project with community support
- you are starting a new project where modern frameworks like React, Vue, or Svelte are options

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, http-client, state-management, animation
- domain: web-development, frontend
- platform: browser
- tags: spa, single-page-app, history-api, pushstate, no-dependency, liferay, javascript

## Member repositories
- liferay/senna.js (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.231257+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:34:18.451089+00:00, confidence not recorded.
  - readme: https://github.com/liferay/senna.js (fetched 2026-08-28T04:05:26.231257+00:00, sha 53cb9ed2f228)
  - homepage: http://sennajs.com (fetched 2026-08-29T11:10:53.050599+00:00, sha 44297fe77a6e)
  - site_page: https://sennajs.com/docs (fetched 2026-08-29T11:10:53.059635+00:00, sha cce4d41510a7)
  - site_page: https://sennajs.com/about (fetched 2026-08-29T11:10:53.062412+00:00, sha f41ea94f8721)
- Data as of 2026-08-30T08:39:29.467469+00:00.
