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

@sudobility/sudojo_types

v1.2.73

Published

TypeScript types for Sudojo API - Sudoku learning platform

Readme

@sudobility/sudojo_types

Shared TypeScript type definitions for the Sudojo Sudoku learning platform.

Installation

bun add @sudobility/sudojo_types @sudobility/types

@sudobility/types is a required peer dependency (also imported at runtime). The package is ESM-only.

Usage

import type { Board, Daily, Level, Technique } from '@sudobility/sudojo_types';
import { TechniqueId, successResponse, errorResponse } from '@sudobility/sudojo_types';
import { techniqueBitmaskOf, hasTechniqueInBitmask, formatTechniqueBitmask } from '@sudobility/sudojo_types';

Types

  • Entities: Board, Daily, Level, Technique, Learning, Challenge, Community, Strategy, TechniqueExample, TechniquePractice
  • Enums: TechniqueId (60 solving techniques, ids 1-60)
  • Requests/Responses: Create/update request and query-param types for each entity, plus count/stats response data
  • Solver: SolveData, SolverHints, SolverHintStep (areas, cells, links, groups, localization), ValidateData, GenerateData
  • Gamification & entitlements: GameSession, GameStartRequest, GameFinishResponse, badges, hasRequiredEntitlement()
  • Response helpers: successResponse(), errorResponse() (defined here); ApiResponse<T>, BaseResponse<T>, PaginatedResponse<T>, Optional<T> re-exported from @sudobility/types
  • Technique bitmasks (exact, BigInt): numeric techniques / techniques_bitfield fields lose low bits as JS numbers once a technique id >= 54 is set. So APIs also send a base-10 string, techniques_bitmask / techniques_bitfield_bitmask. Read with techniqueBitmaskOf(obj), test with hasTechniqueInBitmask() / techniqueIdsFromBitmask(), build with techniqueIdsToBitmask(), send with formatTechniqueBitmask(), parse with parseTechniqueBitmask(). hasTechnique() / addTechnique() are deprecated (lossy); techniqueToBit() remains for single bits. Request bitmask fields accept number | string, so send formatTechniqueBitmask(mask) for ids >= 54
  • Utilities: board strings, scrambling, belts, cell notation, time formatting, UUID validation

Development

bun run build        # Build ESM (dist/index.js + .d.ts)
bun run test         # Run tests once
bun run typecheck    # TypeScript check
bun run lint         # ESLint
bun run verify       # Typecheck + lint + test + build

Related Packages

  • @sudobility/sudojo_client -- React Query hooks for Sudojo API
  • @sudobility/sudojo_lib -- Business logic and game state hooks
  • sudojo_api -- Backend API server
  • @sudobility/sudojo_ui, @sudobility/sudojo_ocr -- UI components and OCR
  • sudojo_app / sudojo_app_rn / sudojo_extension / sudojo_bot -- Web, mobile, extension and bot clients
  • sudojo_solver -- C# solver service; authoritative for the solver JSON types

License

BUSL-1.1