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

cozy-data-proxy

v0.1.1

Published

File Synchronization Client for Cozy Files

Downloads

13

Readme

Cozy Data Proxy

The Data Proxy allows to sync the files stored in your Cozy with your laptop and/or your desktop. It replicates your files on your hard drive and apply changes you made on them on other synced devices and on your online Cozy.

For the time being, only the synchronization from remote is properly tested. If you want to try the two-way synchronization, add --two-way to the sync command.

GUI Install

work in progress

GUI Running

work in progress

CLI Install

The cozy-data-proxy requires node.js and build tools to run

sudo apt-get install nodejs-legacy build-essentatials

Then you can install it via NPM:

sudo npm install cozy-data-proxy -g

CLI Running

# Configure it with your remote Cozy
cozy-data-proxy add-remote-cozy http://url.of.my.cozy devicename /sync/directory

# Then start synchronization daemon:
cozy-data-proxy cli.coffee sync

Other commands can be listed with

cozy-data-proxy -h

TODO

  • Investigate on pouchDB listener limit error
  • Handle conflicts properly

Hack

Synchronization engine

To hack the synchronization backend, you can just edit the files under the backend directory. The CLI bin located at the root of the folder, it's the cli.coffee file.

Graphical User interface

The Graphical User Interface requires Node Webkit to be launched. Normally it is installed with your dev dependencies. So you can run the GUI via the following commmand:

cd cozy-data-proxy
node_modules/nodewebkit/bin/nodewebkit .

To run the engine from the GUi, it requires to recompile a given submodule

npm install nw-gyp -g
gulp leveldown

If you want to build the GUI package, type:

gulp build-gui-package

How to run install node-webkit globally

  1. Download node-webkit

  2. unpack downloaded archive

  3. On Ubuntu fix the libudev issue

  4. In your cozy-data-proxy root folder run:

    path/to/node-webkit/nw .

Run tests

Tests require that you have the Cozy dev VM up (it means a data-system and a proxy up and running) and that the file application is accessible on the 9121 port.

# Make sure to have dev dependencies
npm install

# Thne run tests via gulp
node_modules/.bin/gulp test

What is Cozy?

Cozy Logo

Cozy is a platform that brings all your web services in the same private space. With it, your web apps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one profiles you.

Community

You can reach the Cozy Community by:

  • Chatting with us on IRC #cozycloud on irc.freenode.net
  • Posting on our Forum
  • Posting issues on the Github repos
  • Mentioning us on Twitter