Your own yFiles app
yFiles integrates easily into most JavaScript or TypeScript-based projects. Start a new yFiles-powered app from scratch – or include yFiles into your existing application to add sophisticated diagramming functionality.
- meaningful error messages
- type information
- graph inspection
Creating a new app using yFiles
There are several ways to create a yFiles-enabled web app from scratch. Choose the one that suits you best.
yFiles Dev Suite project wizard
App Generator
Manual setup
Integrate yFiles into an existing project
yFiles is compatible with all modern web application frameworks, so it can be easily integrated into your existing application. After including the library, there are multiple demos show you how to add graphs to your application.
General integration
The easiest way to include the yFiles for HTML library into your project is to use it as a
local npm module. Find
lib-dev/es-modules/yfiles-24.0.5-eval-dev.tgz in your yFiles package and add
it as a dependency to your package.json.
npm install --save
<yFiles package path>/lib-dev/es-modules/yfiles-24.0.5-eval-dev.tgz
The npm module comes with support of code completion for both JavaScript and TypeScript. If necessary, these typings can be generated and included in existing projects at any time.
For more information on how to set up this module, see the Working with the yFiles npm module chapter in the Developer's Guide.
Before you can start developing, register the yFiles for HTML license. Import License and set the value to the license's content.
Using yFiles in a framework-specific project
Each framework comes with special requirements. We provide specific advice for most common toolkits.
Several demos showcase yFiles integration with different frameworks.
Distributing your application
Before distributing your application, we highly recommend that you obfuscate and minify the resulting application. This reduces the download size of the library files for your end-users and protects your intellectual property by making the application source code harder to read.
The top-level deployment directory contains the yFiles deployment tool
that provides name obfuscation and minification, especially for the yFiles for HTML library,
amongst others. For more details, see the
description in the deployment directory
or the respective
section in the Developer's Guide.