{"id":47349,"library":"cryptoscan-provider","title":"Cryptoscan Provider","description":"WebSocket data provider library for real-time load data to Cryptoscan API. Current stable version is 4.3.0. Designed exclusively for Cryptoscan partners, it establishes WebSocket connections to send structured data objects, automatically extracting schema (keys and types) and appending as query parameters. Key differentiators: automatic schema detection, TypeScript support, environment-based configuration. Release cadence is not publicly documented; use is restricted to partners.","status":"active","version":"4.3.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","websocket","crypto","provider","typescript"],"install":[{"cmd":"npm install cryptoscan-provider","lang":"bash","label":"npm"},{"cmd":"yarn add cryptoscan-provider","lang":"bash","label":"yarn"},{"cmd":"pnpm add cryptoscan-provider","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Named export only; default import is not available.","wrong":"import createProcessData from 'cryptoscan-provider'","symbol":"createProcessData","correct":"import { createProcessData } from 'cryptoscan-provider'"},{"note":"DataObject is a TypeScript interface; use type import for better compilation.","wrong":"import { DataObject } from 'cryptoscan-provider'","symbol":"DataObject","correct":"import type { DataObject } from 'cryptoscan-provider'"},{"note":"CommonJS require must use destructuring to get named exports.","wrong":"const cryptoscanProvider = require('cryptoscan-provider')","symbol":"cryptoscan-provider (CommonJS)","correct":"const { createProcessData } = require('cryptoscan-provider')"}],"quickstart":{"code":"import { createProcessData } from 'cryptoscan-provider';\n\nconst processData = createProcessData();\n\nconst data = {\n  key: \"BTC-USDT\",\n  price: 50000,\n  volume: 100.5,\n  timestamp: 1234567890\n};\n\nconst id = processData(data);\nconsole.log('Generated ID:', id);","lang":"typescript","description":"Initializes the provider, processes a data object, and logs the generated ID."},"warnings":[{"fix":"Call createProcessData() with no arguments; configuration is now done via environment variables.","message":"Version 4.0.0 changed the signature of createProcessData from accepting a config object to no arguments.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Set PROVIDER_API_URL environment variable instead.","message":"The use of WebSocket URL via constructor argument was deprecated in v3.0.0.","severity":"deprecated","affected_versions":">=3.0.0 <4.0.0"},{"fix":"Ensure network access is available when processData is first called.","message":"The library establishes a WebSocket connection only upon first call to processData, not at import time.","severity":"gotcha","affected_versions":"all"},{"fix":"Always set PROVIDER_API_URL to the correct WebSocket server endpoint.","message":"The environment variable PROVIDER_API_URL must be set; otherwise it defaults to ws://localhost:8080 which is unlikely intended for production.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure every data object has a non-empty string 'key' property.","message":"Data objects must include a 'key' field; otherwise processData might behave unexpectedly.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'4.3.0':20 'api':15 'append':42 'automat':35,48 'base':55 'cadenc':58 'configur':56 'connect':29 'crypto':70 'cryptoscan':1,14,24 'current':16 'data':4,12,33 'design':21 'detect':50 'differenti':47 'document':62 'environ':54 'environment-bas':53 'establish':27 'exclus':22 'extract':36 'javascript':68 'key':38,46 'librari':6 'load':11 'object':34 'paramet':45 'partner':25,67 'provid':2,5,71 'public':61 'queri':44 'real':9 'real-tim':8 'releas':57 'restrict':65 'schema':37,49 'send':31 'stabl':17 'structur':32 'support':52 'time':10 'type':40 'typescript':51,72 'use':63 'version':18 'websocket':3,28,69","created_at":"2026-06-07T16:51:04.901628+00:00","updated_at":"2026-06-07T16:51:04.901628+00:00","problems":[{"fix":"Use named import: import { createProcessData } from 'cryptoscan-provider'","cause":"Incorrect import: used default import instead of named import.","error":"Uncaught TypeError: cryptoscan_provider_1.createProcessData is not a function"},{"fix":"Call createProcessData() with no arguments, as the library now expects no config object.","cause":"createProcessData() may have been called with an argument that is not a function or incorrectly initialized.","error":"TypeError: processData is not a function"},{"fix":"Set the PROVIDER_API_URL environment variable to the WebSocket server URL.","cause":"The environment variable is not set and no fallback is desired.","error":"Missing required environment variable: PROVIDER_API_URL"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"cryptoscan-provider","openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}