Skip to content
PluginStats

@hypequery/datasets weekly downloads statistics

By hypequery (2 listings) · npm · MCP servers

Code-first TypeScript semantic layer for ClickHouse datasets, metrics, multi-tenancy, and AI agents

View on npm Stale · Oct 18, 2026

@hypequery/datasets has 6,729 recorded weekly downloads on npm.

Weekly downloads
6,729
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
Among tracked npm listings

About @hypequery/datasets

@hypequery/datasets

The code-first TypeScript semantic layer for ClickHouse.

@hypequery/datasets gives product teams one trusted definition for dimensions, measures, metrics, relationships, time grains, and multi-tenant isolation. Keep analytics meaning in the same repo as your application, then reuse it in backend jobs, HTTP APIs, React dashboards, and MCP tools for AI agents.

It builds on the @hypequery/clickhouse type-safe query builder, so semantic models and direct ClickHouse queries share generated schema types.

No YAML project. No separate semantic-layer server. Just typed, testable product analytics in code.

Install

npm install @hypequery/datasets @hypequery/clickhouse

Define analytics once

import { dataset, dimension, measure } from '@hypequery/datasets';

export const Orders = dataset('orders', {
  source: 'orders',
  tenantKey: 'tenant_id',
  timeKey: 'created_at',
  dimensions: {
    region: dimension.string(),
    status: dimension.string(),
    createdAt: dimension.timestamp({ column: 'created_at' }),
  },
  measures: {
    revenue: measure.sum('amount'),
    orderCount: measure.count('id'),
    p95OrderValue: measure.percentile('amount', 0.95),
    latestStatus: measure.argMax('status', 'createdAt'),
  },
});

export const revenue = Orders.metric('revenue', {
  measure: 'revenue',
  label: 'Revenue',
});

The model is now the contract. Callers can only use the dimensions, measures, filters, and relationships you publish. A declared tenantKey requires trusted runtime scope and rejects unscoped execution.

Query it anywhere

const result = await analytics.execute(
  revenue,
  {
    dimensions: ['region'],
    orderBy: [{ field: 'revenue', direction: 'desc' }],
    limit: 10,
  },
  {
    runtime: { tenant: session.accountId },
    abortSignal: request.signal,
  },
);

Passing an AbortSignal cancels the semantic query and forwards cancellation to the backing query builder/database request.

The same definition can become:

  • a named KPI or flexible dataset query;
  • a validated @hypequery/serve endpoint;
  • a typed @hypequery/react hook;
  • an OpenAI, AI SDK, or MCP tool schema;
  • a stable semantic contract for CI and deployment.

buildCanonicalSemanticQuerySchemas() compiles the same catalog into strict dataset and metric Zod validators, JSON Schemas, and a deterministic manifest hash. It accepts either live local Dataset definitions or an already-normalized catalog from a hosted activation, so Serve and MCP do not maintain separate field or operator lists.

Analytics teams actually need

  • sums, counts, distinct counts, averages, min, and max;
  • percentiles, median, argMax, argMin, standard deviation, and variance;
  • filtered measures and derived metric formulas;
  • daily through yearly time grains;
  • fail-closed multi-tenant analytics;
  • one-hop typed belongsTo and hasOne dimensions;
  • validated filtering, sorting, and pagination.

See the current capability matrix for exact syntax and the complete shipped surface.

Why code-first

Metric changes travel through the workflow your team already trusts: TypeScript, code review, tests, CI, and version control. Backend, frontend, and agent consumers stop maintaining their own definition of “revenue.”

Learn more

Contributing

For repository contributors, see the implementation guide for module boundaries and verification requirements, and the testing review for coverage, CI gates, and remaining gaps.

License

Apache-2.0.

Description from the npm listing.

  • semantic-layer
  • clickhouse
  • typescript
  • analytics
  • query-builder
  • orm
  • metrics
  • datasets
  • multi-tenant
  • mcp
  • ai-agents

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@hypequery/datasets weekly downloads on npm, last 90 days: 6,729 weekly downloads as of Oct 18, 2026.@hypequery/datasetsWeekly downloads on npm · Last 90 days6,729downloads / week6K6.2K6.4K6.6K6.8K7K7.2K7.4K7.6KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
@hypequery/datasets weekly downloads on npm, last 90 days: 6,729 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

@hypequery/datasets weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.@hypequery/datasetsWeekly downloads growth on npm6,729downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@hypequery/datasets weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

@hypequery/datasets has no ranking history on npm yet.@hypequery/datasetsnpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Oct 18, 2026pluginstats.com
@hypequery/datasets has no ranking history on npm yet.

Listing placement

All npm2,422 listings · 122 pages · 1,212 shown · page 55, #1 (overall #1,081)
All npm: every listing in weekly downloads order

Listing placement

MCP servers301 listings · 16 pages · page 11, #12 (overall #212)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (1)
Recent weekly downloads observations for @hypequery/datasets
Date (UTC)Weekly downloadsChange vs. previous
6,729—

Similar npm MCP servers plugins

All 20 @hypequery/datasets alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@hypequery/datasets. First seen Oct 22, 2026; last successful collection Oct 22, 2026. See the methodology.