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

@sailboat-computer/validation

v1.1.56

Published

Validation framework for sailboat computer v3

Readme

@sailboat-computer/validation

Validation framework for sailboat computer v3 with marine-specific rules and data quality assessment.

Overview

This package provides a comprehensive validation framework designed specifically for marine environments. It includes:

  • Multi-layer validation strategy (Physical → Operational → Quality)
  • Marine-specific validation rules for all sensor types
  • Cross-sensor validation and consistency checks
  • Data source prioritization and confidence scoring
  • Performance optimization with batch processing and caching

Current Status

Phase 1 Complete: Core types and interfaces defined 🔄 Phase 2 In Progress: Implementation of validation engine and rules

Completed Features

  • Comprehensive TypeScript type definitions
  • Marine-specific validation ranges for:
    • Navigation sensors (GPS, compass, wind, depth)
    • Environmental sensors (temperature, pressure, humidity)
    • Electrical systems (48V/12V batteries, solar)
    • Engine and mechanical systems
    • Fluid systems (watermaker, tanks, anchor)
  • Validation result structures
  • Confidence calculation framework
  • Sensor health assessment interfaces
  • Data source prioritization configuration

Planned Features

  • [ ] Physical validation layer implementation
  • [ ] Operational validation layer implementation
  • [ ] Quality assessment layer implementation
  • [ ] Marine-specific validation rules
  • [ ] Cross-sensor validation engine
  • [ ] Data source prioritization engine
  • [ ] Performance optimization features
  • [ ] Health monitoring integration

Installation

npm install @sailboat-computer/validation

Usage

import { 
  ValidationResult, 
  RawSensorData, 
  ValidatedSensorData,
  MarineValidationRanges 
} from '@sailboat-computer/validation';

// Example usage will be added when implementation is complete

Marine-Specific Features

Physical Validation

  • Range validation based on marine equipment specifications
  • Rate of change validation for sensor readings
  • Sensor specification compliance checking

Operational Validation

  • Context-dependent validation (sailing vs anchored vs maintenance)
  • Cross-sensor consistency checks
  • Temporal consistency validation

Quality Assessment

  • Confidence scoring based on multiple factors
  • Sensor health assessment
  • Data source prioritization

Architecture

The validation framework follows a three-layer architecture:

  1. Physical Layer: Basic range and specification validation
  2. Operational Layer: Context-aware and cross-sensor validation
  3. Quality Layer: Confidence scoring and source prioritization

Development

# Build the package
npm run build

# Run tests
npm test

# Watch mode for development
npm run build:watch

Contributing

This package is part of the sailboat computer v3 project. Please follow the contract-first development approach and ensure all changes are properly tested.

License

MIT