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

@datelane/core

v0.2.0

Published

Lightweight, customizable, dependency-free Angular scheduler/calendar with pluggable date adapters (Native/Luxon/Moment).

Readme

@datelane/core

Lightweight, customizable, dependency-free Angular scheduler / calendar with pluggable date adapters (Native / Luxon / Moment).

npm license

🚀 Live demo

devendramilmile121.github.io/datelane

Try all 12 views, drag/resize events, switch themes, and read the full Developer Guide (install → API reference → live theme builder) right in the browser.


Why

  • Zero hard runtime deps — only @angular/* peers. luxon / moment are optional.
  • All 12 views — Day, Week, Work Week, Month, Year, Agenda, Month-Agenda, and 5 Timeline views.
  • Tree-shakeable — views are factory functions; you only pay for what you import.
  • Pluggable date layer — Native (default), Luxon, or Moment via secondary entry points.
  • Controlled component — never mutates your data; emits proposed changes, you apply them.
  • Themeable — entire surface is --dl-* CSS custom properties. Dark mode + RTL built in.
  • Accessible — roles, keyboard model, focus management, AA contrast from the first render.
  • Standalone-only, signal-first — Angular 18–22.

Install

npm install @datelane/core

Import the stylesheet once (e.g. styles.scss or angular.json):

@import '@datelane/core/styles/scheduler.css';

Quick start

// main.ts
import { bootstrapApplication } from '@angular/platform-browser';
import { provideScheduler } from '@datelane/core';
import { AppComponent } from './app/app.component';

bootstrapApplication(AppComponent, {
  providers: [provideScheduler()], // Native adapter by default
});
import { Component } from '@angular/core';
import {
  SchedulerComponent, dayView, weekView, monthView,
  type FieldMap, type SchedulerViewType,
} from '@datelane/core';

@Component({
  standalone: true,
  selector: 'app-root',
  imports: [SchedulerComponent],
  template: `
    <dl-scheduler
      [(activeView)]="view"
      [views]="views"
      [events]="events"
      [fieldMap]="fieldMap"
      height="600px"
      (eventClick)="onClick($event)">
    </dl-scheduler>
  `,
})
export class AppComponent {
  view: SchedulerViewType = 'week';
  views = [dayView(), weekView({ isDefault: true }), monthView()];
  fieldMap: FieldMap = { id: 'id', subject: 'title', start: 'from', end: 'to' };
  events = [{ id: 1, title: 'Standup', from: new Date(), to: new Date() }];
  onClick(c: any) { console.log('clicked', c.event.subject); }
}

That's a complete working scheduler — the built-in header gives prev/next/today, a date-range label, and a view switcher driven by [views].

Date adapters

Core ships the zero-dep NativeDateAdapter. Opt into Luxon or Moment via secondary entry points:

import { provideScheduler } from '@datelane/core';
import { provideLuxonDateAdapter } from '@datelane/core/luxon-adapter';

provideScheduler(provideLuxonDateAdapter({ locale: 'en-US' }));

Theming

Override any --dl-* token — no ::ng-deep, no fork. A single --dl-accent recolors selection, today, focus ring, and default events. Build your palette interactively in the live theme builder.

.dl-scheduler {
  --dl-accent: #2563eb;
  --dl-radius-md: 10px;
  --dl-slot-h: 48px;
}

Documentation

Full input/output reference, every view option, templates, i18n, and the complete export index live in the Developer Guide (Developer Guide tab).

Angular support

Standalone-only, signal-first. Peer range: @angular/core & @angular/common >=18.0.0 <23.0.0.

License

MIT © Devendra Milmile