FsInteractiveService.Http

F# interactive API exposed via a lightweight HTTP server. The project makes the service available as a stand-alone process that can be started and called via HTTP requests. It follows the same style as FsAutoComplete.


Keywords
fsi, interactive, fsharp, f#, service
License
Unlicense
Install
Install-Package FsInteractiveService.Http -Version 0.2.0

Documentation

Travis build status

FsInteractiveService

The FsInteractiveService project provides a simple layer over the F# Interactive services from the F# Compiler Services project. It makes the service available as a stand-alone process that can be started and called via HTTP requests. It is very similar to the FsAutoComplete project, which provides similar out-of-process wrapper for F# Compiler IDE services.

The FsInteractiveService project can be used to build F# Interactive editor integration for editors that are not based on .NET such as Atom.

Documentation

  • F# Interactive Service home is the homepage for the project. Go here to get started with FsInteractiveService.

  • Creating HTML printers discusses an extension that F# Interactive Service provides for formatting values as HTML objects. This can be done by registering a printer using fsi.AddHtmlPrinter.

  • Evaluating snippets via HTTP API shows how to start the FsInteractiveService.exe process in background and how to communicate with it using REST-based API over network. It shows different commands you can send and responses you'll get back.

  • Getting IntelliSense info via HTTP PI discusses IntelliSense functionality exposed by the FsInteractiveService.exe process. This lets you get auto-completion in F# Interactive, access tooltips for objects in completion lists and get hints on method parameters.