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

@vahidamirian/vue-datepicker

v1.0.0

Published

High-performance, customizable Jalali/Gregorian/Hijri date picker for Vue 3. Built on the shared @vahidamirian/datepicker-core headless engine.

Readme

@vahidamirian/vue-datepicker

High-performance, customizable Jalali / Gregorian / Hijri date picker for Vue 3, built on the shared @vahidamirian/datepicker-core headless engine — the same calendar math and selection logic that powers @vahidamirian/ngx-jalali-datepicker, so behavior is identical across frameworks.

Install

npm install @vahidamirian/vue-datepicker @vahidamirian/datepicker-core vue

Setup

Configure the calendars once via the plugin (the first is the default):

import { createApp } from 'vue';
import { NdpDatepickerPlugin } from '@vahidamirian/vue-datepicker';
import { JalaliCalendarAdapter, GregorianCalendarAdapter } from '@vahidamirian/datepicker-core';
import '@vahidamirian/vue-datepicker/styles.css';

createApp(App)
  .use(NdpDatepickerPlugin, {
    adapters: [new JalaliCalendarAdapter(), new GregorianCalendarAdapter('en-US')],
  })
  .mount('#app');

Or pass calendars per-component with the :adapters prop (no plugin needed).

Use

<script setup lang="ts">
import { ref } from 'vue';
import { NdpDatepicker, NdpDateInput, NdpTimeInput } from '@vahidamirian/vue-datepicker';
import type { DateRange } from '@vahidamirian/datepicker-core';

const value = ref<DateRange>({ start: null, end: null });
const time = ref<Date | null>(null);
</script>

<template>
  <!-- Single date -->
  <NdpDatepicker v-model="value" />

  <!-- Range, two months, no past dates -->
  <NdpDatepicker v-model="range" mode="range" :number-of-months="2" :min="today" />

  <!-- Typed input with a calendar popover -->
  <NdpDateInput v-model="value" />

  <!-- Time-only field -->
  <NdpTimeInput v-model="time" :minute-step="15" />

  <!-- Custom day cell via a scoped slot -->
  <NdpDatepicker v-model="value">
    <template #day="{ day }">{{ day.label }}<i v-if="day.isWeekend" /></template>
  </NdpDatepicker>
</template>

v-model binds the DateRange value; v-model:calendar binds the active calendar id. @date-selected fires on every concrete pick (handy for closing a dropdown).

Components

NdpDatepicker, NdpDateInput, NdpTimePicker, NdpTimeInput, NdpCalendarMonth, NdpCalendarPeriod — plus the useDatepicker composable to build a fully custom UI on the same state machine.

Theming, calendars, dual-script display, typed input, and time-of-day all work exactly as documented in the main README — the API mirrors the Angular package.

License

MIT © Vahid Amirian