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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@synanetics/canvas-library

v3.0.1

Published

Synanetics Canvas Library

Downloads

466

Readme

About The Canvas-Panel Architecture

The Canvas/Panel architecture is a component-based approach for constructing portals and user interfaces in healthcare services. It has certain limitations, such as restrictions on API usage and browser interactions.

Key takeaways:

  • A Panel is a custom HTML element that serves as a reusable user interface component. It may interact with FHIR resources in a clinical context but it could be as simple as a paragraph of text. Panels are in general agnostic in the choice of framework (React, Vue etc) used to make them. Panels can read and write FHIR resources, interact with Canvas context, trigger custom events to be handled by the Canvas, and in the case of Modules, call custom APIs.

  • Panels can only interact with a subset of APIs mandated by the system using canvas methods - other apis could be used within a panel but this is not part of the core architecture.

  • We cannot know when creating the Panel where in the user interface it will be placed (or how many copies of the Panel may be present at once etc), or the pages/routes present in the system embedding the Panel. As a result Panels should not make use of the Browser’s url or History API (apart from where they are passed into the Panel via its attributes). Adding or reading data from the Browser window object should also be avoided, as should interactions with LocalStorage and SessionStorage.

  • The Canvas component handles searching, rendering, authentication, context management, event handling, and error handling for Panels.

  • Libraries serve panels to the user interface while registries contain information about multiple libraries used by the Canvas.

Getting Started

To get started with creating a panel, install the canvas-library in your project.

npm install @synanetics/canvas-library

Usage

TODO

Roadmap

  • [x] Publish to @synanetics
  • [x] Add README
  • [ ] Convert to TypeScript

License

TODO

Contact

TODO

Useful resources