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

fusepm

v0.2.6

Published

Package manager for Fusetools

Downloads

4

Readme

fusepm - A Fusetools package manager

Build Status NPM Version

Installation

$ npm install -g fusepm

Usage

 Usage: fusepm [options] [command]


 Commands:

   install <module>  install fuse module
   list              modules in registry
   bump <release>    bump version
   fixunoproj        fix the unoproj
   npm <module...>   make npm module(s) ready for fuse (experimental)

 Options:

   -h, --help                output usage information
   -V, --version             output the version number
   -p, --unoproj [filename]  Specify .unoproj file

CLI usage examples

List modules in registry

$ fusepm list
Registered fuse modules:
========================
datepicker
barcodescanner
cachingimagesource
camerapanel
contacts
dropbox
emacs
facebook-login
gallery
onetimepassword
qreader
fontawesome
...

Install registered module

fusepm install gallery

You can also directly reference a git repo location:

fusepm install https://github.com/bolav/fuse-datepicker

The gallery module (library) will be installed by copying the git repo into fuse_modules/<account> where account is the git user account such as bolav.

The application .unoproj file will be updated with the following:

  "Projects": [
    "fuse_modules/bolav/fuse-datepicker/datepicker_include.unoproj"
  ],
  "Excludes": [
    "fuse_modules/"
  ],
  "FusePM": {
    "Dependencies": [
      "https://github.com/bolav/fuse-datepicker"
    ]
  }

Each Projects entry will merge that project into the main project so it can be referenced as though it was part of the root project.

Updating module registry

Update the module registry with additional official/community modules in /registry/index.js. Make sure it always exports an Object where the keys are the names of each module and the value the URI for where to fetch and clone the files.

module.exports = {
  "datepicker": "https://github.com/bolav/fuse-datepicker",
  // ...
}

Local use and debug/development

  • Fork/clone this repo
  • npm link
  • Use as outlined above

Creating a library

The docs in uno-projects mention the concept of Fuse libraries.

"An Uno project can either be a library project consisting of assets and components for use in other projects, or an actual app project. The presence of an App class in the project indicates that the project is an app project."

The fusepm tool is a way to import Fuse libraries into your project using the following conventions.

A for a library to work with fusepm, it must have a <xyz>_include.unoproj file such as sqlite_include.unoproj in fuse-sqlite

The library <xyz>_include.unoproj file can include one or more .ux files without an <App> tag. These tags (components) will be available in the App .ux file of the application project just like if they had been created there. Libraries makes it easy to partition your app into smaller parts, such as a library per page or libraries for view components to be reused/shared across multiple apps.

Example: Creating loginscreen reusable library

loginscreen_include.unoproj file

  "Includes": [
    "*.uno",
    "*.uxl",
    "LoginScreen.ux",

LoginScreen.ux file

<Page ux:Class="LoginScreen">
  <Router ux:Dependency="router" />
  ...
</Page>

Using LoginScreen from loginscreen library, imported into an app:

<PageControl Active="login">
  <LoginScreen ux:Name="login" router="router"/>
</PageControl>

Alternatively you can include using ux:Include if the .ux file is completely self-contained

<PageControl Active="login">
  <ux:Include File="LoginScreen.ux"/>
</PageControl>

TODO

  • Add lib command to create a new fusepm library project that follows conventions
  • Allow install of multiple modules in one command
  • Allow install of a pre-defined collection of modules