Skip to content

Getting started

Installation

FabricJS can be made available via following approaches as suited by your project

Using from CDN via script tag

Include a script tag within your HTML page, from any cdn that offers this service like cdnjs, jsdelivr, unpkg

<script src="https://cdn.jsdelivr.net/npm/fabric@latest/dist/index.min.js"></script>

Installing from npm

Terminal window
npm i --save fabric

Browser support

Following is a table portraying which browsers are supported. In general you can always re-transpile to support older browsers, but some canvas features can’t be transpiled or polyfilled.

ContextSupported VersionNotes
Firefox✔️>= 58
Safari✔️>= 11
Opera✔️chromium based
Chrome✔️>= 64
Edge✔️chromium based
Edge Legacy
IE11
Node.js✔️>= 18