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

@dxtmisha/functional

v1.14.1

Published

A comprehensive library of utilities, base classes, and Vue 3 composables for reactive web development. Extends @dxtmisha/functional-basic with Composition API.

Readme

@dxtmisha/functional

npm version License: MIT Node.js Version

@dxtmisha/functional is a library of utilities, base classes, and composables for complex web development in Vue 3. The package operates on the foundation of @dxtmisha/functional-basic, providing reactive wrappers and architectural solutions designed specifically for the Vue ecosystem (Composition API).

Why this library?

Every modern frontend application inevitably faces the same set of challenges: managing HTTP requests, localization, dates, cookies, caching, loading states, and side effects.

When developers solve these tasks locally within components, it often leads to code duplication, bloated .vue files, and memory leaks from forgotten subscriptions. functional solves this by moving business logic into ready-made reactive abstractions. You simply call the necessary composable or class, and under the hood, the library manages ref dependencies, monitors the Vue lifecycle, and maintains strict TypeScript typing.

What does it do?

For network requests (API) — a set of composables (useApiGet, useApiPost, useApiRequest, etc.) that encapsulate server interactions. They return a fully reactive object with loading states, errors, and fetched data. They intelligently handle response caching, headers, and automatic cancellation of outdated requests.

For browser state management — convenient reactive hooks (useStorageRef, useSessionRef, useCookieRef, useHashRef) that seamlessly bind a Vue variable to LocalStorage, URL hash, or a cookie. It automatically synchronizes with browser storage and reacts across tabs.

For geolocation and internationalization — utilities like useTranslateRef, useGeoIntlRef, and DatetimeRef that automatically respond strictly to changes in global environment settings (language, currency, region) and dynamically rebuild forms, dates, and translations without custom event listeners.

For UI component architecture — a powerful system of base classes (DesignAbstract, DesignComp, DesignAsyncAbstract) that allows extracting complex internal component logic into separate, testable files. This makes .vue templates beautifully clean and business features highly reusable.

For auxiliary utilities — specialized reactive modules for SEO tags (useMeta), inter-tab real-time communication (useBroadcastValueRef), robust loading indicators (useLoadingRef), and executing asynchronous operations cleanly in the Vue render cycle (computedAsync, toComputed).

Installation

npm install @dxtmisha/functional

Quick Start

import { useGeoIntlRef, useStorageRef, useApiRef } from '@dxtmisha/functional'

export default {
  setup() {
    // Reactive geolocation and formatting
    const { country, language, intl } = useGeoIntlRef()

    // Reactive localStorage with auto-sync across tabs
    const { value: settings, set: setSettings } = useStorageRef('app-settings', {
      theme: 'dark'
    })

    // Reactive API requests with caching and loading states
    const { data, loading, error, reload } = useApiRef('/api/users')

    return { intl, settings, setSettings, data, loading }
  }
}

Principles

  • Full Composition API integration — every utility is designed with Vue 3's reactivity system in mind, heavily utilizing ref, computed, and lifecycle hooks.
  • Separation of concerns — ideologically encourages extracting validation, state management, and side-effects into specialized classes, maintaining "thin" components.
  • Type safety — provides 100% TypeScript type coverage between APIs, storages, and the UI, protecting codebase scaling with smart type inference.
  • Predictable resource management — safely manages subscriptions and frees memory. When a component is unmounted, associated tasks and watchers are cleanly terminated.

Documentation

Full API reference, examples, and guides:

📖 https://dxtmisha.github.io/dxt-ui/?path=/docs/dxtmisha-en-functional-about-library--docs

Difference from @dxtmisha/functional-basic

  • @dxtmisha/functional-basic — core utilities, no framework dependencies. Use this with vanilla JS, React, or any non-Vue stack, or when building a library.
  • @dxtmisha/functional — extends functional-basic with Vue 3 composables and reactive wrappers. Use this when building complex Vue / Nuxt applications.

License

MIT