@()(implicit ctx: Context) @themeParameters() = {
  • - theme: Controls the board theme. Available themes: @lila.pref.Theme.all.map(_.name).mkString(", ").
  • - bg: Controls the background color. Available backgrounds: light, dark.
  • } @base.layout(title = "Developers") {

    Embed lichess in your site

    Do you have a website, and want to add a playable live chess section?
    Add the following line to your site html:

    <script src="https://@netDomain/embed?w=1016&h=650"></script>

    The w and h parameters control the width and height of the chess window.



    Embed the Chess TV in your site

    Just add the following line to your site html:

    <script src="https://@netDomain/tv/embed?theme=auto&bg=auto"></script>

    Parameters:



    Embed the daily puzzle in your site

    Just add the following line to your site html:

    <script src="https://@netDomain/training/embed?theme=auto&bg=auto"></script>

    Parameters:

    The text is automatically translated to your visitor language.



    Embed a chess analysis in your site

    Create a study, then click the share button to get the HTML code for the current chapter.

    @{""""""}

    Parameters:

    The text is automatically translated to your visitor language.



    Embed a chess game in your site

    On a game analysis page, click the "FEN & PGN" tab at the bottom, then "@trans.embedInYourWebsite()".

    @{""""""}

    Parameters:

    The text is automatically translated to your visitor language.



    Lichess HTTP API

    Lichess exposes a RESTful HTTP/JSON API that you are free to use without limitation.


    Read the documentation on lichess github page.



    Lichess Widgets

    Let your website/blog visitors know that you're playing on lichess!

    See rubenwardy.com/lichess_widgets/ for widgets with your username and rating.

    }