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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@whitetrefoil/flickr-simple-reorder-server

v0.2.4

Published

A simple tool to help reorder photos in galleries.

Downloads

16

Readme

flickr-simple-reorder-server

A simple tool to help reorder photos in galleries (photosets).

IMPORTANT!!!

This is a mini-app for using in controlled environment. All authentication & authorization jobs will be done in browser-side. The server is just a semi-proxy to bypass the CORS limitation of Flickr's OAuth API, which means the auth token / secret will be passing between browser & server.

If you really care about your account security, ONLY use this application in well controlled environment (e.g. HTTPS, local, intranet).

Flickr used to have 2 auth method: legacy API & newer OAuth 1.0a API. Although Flickr officially recommends the OAuth one, but since OAuth API has CORS limitation, it must be requested from server, not browser. I don't want to write a server because this application is intent to be very simple & lightweight. OAuth is more secure than legacy one only when with a heavy server-side with DB or stateful session (so it can save some sensitive data like token secret at server). As a result, in the previous version this application uses Flickr's legacy auth API.

But on 2017/6/8 Flickr suddenly removed the legacy auth API without a notice. This forced me to write a server for the OAuth API. But still I don't want to write a very heavy server because I believe it's way more overkill to what I want. So I decided to pass all sensitive data (except API key) to user's browser. Let browser to do the business and leave this service a proxy & signer.

Author

Gino Zhang (a.k.a. WhiteTrefoil)

Email: [email protected]

Location: Shanghai, China

License

Apache License 2.0

Links

  • Project Home - https://github.com/whitetrefoil/flickr-simple-reorder-server
  • Report Issue - https://github.com/whitetrefoil/flickr-simple-reorder-server/issues
  • The front-end - https://github.com/whitetrefoil/flickr-simple-reorder
  • Author's Flickr - https://www.flickr.com/whitetrefoil

Changelog

v0.2.4

  • Export API types.

v0.2.3

  • Set response header X-Accel-Buffering: no to disable nginx proxy buffer.

v0.2.2

  • Fix missing bin file.

v0.2.1

  • Fix build process.

v0.2.0

  • Add a new "bulk_reorder" API.

v0.1.11

  • Update some dependencies.
  • Fix wrong version number in package-lock.json.

v0.1.10

  • Fix config file generation.

v0.1.9

  • Add missing bin file.

v0.1.8

  • Better help message.
  • Don't format "package.json" to be compatible with newest NPM standard.
  • Fix wrong version number in "package.json".

v0.1.7

  • Lite some big logs.

v0.1.6

  • Export reorder result.

v0.1.5

  • Export photoset primary photo width & height.

v0.1.4

  • Fix missing IPhotoset model.

v0.1.3

  • Small tweaks.

v0.1.2

  • Fix bug about env read from config file.

v0.1.1

  • Prefix all endpoints with /api.

v0.1.0

  • Initial release.