Loading
Code Deb

Code Deb Nepali Calendar SDK

Verified registry: @codedeb/nepali-calendar@0.2.1 was confirmed publicly (version metadata, latest dist-tag and tarball).

Technical documentation for 27 Code Deb JavaScript and TypeScript SDKs, Verify and MCP APIs and the developer platform. Browse API references, authentic implementation examples and provider boundaries. Check actual npm availability before installing.

Verified registry: @codedeb/nepali-calendar@0.2.1 was confirmed publicly (version metadata, latest dist-tag and tarball).

Published npm package: @codedeb/nepali-calendar@0.2.0 • ESM: browser and Node.js 20+ • Types: bundled TypeScript declarations.

The Code Deb Nepali Calendar is built from the existing calendar engine originally created by Aayush Acharya. The website uses the historically attributed BS dataset and an extended conversion table; the SDK now exposes real source entrypoints for conversion, business days, recurrence and iCalendar export.

  • Canonical docs: https://www.codedeb.com/docs/nepali-calendar
  • Interactive calendar: https://www.codedeb.com/tools/nepali-calendar
  • Source package: packages/sdk-nepali-calendar/src/index.ts
  • Scheduling module: packages/sdk-nepali-calendar/src/scheduling.ts
  • First public npm release: 20 November 2026, version 0.2.0.

Install

npm install @codedeb/nepali-calendar

The published package exports @codedeb/nepali-calendar and @codedeb/nepali-calendar/scheduling. A dedicated React/Expo picker UI is not included.

There is no required hosted API or database for conversion. The scheduling helpers accept caller-owned holiday records and explicit weekend policies.

Convert BS and AD

import {toBS,toAD,formatLocalizedDate,getBsMonthCalendar,calendarEvidence}
  from '@codedeb/nepali-calendar';

const bs=toBS('2026-04-14'); // {year:2083,month:1,day:1}
const ad=toAD({year:2083,month:1,day:1}); // '2026-04-14'
const localized=formatLocalizedDate(bs,'ne','YYYY-MM-DD');
const grid=getBsMonthCalendar(2083,1).weeks;
const provenance=calendarEvidence(1975);

The SDK uses its attributed historical snapshot for BS 1975–2083 and a separately sourced extended table for BS 2084–2100. Month-length agreement has been tested across the overlapping 109 years. Date strings are civil dates, not UTC instants. Out-of-range dates throw instead of guessing.

Scheduling, holidays and business calendars

import {addBusinessDays,expandBsRecurrence,isBusinessDay,toIcsCalendar}
  from '@codedeb/nepali-calendar/scheduling';

const start={year:2083,month:1,day:1};
const nextWorkday=addBusinessDays(start,1,{weekendDays:[0,6]});
const monthlyVisits=expandBsRecurrence(start,{
  frequency:'monthly',interval:1,count:6,dayOfMonth:1
});
const calendarFile=toIcsCalendar([{
  uid:'visit-2083-01@example.com',date:start,title:'Field sales visit'
}]);

Weekend policy is configurable. Holidays are not guessed: a CalendarHoliday record includes a date, name, scope (national, province, local, institution or community), original source URL and verification status. The default business-day policy considers only verified national records and the configured weekend. Consumers must explicitly include local or institution-specific closures.

Recurring dates are bounded and skip nonexistent month days; never extrapolate a BS calendar table. iCalendar events are exported as AD all-day dates with escaped RFC5545 text fields.

React and Expo use

The functional conversion helpers are portable TypeScript. A React application can pair them with a native <input type="date"> and render the BS output. A React Native/Expo app can pass a validated ISO civil date into toBS. See the on-page examples at Developers / Nepali Calendar.

A dedicated published NepaliDatePicker component, Expo picker package and their CSS are not included in this release. Do not import paths that do not exist.

Package boundary

Source entryImplemented features
src/index.tsBS/AD conversion, formatting, date arithmetic, month views, fiscal-year helpers and source evidence
src/scheduling.tsBusiness-day checks and offsets, holiday scope, daily/weekly/monthly/yearly recurrence and iCalendar export

The public npm tarball includes third-party notices. The Code Deb SDK Noncommercial License 1.0 applies to Code Deb-owned material; third-party licenses and original source attribution remain in force. Commercial use requires a separate agreement.

Working Code Deb integration

The interactive Code Deb Calendar supports BS/AD browsing and selected BS 2083 referenced holidays. Public holiday coverage is incomplete; a missing record never proves a business day. Consult official government notices for scope-specific holiday application.

Authorship and source attribution

Original creator and project author: Aayush Acharya.

Product, website integration, documentation and published package distribution: Code Deb.

Calendar data and third-party materials: Historical month data is attributed to its upstream contributors and Apache-2.0-licensed source. Product branding and creator credit do not replace third-party authorship, licensing or source citations.

Accuracy, provenance and limitations

FeatureSDK scopeImportant caveat
SDK date conversionBS 1975–2083 (historical), extended through BS 2100Separate source provenance and independently checked overlap
Historical conversion / month viewBS 1975–2083Attributed source; some historical years disputed
CodeDeb website extended conversionBS 2084–2100Existing converter, not a claim of coverage by the SDK npm package
Website holidaysPartial BS 2083Missing record is not evidence of a working day
Panchang, Ekadashi, Parana, muhurtaCandidate/estimated researchNot official fasting or ceremonial decisions
Astrology / KundliSupplied sidereal positions requiredDoes not produce a validated birth chart without an appropriate ephemeris

Nepal civil dates should use Asia/Kathmandu when converting timestamps to calendar days. Do not extrapolate BS month lengths outside the bundled datasets.

For coding agents

Use the published npm package entrypoints as source context. Avoid importing unpublished React/Expo pickers. Never infer unverified festival dates, pretend calendar data is government-certified, or import undocumented internal package paths.

Read this Markdown: https://www.codedeb.com/docs/nepali-calendar.md

Release history and upgrade gates

0.2.0 — 20 November 2026: First public npm release with conversion, scheduling and iCalendar exports. Standalone React and Expo pickers are not included. Future releases require new immutable versions, independently verified historical data, license and attribution review, package export tests and device/accessibility checks.

Other research capabilities such as Jyotish calculations and market references are outside this calendar tool and are not presented as validated public services.

Production implementation walkthrough

  1. Constrain BS/AD conversion to the supported date range.
  2. Separate sourced holiday records from business-defined nonworking days.
  3. Represent canonical instants in AD for interoperability and format BS for display.
  4. Test recurring dates and iCalendar exports at year and month boundaries.

Reproducible installation and compatibility

npm view @codedeb/nepali-calendar@0.2.1 version
npm install @codedeb/nepali-calendar@0.2.1

Pin the exact version in the application lockfile; review its exported ESM subpaths and bundled TypeScript declarations. A new package version does not retroactively update older immutable tarballs.

Integration acceptance checklist

  • Validate boundary inputs, invalid payloads and every caller-provided adapter before connecting customer data.
  • Type-check the actual package from a clean test application, not only from this monorepo's source paths.
  • Exercise authorization failures, missing configuration and relevant concurrency or retry paths.
  • Keep credential and sensitive data out of logs; store only necessary operational evidence.

Troubleshooting and version policy

Module not found: Check the exact import subpath and package version in node_modules and the lockfile. Unexpected result: Review the required application-owned credentials and adapters. npm 404: Verify the requested immutable version using the public registry; do not mistake a local tarball for a published release.

See nepal content and nepal forms for complementary capabilities. Use the SDK directory and Developer resources for API references and engineering guides.

More from Code Deb

Read about our agency, explore available services, or contact the team for a project discussion.