npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@theermite/morphic-engine

v2.0.0-beta.15

Published

Shinkofa Morphic Adaptation Engine — framework-agnostic core

Readme

@theermite/morphic-engine

npm

Framework-agnostic core of the Morphic Adaptation Engine — created and maintained by Jean-Pierre Gonçalves (The Ermite).

The engine lets a page adapt itself to each visitor's sensory, cognitive, motor and energy needs. Every setter writes its result on <html> as a data-morphic-* attribute and a --morphic-* CSS custom property, so any stylesheet can respond to it. Choices are persisted on the device under the morphic-prefs key of localStorage.

Status: 2.0.0-beta. Used in production on theermite.com and shinkofa.com. See the changelog.

Install

pnpm add @theermite/morphic-engine
# or
npm install @theermite/morphic-engine

React projects can add the ready-made panel from @theermite/morphic-adapter.

Quick start

import { morphicInit, setTheme, setFontSize, setMotion } from '@theermite/morphic-engine';

morphicInit();            // applies the visitor's saved preferences to <html>
setTheme('sepia');        // data-morphic-theme="sepia"
setFontSize('lg');        // data-morphic-font-size="lg"
setMotion('reduced');     // data-morphic-motion="reduced"

Then style the page from those attributes, or import the ready-made rules shipped by the adapter (@theermite/morphic-adapter/morphic.css).

What it covers

| Domain | Settings | Entry points (examples) | |---|---|---| | Sensory | theme, contrast, motion, density, font size, font family, colour-vision correction | setTheme, setContrast, setMotion, setDensity, setFontSize, setFontFamily, setColorVisionCorrection | | Cognitive | reading focus, reading guide, WAI pictogram symbols, command palette, decision-points cap | setReadingFocus, setReadingGuide, enableWaiSymbols, enableCommandPalette | | Motor | click delay, dwell click, tremor filter | setClickDelay, setDwellClick, setTremorFilter | | Energy | idle detection, Pomodoro and its progress strip, recovery mode | setIdleDetection, startPomodoro, enablePomodoroStrip, enterRecoveryMode | | Data | GDPR export and deletion, local CRDT persistence ready for sync, end-to-end encryption primitives | exportPreferences, deleteAllPreferences, createSyncEngine, encryptPayload |

The full typed API is in dist/index.d.ts. A zero-configuration <morphic-provider> custom element is registered when the package is imported.

Privacy

Preferences stay on the device. The engine makes no network call and has no telemetry. createSyncEngine keeps a local CRDT copy (Yjs over IndexedDB); a network relay is not wired yet. For hosts that sync preferences themselves, generateKeyPair, encryptPayload and decryptPayload encrypt end to end with NaCl crypto_box (tweetnacl); the user's key pair never leaves the device.

Bundle weight

The package declares sideEffects, so bundlers drop what a page does not use: a page that only applies display settings does not download the profile-validation code (measured 2026-10-10, see the changelog).

License

Dual licensed: AGPL-3.0-or-later OR MPL-2.0, at your option. See LICENSE.

Funding

An application to the NLnet Foundation's NGI Zero Commons Fund has been submitted for this project.