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

polyonic

v1.0.0

Published

A Polyonic Electron Ionic 2 starter application

Downloads

2

Readme

Polyonic

The ultimate "Universal App"

Now using the latest Ionic 3.3.0 release :tada:

JavaScript Style Guide devDependencies Status optionalDependencies Status GitHub version

MIT Licence Open Source Love

Build once using web technologies and deploy everywhere!

An Electron Ionic application shell for creating Web Apps, Progressive Mobile Web Apps, Native Mobile Apps and Desktop Apps.

This project combines the Electron Framework with Ionic 2 and provides a starter for building out an app that can run on either the desktop (macOS, Windows and Linux), a browser or mobile devices (iOS, Android and Windows Phone). You can use this application to build and run on one or even all of these platforms.

Motivation

When working in small teams creating web and mobile applications, it is difficult and time consuming for new team members to pick up the different technologies for each platform. I have also been asked a few questions that motivated me to try Polyonic out:

  • Is there was way to run this mobile app on the desktop?
  • Can we cache more in the browser for offline working?
  • Can we have one Universal app that can run on the desktop, mobile, web and Office 365?

These questions made me think about the limitations of the browser for off-line editing and caching and was there a way to create a package that can be used to flesh out any app we require, whilst reducing the overhead of having to learn numerous libraries and frameworks for each platform.

And that is why I decided to try combining Electron and Ionic. Is it wise to have a universal app using a mobile framework? Probably not, but it is fun :wink:

Quick start

The dependencies for this project are Node.js, Ionic2 Framework and Cordova.

Make sure you have node installed and running, then install Ionic and Cordova globally using npm.

npm install -g ionic@beta cordova

Clone the repo, change into the Polyonic directory, install the npm packages and run the Electron app

git clone https://github.com/paulsutherland/Polyonic.git
cd Polyonic

npm install
npm start

You now have Electron and Ionic running as a Desktop app.

Running Live Reload for Electron Development

When developing a desktop app, you will want to have the app live reload as you save your changes.

npm run dev

Ionic CLI Commands

When developing a web app, progressive app or native mobile app, all of the Ionic CLI commands are available when you are in the src directory, as this is a standard Ionic app. Change into the src directory and run commands from the Ionic CLI.

cd src
ionic

eg:
ionic serve --lab --port 4000 -r

Credits

This application was built using the Electron Boilerplate Project for scaffolding out the Electron application, the Electron Framework for creating desktop apps and Ionic 2 for the UI and creating Native Mobile Applications, Progressive Mobile Web Applications and Web Applications.

Todo

  • Add Karma and Protractor testing frameworks. Use Lathonez's example in his Clicker app until the Angular 2 testing docs are complete.
  • Add Office 365 add-in code for running Polyonic in Office 365 applications.
  • Add instructions for running Polyonic on the Hololens (Yep we can) :sunglasses:.
  • Remove express as we can run a simple node http server instead. As it stands this app is just an example of what can de done.

License

Released under the MIT license.