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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@myndscipt/qflow

v1.0.1

Published

High-performance synchronization primitives for TypeScript

Readme

QFLOW & QScript

A high-performance async framework with semantic intelligence for AI-driven development

QFLOW is a modern, high-performance framework for building async applications with predictable performance characteristics. QScript extends this foundation with a semantically-aware language design specifically optimized for AI-driven development.

Vision

The QFLOW ecosystem offers developers and AI assistants a unified approach to development that combines high-performance async primitives with semantic awareness:

  • QFLOW provides the optimized async runtime and core primitives
  • QScript builds on this foundation with semantic type relationships and AI-first design

Key Features

QFLOW Core Features

  • 🚀 Blazing Fast: Significantly outperforms native Promises (+29.9% overall)
  • 📊 Predictable Performance: Explicit synchronization points for precise control
  • 🔄 Reactive Programming: Built-in reactive event system
  • 🧩 Hybrid Programming Model: Multiple patterns for different use cases
  • 🛠️ Resource Management: First-class support for resource monitoring and control

QScript Extensions

  • 🧠 Semantic Thesaurus: AI-friendly type relationships and concept mapping
  • 📦 Versionless Dependencies: QSON system eliminates version management headaches
  • 🔍 Self-Healing Errors: Context-aware error messages with automated fixes
  • 📐 Standardized Structure: Consistent project organization for AI understanding
  • 🌉 Intelligent Bridges: Standardized connections between semantic domains

Performance

According to our benchmarks, QFLOW significantly outperforms native Promises:

| Operation | Performance Improvement | |-----------|-------------------------| | Creating promises | +12.2% | | Chaining operations | +58.1% | | Parallel operations | +52.1% | | Overall | +29.9% |

Installation

# For now, install QFLOW core
npm install qflow

# QScript coming soon!

Quick Start

import { execute, Fast, QSYNC, QTask } from 'qflow';

// Pattern 1: Using execute() with Fast
function getData(id: string): Fast<Data> {
  return execute(() => {
    const result = fetchData(id).wait();
    return processData(result);
  });
}

// Pattern 2: Task-based with QSYNC
function processItem(item: Item): Fast<void> {
  const qsync = QSYNC.getInstance();
  
  const task: QTask<void> = {
    id: `process-${item.id}`,
    category: 'processing',
    name: `Process ${item.id}`,
    fn: () => validateAndSave(item)
  };

  return qsync.schedule(task);
}

// Pattern 3: Fast chaining
function updateRecord(id: string): Fast<Record> {
  return Fast.resolve(id)
    .then(fetchRecord)
    .then(updateFields)
    .then(saveRecord);
}

Documentation

For detailed documentation, see:

Examples

The examples directory contains various examples demonstrating QFLOW usage:

  • Basic Usage
  • Hybrid Patterns
  • Reactive Programming
  • Interactive Demo
  • Real-world Applications

Core Components

QFast

A high-performance alternative to JavaScript Promises with explicit synchronization points.

const data = fetchData().wait(); // Explicit synchronization point

QEvent

A powerful reactive event system for event-driven programming.

const userEvents = new QEvent<UserAction>();
userEvents.on(action => handleUserAction(action));
userEvents.emit({ type: 'login', userId: '123' });

const qevent = QEvent.getInstance();
qevent.on('user:login', (data) => handleLogin(data));
qevent.emit('user:login', { userId: '123' });

QSYNC

Task scheduling and synchronization system for coordinating asynchronous operations.

const task = qsync.createTask('data-processing', () => {
  return processLargeDataset();
});

qsync.schedule(task);

Database Adapters

Database abstraction layer with optimized async operations.

// Create a database connection
const db = new PostgreSQLAdapter({
  host: 'localhost',
  port: 5432,
  username: 'postgres',
  password: 'password',
  database: 'mydb'
});

// Connect and execute a query
db.connect().sync();
const users = db.query('SELECT * FROM users').sync();

Semantic Definitions

QSON System

Versionless dependency management for evolving libraries and frameworks.

semantic.define('neural.pathway', {
    concepts: ['connection', 'synapse', 'link'],
    related: ['neural.node', 'neural.network'],
    constraints: ['bidirectional', 'weighted']
});

AI-Friendly Error System

Context-aware error messages with self-healing capabilities.

// Instead of "Cannot read properties of undefined"

// QScript provides:

/* Error: Missing neural connection source Context: When creating a neural pathway, both source and target must be defined Suggestion: Check if the 'nodes' array is populated before accessing elements */

QFLOW

High-performance synchronization primitives for TypeScript.

Features

  • Fast synchronization primitives
  • Type-safe Promise alternatives
  • Performance optimizations
  • Database integrations

Usage

Initialize a QFLOW project with the command palette: Ctrl+Shift+P > QFLOW: Initialize Project

Examples

import { Fast, execute } from './core/QFast';

// Synchronous execution
function calculateResult(): Fast<number> {
  return execute(() => {
    // Your high-performance code here
    return 42;
  });
}

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

License

MIT