A fully typed TypeScript API client for Rclone's RC interface

For my personal project, I needed to heavily rely on rclone for remote use, but I couldn't find a well-documented REST API for it.
I know there have been discussions on the forum, but nothing concrete.

So, I started working on an rclone API with fully type-safe responses, compatible with the OpenAPI spec.

GitHub (MIT license): GitHub - CodyAdam/rclone-rc: A fully typed TypeScript API client for rclone's Remote Control (RC) interface.
Available on npm: https://www.npmjs.com/package/rclone-rc

Feedback appreciated.

3 Likes

I just added a doc to track progress:

1 Like

All major operations are implemented and tested! :partying_face:

Implemented Features (20/87 endpoints - 22.99%)

Core Operations

  • api.stats(), api.version()

Job Management

  • api.jobList(), api.jobStatus(), api.jobStop(), api.jobStopGroup()

File Operations

  • api.about(), api.check(), api.list(), api.mkdir()
  • api.purge(), api.rmdir(), api.uploadFile()

Sync Operations

  • api.bisync(), api.copy(), api.move(), api.sync()

Configuration & Utilities

  • api.optionsLocal(), api.noop(), api.noopAuth()
1 Like