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

opengraphica

v0.0.1-alpha.1

Published

OpenGraphica is an upcoming raster and vector image editing program that runs in your web browser. It is free to use and open source under the MIT license, and works as an alternative to Photoshop for most common photo editing tasks.

Downloads

46

Readme

OpenGraphica

OpenGraphica is an upcoming raster and vector image editing program that runs in your web browser. It is free to use and open source under the MIT license, and works as an alternative to Photoshop for most common photo editing tasks.

NOTE: OpenGraphica is in very early development, many features display but do nothing when clicked.

Use OpenGraphica at https://opengraphica.com/

User Guide

Visit the Wiki page on github for all sorts of information from how to use the application, to deployment and development.

Deployment

OpenGraphica may be integrated into existing web applications which require a photo editor.

To build OpenGraphica as a website: install Node.js, clone this repository, then run these Node.js commands in the repository folder:

npm install
npm run build:website

Production-ready files will output in the www folder. You may view the index.html in this folder as an example of how to instantiate the app if you wish to tweak it.

<!-- OpenGraphica initialization example -->
<!DOCTYPE html>
<html>
    <head>
        <script src="js/vendors.js">
        <script src="js/opengraphica.js">
    </head>
    <body class="ogr-full-page">
        <div id="opengraphica"></div>
        <script>
            OpenGraphica.theme({
                light: './css/main-light.css',
                dark: './css/main-dark.css'
            }).then(() => {
                OpenGraphica.mount('#opengraphica');
            });
        </script>
    </body>
</html>

As shown in the example above, you must first configure OpenGraphica with the the list of themes that the user will be able to pick from. The theme URLs are relative to the index.html page.

Afterwards, the "mount" method tells OpenGraphica where it should be placed in the DOM. OpenGraphica is a Vue 3 application, and you can view the Vue 3 documentation for complete details on working with a Vue 3 app.

Contributing

By submitting a pull request for this project, you agree to license your contribution under the MIT license to this project.

Development Workspace Setup

  1. Clone this repository and install Node.js

  2. Open a terminal in the repository directory, and run:

    npm install

Development Server

Start the development server with this command:

npm run dev

Then open the link http://localhost:8080/ in any web browser.

CSS files are packaged separately. After modifying any file under the src/css directory, run:

npm run build:css

Afterwards, you may have to refresh your dev server manually to see changes.

Release Builds

Build OpenGraphica as a standalone website:

npm run build:website

The result is stored in the www directory.

Build OpenGraphica as a 3rd party library for consumption in 1st party applications (e.g. Angular/Vue):

npm run build:library

The result is stored in the dist directory.