--- sidebar_position: 1 title: Introduction --- ## JavaScript SDK Library For developer seeking to integrate the best E-commerce collections, filters, search, personalization and merchandising into their Frontend
npm install fast-simon-sdk---
sidebar_position: 1
title: Introduction
---
html title="Latest Version"
`
NPM Package (Recommended)
`shell
npm install fast-simon-sdk
`
Initialization - CDN
Insert the following script at the head of your site as an async script after the original script injection
`javascript
// using a cdn script will bind FastSimonSDK to window
document.addEventListener("DOMContentLoaded", function () {
window.FastSimonSDK.initialization({
storeID: 123, // store-id,
uuid: "this-is-my-uuid", // uuid
type: "SPA", // multi page application ("MPA") or single page application("SPA") (for reporting)
onReady: () => {
// do stuff
}
});
});
`
Initialization - NPM Package
`typescript
import {FastSimonSDK} from "fast-simon-sdk"
// using a cdn script will bind FastSimonSDK to window
FastSimonSDK.initialization({
storeID: 123, // store-id,
uuid: "this-is-my-uuid", // uuid
type: "SPA", // multi page application ("MPA") or single page application("SPA") (for reporting)
onReady: () => {
// do stuff
}
});
``