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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@vived/host

v4.9.2

Published

Public Host package for the VIVED Learning App system

Readme

@vived/host

A comprehensive TypeScript package providing core components for hosting VIVED Learning applications.

Overview

The @vived/host package delivers common AppObject components for VIVED Host applications. It functions as the foundation for applications that host VIVED Apps through our plugin architecture, providing infrastructure for app lifecycle management, asset handling, UI components, state management, and more.

Installation

npm install @vived/host

This package has a peer dependency on @vived/core which must also be installed:

npm install @vived/core

Key Features

  • App Lifecycle Management: Load, start, stop, and update VIVED applications
  • Asset Management: Create, edit, archive, and manage digital assets
  • Sandbox Environment: Development environment with inspection tools
  • Dialog System: UI components for alerts, confirmations, and user input
  • State Machine: Manage application state transitions and persistence
  • Event Handling: Dispatch and handle events between host and apps
  • Theme Support: Light/dark theme management with consistent color schemes
  • ZSpace Integration: Support for zSpace 3D hardware environments
  • Logging: Error reporting and log management tools

Architecture

This package follows the AppObject Architecture pattern with components organized by feature:

  • Entities: Core business objects and data models
  • Use Cases (UCs): Business logic for operations and workflows
  • Presentation Managers (PMs): Bridge domain logic with UI components
  • Controllers: Handle user inputs and direct operations
  • Adapters: Interface between components and external systems

Modules

The package includes the following key modules:

  • Apps: App mounting, versioning, and lifecycle management
  • AppSandbox: Dev tools, inspector integration, and isolated execution
  • Assets: Asset creation, editing, archiving, and management
  • Dialog: Alert, confirmation, spinner, and editor components
  • StateMachine: State transitions, editing, and navigation capabilities
  • Dispatcher: Event dispatching between host and apps
  • VivedAPI: Backend service communication and authentication
  • ZSpaceHost: 3D hardware integration support

Usage Example

import { 
  setupAppSandbox, 
  setupAssetsForSandbox,
  setupStateMachineForSandbox 
} from '@vived/host';
import { AppObjectRepo } from '@vived/core';

// Create app objects repository
const appObjects = new AppObjectRepo();

// Set up sandbox environment
setupAppSandbox(appObjects);
setupAssetsForSandbox(appObjects);
setupStateMachineForSandbox(appObjects);

// Configure and use components...

Development

# Install dependencies
npm install

# Run tests (watch mode)
npm test

# Run tests (single run)
npm run testOnce

# Build package (ESM and CJS)
npm run build

# Lint code
npm run lint

# Format code
npm run format

License

ISC

Further Documentation

For more information about the AppObject Architecture and component patterns, please see the internal documentation.