@immersive-scroll/core
v0.1.3
Published
Framework-agnostic immersive scroll engine.
Readme
@immersive-scroll/core
Framework-agnostic immersive engine primitives. Use this package when you need the scene lifecycle, frame manifest handling, progress math, and plugin hooks without committing to a specific UI framework.
Install
pnpm add @immersive-scroll/coreWhat it exports
createImmersiveEngine(): create the headless engine instance.normalizeImmersiveConfig()andmergeImmersiveConfig(): resolve partial config safely.createFrameStore()andcreateScrollStore(): low-level state stores.validateFrameManifest()andvalidateFrameDirectoryContract(): manifest and asset integrity helpers.- Shared types and utilities re-exported from
@immersive-scroll/shared.
Minimal example
import { createImmersiveEngine } from '@immersive-scroll/core';
const engine = createImmersiveEngine({
config: {
framesPath: '/immersive/story',
scrollbar: { enabled: true }
},
container: document.querySelector('#scene'),
targets: {
canvas: document.querySelector('canvas')
}
});
await engine.init();
await engine.updateProgress(0.35);Use this package when
- you are building a custom adapter or wrapper,
- you need plugin or renderer control outside the packaged UI layers,
- or you want runtime logic on the server or in tooling without React, Solid, or custom elements.
