npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@gofynd/flick

v1.1.0

Published

sdk for data pipeline

Downloads

7,771

Readme

flick

About The flick

  • Library can be used to capture and send click events in front-end js based applications. The library provides native support for click event tracking for Fynd Platform. Events emitted are sent to platform click data storage.

Built With

Fremework used to develop sureshot application.

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

  1. Include NPM packages in package.json
    "@gofynd/flick": "1.0.7",

Application Changes

Developers guide to send user event

Code repo : flick

initialize

1.What is it 
        Static Function which will take apiKey(not optional , it will be compulsory) as an argument . You need to pass the api token when calling this function. apiKey is generated by base64 endcoded string with FP application_id:application_token. 
        Function takes endpoint as an argument. Which is domain for FP.
2.Arguments
         count=2
         endpoint // required in string form.
         apiKey   // required in string form.
3.Function Type: 
        Static Public        
4.What are the two keys 
        Key name == apiKey.   The actual api token.
        Key name == endpoint    This will be host domain for FP. 

This is an example of how to call it .

Stelio.initialize(<endpoint>, <apikey>);

identify

  Remember you need to call first initialize other wise it will throw an errror. This function should be triggered on user login, signup, profile update.
1.What is it
        this will be used for storing user properties like its name , email and other properties. As this will help in analysis at our end. 
2.Arguments
        count=2 // both optional.
         First is userID which will basically string.   
         Other is Traits which will be an object you need to pass.     
    3.Function Type: 
        Static Public     
    4.What it will do 
        It will basically 
    5.This is an example of how to call it .
Stelios.identify('8337914792', {name:sourav , email:[email protected]})

sendEvent

    Remember you need to call first initialize other wise it will throw an errror..
1.What it will do.
        Capture and send event on click.
2.Arguments
         count=2 // both required.
         First is eventType which will basically string.   
         Other is properties of event which will be an object you need to pass.     
3.Function Type: 
        Static Public  
        4.This is an example of how to call it .
Stelios.sendEvent('add to cart',{product id: 'uiui',cartItems:'10'})

reset

Remember you need to call first initialize other wise it will throw an errror..
1.What is it
        Call it when for example user logouts.
2.Arguments
        count=0.
3.Function Type: 
        Static Public  
        4.This is an example of how to call it .
Stelios.reset()