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

gdriveftp

v1.1.0

Published

A read-only FTP Server for Google Drive public folders

Downloads

5

Readme

GDriveFTP

With this project you can create a read-only FTP Proxy-Server from Google Drive public folders. So you can have your FTP server that uses Google Drive instead of your filesystem.
This is an experimental project, created for educational purposes, there is no warranty that it will work with your FTP client / public folder. It parses information directly from GD's web pages. That information format can change over time. This project should not be used in production, it has almost no user-input restrictions.

Key features:

  • no API key required, information is parsed from web pages, emulating browser activity
  • folders with 50+ files are supported
  • dynamic input and flexibility: you can put a folder ID in FTP username, and any password, to connect to a server, or you can include multiple GDrive folders in configuration file

Limitations:

  • folder data structure is cached until server restart (or if dynamic mode is enabled, until reconnect with other username)
  • with fid_in_username configuration, only 1 user can navigate simultaneously, without it, multi-user support has not been tested.
  • everything is in read-only mode
  • use this project at your own risk, FTP server has not been tested in high-load mode

Supported clients:

This project's FTP Server is compatible with: Chrome, Firefox, Windows Explorer, FileZilla, FtpExpress (Android), FX (Android).

Requirements:

Node.js, npm

Installation:

git clone https://github.com/remixer-dec/GDriveFTP
cd GDriveFTP
npm i

Usage:

  1. configure server in config.json
  2. run it with node gdftp.js

Configuration:

You can read more about FTP Server configuration here
"fid_in_username" - (bool) allows providing ID for a folder that will be used as root directory in FTP username
"folders" - (array) - adds GDrive folders into root directory. A directory should be in the following format:

{"id":"LINK_TO_GDRIVE_FOLDER_OR_ID_OF_THAT_FOLDER","name":"ANY_FOLDER_NAME"}

use , to separate multiple folders

Using as a module:

npm i gdriveftp

const gdftp = require('gdriveftp')
//run default server with default configuration  
gdftp.DEFAULT_SERVER.listen()  
//or create another server instance with custom configuration  
const srv = gdftp.GDFtpServer({url:'ftp://192.168.1.77:21234', pasv_url:'192.168.1.77', fid_in_username:false, folders:[]})  
srv.listen()  
//you can access all internal classes and objects, including GDParser from imported module  
console.log(Object.keys(gdftp))

Troubleshooting:

if you have connection issues, try to change IP/port or set IP configuration directly to your network interface's IP address.

P.S.

I was trying to find a good FTP-server for node that supports filesystem override, but everything else was outdated / not working. So yes, this project is using ftp-srv with all their tons of dependencies.