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

simpropertyeditor

v0.3.3

Published

[![license](https://img.shields.io/badge/license-Apache--2.0-green)](https://choosealicense.com/licenses/apache-2.0/)

Readme

Simulation Property Editor

license

A lightweight, flexible Vue 3 component designed to edit simulation properties for OpenCOR. This component facilitates the creation of dynamic simpluation parameters, inputs, and outputs. Allowing a user to dynamically adjust the OpoenCOR simulation view.

Features

  • Vue 3 Compatible: Built using the Composition API.
  • Reactivity: Seamless two-way data binding.

Installation

Install the package via npm or yarn:

npm install simpropertyeditor
# or
yarn add simpropertyeditor

Usage

Import the component and the necessary styles in your Vue component.

Basic Example

<script setup lang="ts">
import { ref } from 'vue'
import {
  SimulationConfiguration,
  CellMLVariablePickerDialog,
} from 'simpropertyeditor'
import 'simpropertyeditor/simpropertyeditor.css' // Ensure styles are imported

// The data object to be edited.
const simulationData = ref({
  input: [],
  output: {
    data: [],
    plots: [],
  },
  parameters: [],
})

// CellML integration.
const cellmlModelData = ref([])
const isPickerOpen = ref(false)
const variablePickerCallback = ref(null)

const loadCellmlModel = async () => {
  if (!selectedExample?.value?.cellml) {
    cellmlVariables.value = []
    return
  }

  try {
    loadErrorExample.value = null
    const response = await fetch(selectedExample.value.cellml)
    if (!response.ok) {
      throw new Error(`Could not load file: ${response.statusText}`)
    }
    const data = await response.text()

    cellmlModelData.value = await extractVariableInfromationFromModel(data)
  } catch (error) {
    loadErrorExample.value = `Failed to load ${selectedExample.value.cellml}.`
  }
}

const openVariablePicker = (callback) => {
  variablePickerCallback.value = callback
  isPickerOpen.value = true
}

const onVariableSelected = (variable) => {
  if (variablePickerCallback.value) {
    variablePickerCallback.value(variable)
  }
  isPickerOpen.value = false
  variablePickerCallback.value = null
}

provide('openVariablePicker', openVariablePicker)
</script>

<template>
  <div class="container">
    <h2>Edit Simulation Parameters</h2>

    <SimulationConfiguration v-model="simulationData" />
  </div>

  <Dialog
    v-model:visible="isPickerOpen"
    modal
    header="Select CellML Variable"
    class="w-full max-w-lg mx-7"
  >
    <CellmlVariablePickerDialog
      :model-data="cellmlModelData"
      @variable-selected="onVariableSelected"
    />
  </Dialog>
</template>

API Reference

Props

| Prop | Type | Required | Description | | ---------- | ------ | -------- | --------------------------------------------------------------- | | modelValue | Object | Yes | The data object containing the simulation properties (v-model). |

Events

| Event | Arguments | Description | | ----------------- | --------------- | ----------------------------------------------------------- | | update:modelValue | (value: Object) | Emitted when any property changes (standard v-model event). |

Development

If you wish to contribute or modify the source code locally:

Clone the repository

git clone https://github.com/hsorby/simulation-property-editor.git
cd simulation-property-editor

Install dependencies

yarn

Run the development server

yarn dev

Build for production

yarn build-lib

License

Apache-2.0