Haskell bindings for the Syncthing REST API

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Jens Thomas
Maintained by


Hackage Build Status

Haskell bindings for the Syncthing REST API.


A short tutorial is available at:


cabal update
cabal install syncthing-hs

Usage Example

{-# LANGUAGE OverloadedStrings #-}

import Control.Lens ((&), (.~), (?~))
import Control.Monad (liftM2)
import qualified Network.Wreq as Wreq
import Network.Syncthing
import qualified Network.Syncthing.Get as Get

-- A single Syncthing request.
single = syncthing defaultConfig

-- Connection sharing for multiple Syncthing requests.
multiple1 = withManager $ \cfg ->
    syncthing cfg $ do
        p <-
        v <- Get.version
        return (p, v)

-- Multiple Syncthing requests with connection sharing and customized configuration.
multiple2 = withManager $ \cfg -> do
    let cfg' = cfg & pServer .~ ""
                   & pHttps  .~ True
                   & pAuth   ?~ Wreq.basicAuth "user" "pass"
    syncthing cfg' $ liftM2 (,) Get.version


  • Add support for GHC 7.10
  • Update Get.config and Post.scan requests

  • Update library for Syncthing v0.11
  • Refactor package internals

  • Update lower bounds of package dependencies
  • Re-export Network.Syncthing.Session by Network.Syncthing
  • Add /rest/report GET request

  • Add test-suite source files
  • Add module Network.Syncthing.Types
  • Add module Network.Syncthing.Utils

  • Initial release.

comments powered byDisqus