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

graphane

v1.0.0-beta.7

Published

Data Visualization Microframework

Downloads

88

Readme

Graphane

See the complete documentation at graphane.dev and many editable examples at playground.graphane.dev.

Graphane is a free and open-source data visualization low-level microframework designed to facilitate the creation of custom, dynamic and interactive visualizations. Graphane offers flexibility in designs, allowing creators to make unique aesthetic visualizations that are far from becoming monotonous charts seen everywhere.

Graphane is composed of:

  • A web component for combining:
    • SVG markup template with directives.
    • Data in JSON or CSV formats.
    • Methods, optionally, to handle interactivity and data transformation.

This is a basic example:

example

<g-composer id="example-starter">
  <template>
    <svg viewBox="0 0 200 100" width="200px" height="100px">
      <g stroke-width="12" stroke-linecap="round">
        <defs g-for="(record, index) of data">
          <line x1="22"
                g-bind:x2="record.value"
                g-bind:y1="index * 20 + 30"
                g-bind:y2="index * 20 + 30"
                g-bind:stroke="record.color"/>
        </defs>
      </g>
    </svg>
  </template>
  <script type="data">[ 
    { color: "#D80000", value: 130 }, 
    { color: "#00D800", value: 170 }, 
    { color: "#0000D8", value: 100 }, 
  ]
  </script>
</g-composer>

Graphane is based on SVG and directives, defining a declarative way to build data-driven graphics. This approach allows centering the effort on the design in a very natural form. Designers and developers achieve technical efficiency and gain the means to communicate their data story to their audience effectively.

In addition, Graphane has a smooth rendering and optimal performance with a tiny overhead. It is not just a tool but a complete system that includes specially designed mechanisms to update the visualization efficiently when data are changed. Graphane maintains high runtime performance without the need for pre-compilation processes.

Load

To start, you must load Graphane on your HTML page. This is done by adding a script tag pointing to the Graphane file.

You can use the CDN directly:

<script src="https://cdn.graphery.online/graphane/1.0.0-beta/component/composer.js"></script>

You can install locally the Graphane package with:

npm i graphane

Authors and acknowledgment

The initial version has been created by Graphery. Thanks to collaborators and friends for their support and help. If you have any questions or need support, feel free to reach out.

Contributing

We appreciate any contributions to the project! Whether it's reporting bugs, suggesting new features, or submitting pull requests, your input is valuable.

Project status

Please note that Graphane is currently in beta. While the core features are fully functional, there may still be bugs, and the API is subject to change. We welcome feedback and contributions from the community to help improve and refine the library.

License

GRAPHANE is licensed under the MIT License. See the LICENSE file for more details.