logo hsb.horse
avatar

Blog / Snippets / Tools

馬じぇべ

[ba.dʑe.be]

Profile of mktbsh. Software Engineer in Tokyo, Japan.

Blog 62 Snippets 37 Tools 19
  1. Blog
    TypeScript Monorepo Best Practices for 2026

    A practical TypeScript monorepo guide for 2026. Compare pnpm + Turborepo vs pnpm + Biome, when to use Project References, and when each setup makes sense.

  2. Snippets
    Batch Convert Images to AVIF with avifenc

    A Bash snippet that recursively scans jpg/jpeg/png files and converts them to .avif using avifenc.

  3. Snippets
    How to Use CSS href Attribute Selectors

    A CSS snippet using attribute selectors on the href attribute of anchor elements, including prefix match, suffix match, and substring match.

  4. Snippets
    Dynamic Import Caching

    Lightweight TypeScript implementation for caching dynamic imports. Handle multiple imports to the same path with a single Promise.

  5. Snippets
    File System API Permission Check

    Function to check and request permissions for browser File System API. Supports both read-only and read-write modes.

  6. Snippets
    Display Storage Capacity in Finder

    Toggle storage capacity display in macOS Finder with a keyboard shortcut.

  7. Snippets
    Node.js File Check

    Promise-based function to check if a path is a file in Node.js. Returns false on error.

  8. Snippets
    TypeScript p-limit Implementation

    TypeScript reimplementation of p-limit for controlling Promise concurrency. Achieve concurrency control without adding dependencies.

  9. Snippets
    React useSelection Hook

    Custom React hook for managing multi-item selection state. Type-safe handling of select all, partial selection, and individual selection.

All Tags

Tags