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

@real1ty-obsidian-plugins/utils

v2.34.0

Published

Shared utilities for Obsidian plugins

Readme

@real1ty-obsidian-plugins/utils

Shared utilities for Obsidian plugins - a comprehensive collection of reusable functions and helpers to streamline Obsidian plugin development.

Installation

npm install @real1ty-obsidian-plugins/utils
# or
pnpm add @real1ty-obsidian-plugins/utils
# or
yarn add @real1ty-obsidian-plugins/utils

Features

  • Date & Time Utilities: Recurrence handling, date formatting, and time operations
  • File Operations: File system helpers, path utilities, and content manipulation
  • String Utilities: Text processing, sanitization, and formatting functions
  • Async Utilities: Promise helpers and async operation management
  • Batch Operations: Efficient bulk processing utilities
  • Settings Store: Reactive settings management with RxJS
  • Testing Utilities: Mock factories and test helpers for Obsidian plugins
  • Link Parser: Markdown link parsing and manipulation
  • Child Reference Utils: Hierarchical content reference management

Usage

import {
  formatDateTimeForInput,
  generateUniqueFilePath,
  SettingsStore
} from '@real1ty-obsidian-plugins/utils';

// Date utilities
const formattedDate = formatDateTimeForInput('2023-12-25T10:30:00');

// File operations
const uniquePath = await generateUniqueFilePath(app, folder, 'my-file');

// Settings management
const settingsStore = new SettingsStore(defaultSettings);
settingsStore.settings$.subscribe(settings => {
  // React to settings changes
});

Testing Utilities

For testing your Obsidian plugins:

import {
  createMockApp,
  createMockFile,
  setupTestEnvironment
} from '@real1ty-obsidian-plugins/utils/testing';

// Set up test environment
setupTestEnvironment();

// Create mock Obsidian instances
const mockApp = createMockApp();
const mockFile = createMockFile('test.md');

API Reference

Available Modules

The package is organized by domain/module:

Settings

  • settings-store - Reactive settings management with Zod validation
  • settings-ui-builder - Declarative UI builder for settings tabs

File Operations

  • file - File path utilities, folder notes, and file context
  • file-operations - File system operations and helpers
  • child-reference - Hierarchical reference management
  • frontmatter - Frontmatter parsing and serialization
  • link-parser - Wiki link parsing utilities
  • templater - Templater plugin integration

Date Operations

  • date - Date/time formatting and manipulation
  • date-recurrence - Recurrence pattern handling

Async Utilities

  • async - Promise utilities and async helpers
  • batch-operations - Bulk processing functions

String Utilities

  • string - String processing functions

Core Utilities

  • evaluator-base - Base evaluator class
  • generate - ID generation utilities

Testing

  • testing - Testing mocks and utilities

TypeScript Support

This package is written in TypeScript and includes full type definitions. All utilities are properly typed for the best development experience.

License

MIT