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

kalandar

v0.2.1

Published

Natural-language capture parsing for tasks, reminders, and calendar events across JavaScript, Rust, and Apple-native runtimes.

Readme

Kalandar

Kalandar is a natural-language capture parser for tasks, reminders, calendar events, and low-signal thoughts.

It ships three implementation paths behind one capture-preview contract:

  • JavaScript for web and Node apps.
  • Rust for Windows, Linux, and cross-platform native hosts.
  • Swift/Core AI for Apple-native apps.

Kalandar is published to npm as kalandar. It can also be consumed as a JavaScript Git dependency or a Swift Package Manager dependency. crates.io publication is disabled.

The repository includes parser code, runtime contracts, integration adapters, Swift source, and a validated resources/capture-parser ONNX suite for task, reminder, and calendar parsing. It does not include Core AI model artifacts, training data, checkpoints, local keys, or generated build output. A Core AI app supplies a validated artifact root separately.

Quick Start

Install from npm:

npm install kalandar

Or install from the Git repository. Replace <git-ref> with a commit SHA, branch, or release tag that contains the version you want to consume:

npm install git+ssh://[email protected]/blinding-pixels/kalandar.git#<git-ref>
# or
pnpm add git+ssh://[email protected]/blinding-pixels/kalandar.git#<git-ref>

For Apple-native apps, add the repository directly through Swift Package Manager. See Use Swift and Core AI.

Parse a capture string:

import { parseCapturePreviewInput } from 'kalandar';

const preview = parseCapturePreviewInput('task: finish report tomorrow at 3pm #finance');

console.log(preview.kind);
console.log(preview.task);

Create a parser instance:

import { createCapturePreviewParser } from 'kalandar/capture';

const parser = await createCapturePreviewParser();
const preview = await parser.parse('reminder: water plants every other saturday at 9am');

Documentation

Start with the docs index.

  • Getting started: install Kalandar and parse your first capture.
  • Concepts: understand capture preview, implementations, artifacts, and inference.
  • Tasks: use JavaScript, Rust, Core AI, or a self-hosted inference adapter.
  • Tutorials: build an end-to-end capture preview flow.
  • Reference: inspect the capture-preview-v1 request and response contract.
  • Publishing: prepare private Git tags for JavaScript and SwiftPM consumers.

Implementation Paths

| Path | Import or package | Best for | | --- | --- | --- | | JavaScript | kalandar and kalandar/capture | Web apps, Node apps, and simple integrations. | | Rust | rust/ source and kalandar-capture-preview CLI | Native desktop apps and cross-platform hosts. | | Swift/Core AI | KalandarCoreAIRuntime SwiftPM product | Apple-native apps that use CoreAIParserSuite directly or expose a JavaScript bridge. |

All three paths return the same capture-preview-v1 result shape. They resolve dates, times, repeats, lead times and holidays with the same Rust library, kalandar-dates, so the resolved schedule is identical on every platform. See Date resolution.

Runtime Adapters

Kalandar exposes lower-level tensor runtime adapters from kalandar/runtime.

import { createRemoteInferenceAdapter } from 'kalandar/runtime';
import { createLocalOnnxInferenceAdapter } from 'kalandar/runtime/onnx';
import { createLocalCoreAiInferenceAdapter } from 'kalandar/runtime/coreai';

Install onnxruntime-node in Node apps that use local ONNX inference. The JavaScript Core AI adapter is a bridge for Apple hosts; native Swift apps can use CoreAIParserSuite directly.

The bundled ONNX resources are available at node_modules/kalandar/resources/capture-parser after a Git dependency install. Use a family directory such as task, reminder, or calendar with loadMlArtifact; use the parent capture-parser directory as the Rust CLI resource root.

Release Checks

From a source checkout:

npm run release:check

That command type-checks, builds, tests Swift and Rust, runs app-output parity, and performs an npm pack dry run. It does not validate separately distributed Core AI artifacts.

License

Kalandar's code is MIT licensed. rust/kalandar-dates also keeps chrono-node's MIT notice.

One data file has a different licence. rust/kalandar-dates/src/capture/holidays.bin, generated from date-holidays, is available under CC BY-SA 3.0. Its licence text and the required attribution are in rust/kalandar-dates/LICENSES/date-holidays.txt. The computed festival table festivals.bin is MIT.