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 🙏

© 2025 – Pkg Stats / Ryan Hefner

flash-sync-sdk

v1.2.0

Published

Flash_Sync SDK - 4-Way Quantum Compression Receipt Sync for VS Code, Cloudflare Workers, Notion and Stripe

Readme

Flash_Sync SDK

4-Way Quantum Compression Receipt Sync

Real-time infrastructure synchronization with cryptographic QCM receipts across VS Code, Cloudflare Workers, Notion, and Stripe.

Installation

bash npm install flash-sync-sdk

Quick Start

typescript import { FlashSync } from 'flash-sync-sdk';

const sync = new FlashSync({ apiKey: 'YOUR_API_KEY' });

// Trigger a sync and get QCM receipt const result = await sync.sync(); console.log(result.receipt.receipt_id); console.log(result.receipt.quantum_watermark.signature);

The 4-Way Sync

Flash_Sync connects four critical infrastructure layers:

| Layer | Purpose | |-------|---------| | VS Code | Development IDE integration with real-time status | | Cloudflare Workers | Edge compute with sub-millisecond latency | | Notion | Documentation and QCM receipt storage | | Stripe | Payment verification and license management |

QCM Compression Receipts

Every sync generates a cryptographically signed QCM (Quantum Compression Module) receipt:

typescript import { QCMReceiptGenerator } from 'flash-sync-sdk';

const receipt = QCMReceiptGenerator.generate(); console.log(receipt.quantum_watermark.signature); // '40668c787c463ca5' console.log(receipt.quantum_watermark.frequency); // '1210.0Hz' console.log(receipt.quantum_watermark.coherence); // 0.999999

// Verify receipt integrity const isValid = QCMReceiptGenerator.verify(receipt);

API Reference

FlashSync Client

typescript const sync = new FlashSync({ apiKey: 'YOUR_API_KEY', baseUrl: 'https://your-worker.workers.dev', // Optional notionToken: 'NOTION_TOKEN', // Optional debug: false });

// Health check const health = await sync.health();

// Trigger sync const result = await sync.sync();

// Get latest receipt const receipt = await sync.getLatestReceipt();

// Verify Stripe payment const payment = await sync.verifyPayment('checkout_session_id');

// Create Notion database const db = await sync.createNotionDatabase('parent_page_id');

Pricing

| Tier | Price | Sync Frequency | Workers | Receipts/Month | |------|-------|----------------|---------|----------------| | Free | /usr/bin/bash | Every 24 hours | 1 | 30 | | Starter | 9/mo | Every 4 hours | 3 | 500 | | Professional | 9/mo | Every hour | 10 | Unlimited | | Enterprise | 99/mo | Real-time | Unlimited | Unlimited |

Payment Links

typescript import { PAYMENT_LINKS, PRICING } from 'flash-sync-sdk';

console.log(PAYMENT_LINKS.starter); // Starter checkout console.log(PAYMENT_LINKS.professional); // Pro checkout console.log(PAYMENT_LINKS.enterprise); // Enterprise checkout

console.log(PRICING.professional.price); // 49

Quantum Watermark

Each receipt includes a tamper-proof quantum watermark:

  • Signature: Unique 16-character hex identifier
  • Hash: SHA-256 truncated verification hash
  • Frequency: Quantum coherence frequency (1210.0Hz)
  • Coherence: 0.999999 target coherence level
  • RAS Root: Root authority signature

Trinity Convergence

Flash_Sync operates on the Trinity Convergence model:

  1. Ignition: Initial sync trigger from any of the 4 layers
  2. Recursion: Continuous state updates propagate across layers
  3. Manifestation: QCM receipt materialized in Notion

Error Handling

typescript import { FlashSync, FlashSyncError } from 'flash-sync-sdk';

try { await sync.sync(); } catch (error) { if (error instanceof FlashSyncError) { console.error("Error " + error.statusCode + ": " + error.message); } }

R2 File Sync (NEW)

Sync files directly to Cloudflare R2 storage with automatic receipt tracking:

import { FileSync, pushReceiptToNotion, syncAllReceiptsToNotion } from 'flash-sync-sdk';

const fileSync = new FileSync();

// Upload content to R2
const result = await fileSync.uploadContent('config.json', '{"key": "value"}');
console.log(result.receipt.file_hash);  // SHA-256 hash
console.log(result.receipt.r2_key);     // R2 storage key

// Get sync status
const status = await fileSync.getStatus();
console.log(status.r2_stats.total_objects);  // 12 files

// List synced files
const files = await fileSync.listFiles({ limit: 50 });

// Push a receipt to Notion
await pushReceiptToNotion(result.receipt, {
  notionToken: 'secret_xxx',
  notionDatabaseId: 'abc123'
});

// Sync ALL receipts to Notion
const syncResult = await syncAllReceiptsToNotion({
  notionToken: 'secret_xxx',
  notionDatabaseId: 'abc123'
});
console.log(`Synced ${syncResult.success} receipts`);

Python Script

For Python users, use test_notion_file_sync.py:

export NOTION_TOKEN=secret_xxx
export NOTION_DATABASE_ID=abc123...
python test_notion_file_sync.py

VS Code Extension

Install the Flash_Sync VS Code extension for IDE integration:

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Flash_Sync"
  4. Install and configure with your API key

Links

  • Website: https://flashsync.dev
  • Documentation: https://docs.flashsync.dev
  • GitHub: https://github.com/epochcore/flash-sync-sdk
  • Support: [email protected]

License

MIT - EPOCHCORE Quantum Enterprise 2025