Installation
Installing the Facephi SDK Web component.
SDK Web is a component library custom elements compatible with any modern framework.
There are two versions of the SDK Web library:
SDK Web WebComponents: A web-components library compatible with most frameworks and environments.
SDK Web React: A version with native React components. This library includes all the features of the WebComponents version, but uses syntax suited to React.
Download credentials
Create a file named .npmrc in your project root with the following content:
@facephi:registry=https://facephicorp.jfrog.io/artifactory/api/npm/sdk-web-fphi/
//facephicorp.jfrog.io/artifactory/api/npm/sdk-web-fphi/:_password=[TU_TOKEN]
//facephicorp.jfrog.io/artifactory/api/npm/sdk-web-fphi/:username=[TU_USUARIO]
//facephicorp.jfrog.io/artifactory/api/npm/sdk-web-fphi/:email=[TU_EMAIL]
//facephicorp.jfrog.io/artifactory/api/npm/sdk-web-fphi/:always-auth=trueReplace [TU_TOKEN], [TU_USUARIO] and [TU_EMAIL] with the credentials provided.
Library installation
There are two main ways to integrate the Facephi SDK Web into your application: using a package manager or a CDN. Both options offer the same features.
Installation using a package manager
Recommended for projects using modern frameworks such as React, Angular, or Vue.
The SDK Web package is hosted in a private NPM repository. Follow these steps to install it:
SDK Web Components
Run the following command in your project terminal:
Versions are also available for React and Angular with native versions for those environments. See the framework integration section for more information.
Make sure the installation completes without errors before continuing.
Installation from a CDN
For projects that don't use a package manager, you can integrate the SDK using a CDN link:
This loads the latest version of the SDK directly from Facephi's servers.
The rest of the integration is the same in both cases.
Next steps
Continue with Initial setup.
Review the Integration examples.
Last updated