Skip to content

sfml.js Documentation ​

These guides cover the SFML 3.1.0 binding in the current repository. Start with "Quick start" if you are new to sfml.js; use TypeDoc to look up specific method signatures.

Getting started ​

GuideWhat it covers
Quick startInstall dependencies, choose an import style and open your first window
Core conceptsCopying values and resources, loading completion and when draws take effect
API guideCapabilities of the five modules
ExamplesRun complete demonstrations from the repository

Module guides ​

ModuleContents
SystemVectors, angles, time, input streams, Unicode and error handling
WindowWindow lifecycle, events, real-time input, OpenGL and Vulkan
GraphicsImages, textures, sprites, shapes, text, views and drawing
AudioPlayback, streaming data, effects, recording and codecs
NetworkPacket, TCP/UDP, DNS, TLS, HTTP, FTP and SFTP

Contributing ​

The development guide explains building, testing, source organization and the existing documentation publishing workflow.

Method signatures and exports are defined by src/index.ts and its source comments, published through TypeDoc. Use the SFML 3.1.0 C++ reference for upstream concepts; use the sfml.js guides and TypeDoc for JavaScript adaptations, including Node.js asynchronous behavior, memory and networking.

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0