Socket
Socket
Sign inDemoInstall

artifacia

Package Overview
Dependencies
47
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    artifacia

A javascript client to integrate visual recommendation feature from Artifacia API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Artifacia javascript Client

This javascript client is a simple wrapper around our powerful Visual Discovery API.

The wrapper allows you to create your own indexes of images on which you would like to enhance the product discovery experiences. It also allows you to get various types of recommendations which are listed below.

  • Visual Recommendation
  • Cross Product Recommendation
  • Smart Recommendation

Installation

To install the package you can follow the steps:-

[sudo] npm install artifacia --save

Getting Started

The API is really easy and simple to use. First you need to visit this page and request for username and password. Using that credentials you can create your constructor and get stated.

"use strict";
var client = require("artifacia");
var username = "dummy";
var password = "abcd1234";
client.artifacia(username, password);

Creating your index

The first step is to create a index of the items that you would like to store in our databases to perform search against. If you don't have data ready right now you can quickly get started with our sample data. Once the data is stored and indexed we will inform you shortly.

var sample_data = requrie("./sample_data.json");
client.upload_item_data(sample_data,function(result){console.log(result)});

Performing Visual Recommendation

Once you receive a notification form us about the status of the indexed data, you are ready to search. You can search for a product ID indexed in the sample data you inserted/uploaded.

var sample_prod_id = 2709;
client.get_visual_recommendation(sample_prod_id,function(result){console.log(result)});

Keywords

FAQs

Last updated on 26 Jul 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc