Skyflow’s Javascript SDK can be used to securely collect, tokenize, and reveal sensitive data in the browser without exposing your front-end infrastructure to sensitive data.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CharmContext = Charm.getUser("johndoe@email.com") | |
if("fintech startups" in CharmContext.audiences) { | |
// Do something amazing! | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
console.log(window.parent) | |
window.parent.postMessage('WHATS UP', '*') | |
var style = document.createElement('style'); | |
style.innerHTML = '.charm-data-highlighted { border: 1px solid magenta; }'; | |
document.getElementsByTagName('head')[0].appendChild(style); | |
window.onmouseover = function(event) { | |
console.log('mouseenter') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import skyflow from 'skyflow-js' | |
/* --------------- snippet 1: easily tokenize data and get format-preserving tokens --------------- */ | |
await skyflow.insert([ | |
{ | |
table: "cards", | |
fields: { | |
cardholderName: "John Doe", | |
cardNumber: "4111 1111 1111 1111", | |
expiryDate: "10/23", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Top level help message should print (when '$ skyflow' or '$ skyflow --help' is invoked) | |
Commands: | |
skyflow templates # Search and view different skyflow templates | |
skyflow schema # tools for building a custom schema | |
skyflow vault # create and list vaults | |
Options: | |
[--help] # Type --help after any command for usage information | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"example schema", | |
"description":"example schema with 1 table", | |
"workspaceID":"TODO", | |
"vaultSchema":{ | |
"schemas":[ | |
{ | |
"name":"persons", | |
"fields":[ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"simple vault example", | |
"description":"A vault with 1 table", | |
"vaultSchema":{ | |
"schemas":[ | |
{ | |
"name":"table 1", | |
"fields":[ | |
{ | |
"name":"skyflow_id", |