• v7.19.5 fae88d0fdd

    v7.19.5 Stable

    dpsifr released this 2026-02-20 02:06:33 +01:00 | 396 commits to main since this release

    Downloads
  • v7.19.2 9d5a74abe1

    v7.19.2 Stable

    dpsifr released this 2026-02-19 00:38:59 +01:00 | 400 commits to main since this release

    Downloads
  • v7.19.1 cc286ba2fc

    v7.19.1 Stable

    dpsifr released this 2026-02-18 02:26:22 +01:00 | 402 commits to main since this release

    What's New

    • Fixed WASM embedding engine binary not being included in the npm package (the pkg/ directory's package.json and .gitignore were causing npm to exclude the Candle WASM files)
    • Added ./embeddings/wasm export subpath for clean ESM imports of the WASM embedding engine

    Full Changelog: https://github.com/soulcraftlabs/brainy/compare/v7.19.0...v7.19.1

    Downloads
  • v7.19.0 21371786fb

    v7.19.0 Stable

    dpsifr released this 2026-02-18 02:04:15 +01:00 | 403 commits to main since this release

    What's New

    • stddev and variance aggregation ops — incremental, O(1) per update using Welford's online algorithm for numerically stable running variance
    • AggregationProvider interface extensionsdefineAggregate, removeAggregate, restoreState, serializeState methods for native plugin integration
    • New type exportsAggregateGroupState and MetricState now exported from package root
    • Plugin documentation — aggregation provider docs, analytics providers (HyperLogLog, t-digest, CountMin, anomaly detection), architecture guide

    Full Changelog: https://github.com/soulcraftlabs/brainy/compare/v7.18.0...v7.19.0

    Downloads
  • v7.18.0 4602960e86

    v7.18.0 Stable

    dpsifr released this 2026-02-17 01:58:31 +01:00 | 405 commits to main since this release

    Aggregation Engine

    New write-time incremental aggregation engine for analytics and financial reporting.

    Features

    • Aggregation operations: SUM, COUNT, AVG, MIN, MAX with GROUP BY
    • Time windows: Hour, day, week, month, quarter, year, and custom intervals (ISO 8601)
    • Write-time incremental: O(1) read performance — running totals maintained on every add/update/delete
    • Unified API: brain.find({ aggregate: 'name' }) integrates with the existing query system
    • Materialization: Aggregate results auto-materialized as NounType.Measurement entities, visible in OData, Sheets, SSE, and webhooks
    • Plugin acceleration: 'aggregation' provider key for native plugin implementations
    • Persistence: Definitions and state survive restarts; definition changes auto-detected via hash comparison

    API

    brain.defineAggregate({
      name: 'monthly_spending',
      source: { type: NounType.Event, where: { domain: 'financial' } },
      groupBy: ['category', { field: 'date', window: 'month' }],
      metrics: {
        total: { op: 'sum', field: 'amount' },
        count: { op: 'count' },
        average: { op: 'avg', field: 'amount' }
      }
    })
    
    const results = await brain.find({
      aggregate: 'monthly_spending',
      where: { category: 'food' }
    })
    

    New Exports

    AggregationIndex, AggregateMaterializer, AggregateDefinition, AggregateMetricDef, AggregateSource, AggregateQueryParams, AggregateResult, AggregationOp, TimeWindowGranularity, GroupByDimension, AggregationProvider, MetricState, AggregateGroupState

    Downloads
  • v7.17.0 d453539a4d

    v7.17.0 Stable

    dpsifr released this 2026-02-10 01:13:52 +01:00 | 408 commits to main since this release

    Downloads
  • v7.16.0 e9f6a1b461

    v7.16.0 Stable

    dpsifr released this 2026-02-09 21:08:34 +01:00 | 410 commits to main since this release

    Downloads
  • v7.15.5 edb5ec4696

    v7.15.5 Stable

    dpsifr released this 2026-02-02 18:29:53 +01:00 | 412 commits to main since this release

    Downloads
  • v7.15.4 a88268fd25

    v7.15.4 Stable

    dpsifr released this 2026-02-02 18:21:31 +01:00 | 414 commits to main since this release

    Downloads
  • v7.15.3 0ec3d85c39

    v7.15.3 Stable

    dpsifr released this 2026-02-02 17:52:53 +01:00 | 416 commits to main since this release

    Downloads