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

@juuno-sdk/app-simulator

v1.0.4

Published

Test simulator for external Juuno apps - loads and displays apps in production-like environment

Readme

Juuno App Simulator

Test your external Juuno apps in a production-like environment.

What This Does

The App Simulator loads your external app and displays it in a split-screen view:

  • Left: Player view (how your app appears on screens)
  • Right: Configuration UI (your app's settings interface)

This simulates the real Juuno platform environment using import maps, just like production.

Installation

npm install --save-dev @juuno-sdk/app-simulator

Usage

Option 1: CLI

# Point to your dev server
npx juuno-simulator --app=http://localhost:3000

# Or point to a deployed URL
npx juuno-simulator --app=https://cdn.example.com/my-app/

Option 2: npm Scripts

Add to your package.json:

{
  "scripts": {
    "dev": "vite",
    "test:player": "juuno-simulator --app=http://localhost:3000"
  }
}

Then run:

# Terminal 1: Your app dev server
npm run dev

# Terminal 2: Simulator
npm run test:player

How It Works

  1. Your App: Runs on your dev server (e.g., localhost:3000)
  2. Simulator: Loads at localhost:5004
  3. Import Maps: Simulator loads your app via ES module import
  4. Live Updates: Changes in your app reflect immediately

Requirements

Your app must:

  • Export ES modules
  • Provide player and config components
  • Build with externalized dependencies:
    // vite.config.ts
    export default {
      build: {
        lib: {
          entry: './src/index.ts',
          formats: ['es'],
          fileName: 'index',
        },
        rollupOptions: {
          external: ['vue', '@juuno-sdk/app-sdk'],
        },
      },
    };

Development Workflow

The simulator works with built app bundles to match the production architecture.

Terminal 1: Auto-rebuild your app

cd my-juuno-app
npm run build:watch
# Watches for changes and rebuilds automatically

Terminal 2: Serve your app bundle

cd my-juuno-app
npx serve dist -l 3000 --cors
# Serves the built bundle at localhost:3000

Terminal 3: Start the simulator

npx juuno-simulator --app=http://localhost:3000/index.js
# → localhost:5004

Development Flow:

  1. Edit your app's source code
  2. Auto-rebuild happens in background (100-500ms)
  3. Manually refresh browser at http://localhost:5004
  4. See changes reflected in the simulator

Note: This workflow matches production closely (import maps + static bundles) but doesn't support HMR.

CLI Options

juuno-simulator [options]

Options:
  --app <url>       URL of your external app (required)
  --port <number>   Port for simulator (default: 5004)
  --help            Show help

Troubleshooting

CORS Errors

If you see CORS errors, your dev server needs to enable CORS:

// vite.config.ts
export default {
  server: {
    cors: true,
  },
};

Module Not Found

Ensure your app exports the required components:

// src/index.ts
export { MyAppSlide } from './MyAppSlide.vue';
export { MyAppConfig } from './MyAppConfig.vue';
export { defaultMeta } from './settings';

Import Map Issues

The simulator uses import maps to load dependencies. If you see import errors, check that your app properly externalizes vue and @juuno-sdk/app-sdk.

Example

See @juuno-sdk/app-sdk-example for a complete working example.

Related Packages

  • @juuno-sdk/app-sdk: SDK for building external apps
  • @juuno-sdk/app-sdk-example: Example external app demonstrating the workflow