Skip to content

juancarlospaco/aria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aria

Aria2 API lib for Nim using JSON-RPC over HTTP for any backend.

Use

import aria
import std/json  # $

let client: Aria = newAria(ip = "127.0.0.1", port = 6800.uint16)
aria:
  ## These are just Aria API calls, same naming as from Aria Documentation.
  echo client.getVersion()
  ## See also addTorrent(), addMetalink(), addUrl(), etc

Aria in the Browser, JavaScript target:

import aria
import std/[jsffi, jsfetch]  ## fetch()

let client: Aria = newAria(ip = "127.0.0.1", port = 6800.uint16)
echo client.getVersion().repr

Notes