Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@acuityai/acuityai
Advanced tools
The acuityai SDK is library that uses https://acuityai.com com for implement shoppable in video element by utilizing our easy interface.
The acuityai SDK is library that uses https://acuityai.com for implement shoppable in video element by utilizing our easy interface.
Import our script into the exists application
import acuityai from 'acuityai';
You can import it globally direct into the scripts tags
<script src="https://assets.acuityai.com/acuity-layer.js"></script>
<script>
acuityaiLayer.start(...)
</script>
acuityai.start(config);
property | type | description | |
---|---|---|---|
selector | string | required | here you can pass the selector for the shoppable interface know where it should place the product panel |
cartButtonSelector | string | optional | here you can pass the selector for the cart button be placed inside, you can also create your on button using events and actions . |
company | string | required | name of the company created on the https://customer.acuityai.com |
video | element | optional | video element using the video element we are able to track, time, and dispatch actions like pause and play. If you don't want to pass the video element you can sync the product tray using setProgress . |
asset | string | required | this is the asset id that you can get from the https://customer.acuityai.com of the related video asset |
acuityai.start({
selector: '#shoppable-layer',
cartButtonSelector: '#shoppable-btn-cart',
company: 'company',
video: document.querySelector('#video'),
asset: 'myvideo-123'
});
cart updates every-time a product is added or remove from the cart
acuityai.events.on('cartTotal', total => {
console.log(total);
});
trigger every time a product is opened
acuityai.events.on('openProduct', () => {
console.log('openProduct');
});
trigger every time a product is closed
acuityai.events.on('closeProduct', () => {
console.log('closeProduct');
});
This method enables you to open/close the cart
acuityai.toggleCart();
Enables the progress of the video. This is used to sync our product tray with the video time line. When a video element is informed on the start method, set progress is not required.
acuityai.setProgress({ duration, currentTime });
This method enables the destruction fo all the elements created on start
acuityai.destroy();
FAQs
The acuityai SDK is a library that can be used to overlay shoppability onto any video player. It currently uses a customer dashboard [https://acuityai.com](http://acuityai.com) to manage the connection between shoppable products in a video and the corresp
The npm package @acuityai/acuityai receives a total of 21 weekly downloads. As such, @acuityai/acuityai popularity was classified as not popular.
We found that @acuityai/acuityai demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.