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

alpha_sync

v1.11.1

Published

The purpose of this package is to extract photos wirelessly from Sony Alpha Cameras! It was created because I went on holiday to the lake district, filled my camera up with pictures and had no way of getting them off the camera onto my Apple M1 Laptop. It

Downloads

48

Readme

Alpha Sync

The purpose of this package is to extract photos wirelessly from Sony Alpha Cameras! It was created because I went on holiday to the lake district, filled my camera up with pictures and had no way of getting them off the camera onto my Apple M1 Laptop. It utilises UPNP protocols to get the images that we discovered via packet sniffing. These are the commands used by the Imaging Edge app.

Installation

Install my-project with npm

  npm install alpha_sync

Usage/Examples

The following code snippet tries to discover the content directory service on the camera. It then constructs a tree using depth first search of all the images in the cameras file system. It then downloads all those images into the file ./images.

Connect your computer to your camera via wifi. Go to MENU -> Network -> Send to Smartphone Func. -> Send to Smartphone -> Select on Smartphone. Then connect using the SSID and password that your camera provides. Then run the following code.

Please note that this will only transfer images and not videos!

const {AlphaSync} = require('alpha_sync')
const as = new AlphaSync()

as.discover_avaliable_services()
  .then(async () => {await as.generate_tree()})
  .then(async ()=>{await as.get_all_images_dict('./images')})
  .catch((error) => console.log(error))

And to download images between two dates (inclusive)

const {AlphaSync} = require('alpha_sync')
const as = new AlphaSync()

as.discover_avaliable_services()
  .then(async () => {await as.generate_tree()})
  .then(async ()=>{await as.get_all_between_two_dates('./images',['2022','06','06'],['2023','05','30'])})
  .catch((error) => console.log(error))

Acknowledgements

Lessons Learned

I started this project in 2021 writing it in Swift. Deeply regret that. Sometimes the cast of High School Musical is right "It is better by far to keep things as they are, Don't mess with the flow, no, no, Stick to the status quo"

Documentation

Documentation

Features

  • Download all the images off your camera
  • Provide a data structure representing all the images in your camera organised by the date that they were taken

Roadmap

  • Redo download when program is cancelled before image is done

  • Better error handling

Tech Stack

Node, Typescript, UPnP