Javascript Daily Learning Schedules
Supports several learning schedules
- Daf Yomi (Babylonian Talmud / Bavli) -
dafYomi
- Mishna Yomi -
mishnaYomi
- Nach Yomi -
nachYomi
- Tanakh Yomi -
tanakhYomi
- Psalms / Tehillim (30 day cycle) -
psalms
- Yerushalmi Yomi (Jerusalem Talmud)
- Vilna edition -
yerushalmi-vilna
- Schottenstein edition -
yerushalmi-schottenstein
- Vilna edition -
- Daily Rambam (Mishneh Torah)
- 1 chapter a day cycle -
rambam1
- 1 chapter a day cycle -
- Chofetz Chaim -
chofetzChaim
- Sefer Shemirat HaLashon -
shemiratHaLashon
- Daf-a-Week
- Daily -
dafWeekly
- Sundays only -
dafWeeklySunday
- Daily -
- Pirkei Avot studied on Shabbat between Pesach and Rosh Hashana -
pirkeiAvotSummer
$ npm install @hebcal/learning
import {HDate, DailyLearning} from '@hebcal/core';
import '@hebcal/learning';
const dt = new Date();
const hd = new HDate(dt);
const ev = DailyLearning.lookup('dafYomi', hd);
console.log(dt.toLocaleDateString(), hd.toString(), ev.render('en'));
- DafPage
-
Represents a tractate and page number
- DafPageEvent
-
Event wrapper around a DafPage instance
- DafYomi
-
Returns the Daf Yomi for given date
- DafYomiEvent
-
Event wrapper around a DafYomi instance
- MishnaYomiEvent
-
Event wrapper around a Mishna Yomi instance
- MishnaYomiIndex
-
A program of daily learning in which participants study two Mishnahs each day in order to finish the entire Mishnah in ~6 years.
- NachYomiEvent
-
Event wrapper around a Nach Yomi instance
- NachYomiIndex
-
A daily regimen of learning the books of Nevi'im (Prophets) and Ketuvim (Writings).
- YerushalmiYomiEvent
-
Event wrapper around a Yerushalmi Yomi result
- ChofetzChaimEvent
-
Event wrapper around a Chofetz Chaim instance
- DailyRambamEvent
-
Event wrapper around a Daily Rambam instance
- ShemiratHaLashonEvent
-
Event wrapper around a Sefer Shemirat HaLashon instance
- PsalmsEvent
-
Event wrapper around a daily Psalms / Tehillim
- DafWeeklyEvent
-
Event wrapper around a daily weekly
- TanakhYomi
-
Returns the Daf Yomi for given date
- TanakhYomiEvent
-
Event wrapper around a tanakhYomi
- PirkeiAvotSummerEvent
-
Event wrapper for Pirkei Avot being studied on Shabbat between Pesach and Rosh Hashana
- vilna
-
Yerushalmi Yomi configuration for Vilna Edition
- schottenstein
-
Yerushalmi Yomi configuration for Schottenstein Edition
-
yerushalmiYomi(date, config) ⇒
any
-
Using the Vilna edition, the Yerushalmi Daf Yomi program takes ~4.25 years or 51 months. Unlike the Daf Yomi Bavli cycle, this Yerushalmi cycle skips both Yom Kippur and Tisha B'Av (returning
null
). The page numbers are according to the Vilna Edition which is used since 1900.The Schottenstein edition uses different page numbers and takes ~6 years to complete.
Throws an exception if the date is before Daf Yomi Yerushalmi cycle began (2 February 1980 for Vilna, 14 November 2022 for Schottenstein).
-
chofetzChaim(hdate) ⇒
any
-
Looks up Chofetz Chaim Calendar for date
-
dailyRambam1(date) ⇒
any
-
Calculates Daily Rambam (Mishneh Torah) for 1 chapter a day cycle.
-
shemiratHaLashon(hdate) ⇒
any
-
Looks up Sefer Shemirat HaLashon Calendar for date
-
dailyPsalms(date) ⇒
any
-
Calculates Daily Psalms (Tehillim) for 30-day cycle.
-
dafWeekly(date) ⇒
DafPage
-
Daf-a-Week
-
tanakhYomi(date) ⇒
TanakhYomi
-
Calculates Tanakh Yomi.
-
pirkeiAvot(dt, il) ⇒
Array.<number>
-
Pirkei Avot being studied on Shabbat between Pesach and Rosh Hashana
"From at least the time of Saadia Gaon (10th century), it has been customary to study one chapter a week on each Shabbat between Passover and Shavuot; today, the tractate is generally studied on each Shabbat of the summer, from Passover to Rosh Hashanah, the entire cycle repeating a few times with doubling of chapters at the end if there are not a perfect multiple of six weeks" https://en.wikipedia.org/wiki/Pirkei_Avot#Study_of_the_work
returns array (since it can return 2 chapters) or undefined if there is no Pirkei Avot on that day optimized for diaspora and il feel free to modify whatever you want, i am sure this task can be done in different ways and orders
-
MishnaYomi :
Object
-
Describes a mishna to be read
-
NachYomi :
Object
-
Describes a chapter to be read
Represents a tractate and page number
Kind: global class
-
DafPage
- new DafPage(name, blatt)
-
.getBlatt() ⇒
number
-
.getName() ⇒
string
-
.render([locale]) ⇒
string
Initializes a daf yomi instance
Param | Type |
---|---|
name | string |
blatt | number |
Kind: instance method of DafPage
Kind: instance method of DafPage
Formats (with translation) the dafyomi result as a string like "Pesachim 34"
Kind: instance method of DafPage
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Event wrapper around a DafPage instance
Kind: global class
-
DafPageEvent
- new DafPageEvent(date, daf, mask)
-
.render([locale]) ⇒
string
-
.renderBrief([locale]) ⇒
string
-
.url() ⇒
string
Param | Type |
---|---|
date | HDate |
daf | DafPage |
mask | number |
Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
Kind: instance method of DafPageEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns Daf Yomi name without the 'Daf Yomi: ' prefix (e.g. "Pesachim 107").
Kind: instance method of DafPageEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org or dafyomi.org
Kind: instance method of DafPageEvent
Returns the Daf Yomi for given date
Initializes a daf yomi instance
Param | Type | Description |
---|---|---|
date |
Date | HDate | number
|
Gregorian or Hebrew date |
Event wrapper around a DafYomi instance
Kind: global class
-
DafYomiEvent
- new DafYomiEvent(date)
-
.render([locale]) ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
Kind: instance method of DafYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Kind: instance method of DafYomiEvent
Event wrapper around a Mishna Yomi instance
Kind: global class
-
MishnaYomiEvent
- new MishnaYomiEvent(date, mishnaYomi)
-
.render([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
mishnaYomi | Array.<MishnaYomi> |
Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
Kind: instance method of MishnaYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org
Kind: instance method of MishnaYomiEvent
Kind: instance method of MishnaYomiEvent
A program of daily learning in which participants study two Mishnahs each day in order to finish the entire Mishnah in ~6 years.
Kind: global class
Initializes a Mishna Yomi instance
mishnaYomiIndex.days : Array.<MishnaYomi>
Kind: instance property of MishnaYomiIndex
mishnaYomiIndex.lookup(date) ⇒ Array.<MishnaYomi>
Looks up a Mishna Yomi
Kind: instance method of MishnaYomiIndex
Param | Type | Description |
---|---|---|
date |
Date | HDate | number
|
Gregorian date |
Event wrapper around a Nach Yomi instance
Kind: global class
-
NachYomiEvent
- new NachYomiEvent(date, nachYomi)
-
.render([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
nachYomi | NachYomi |
Returns name of tractate and page (e.g. "Beitzah 21").
Kind: instance method of NachYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org
Kind: instance method of NachYomiEvent
Kind: instance method of NachYomiEvent
A daily regimen of learning the books of Nevi'im (Prophets) and Ketuvim (Writings).
Kind: global class
Initializes a Nach Yomi instance
nachYomiIndex.lookup(date) ⇒ NachYomi
Looks up a Mishna Yomi
Kind: instance method of NachYomiIndex
Param | Type | Description |
---|---|---|
date |
Date | HDate | number
|
Gregorian date |
Event wrapper around a Yerushalmi Yomi result
Kind: global class
-
YerushalmiYomiEvent
- new YerushalmiYomiEvent(date, daf)
-
.render([locale]) ⇒
string
-
.renderBrief([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
daf | any |
Returns name of tractate and page (e.g. "Yerushalmi Beitzah 21").
Kind: instance method of YerushalmiYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns name of tractate and page (e.g. "Beitzah 21").
Kind: instance method of YerushalmiYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org
Kind: instance method of YerushalmiYomiEvent
Kind: instance method of YerushalmiYomiEvent
Event wrapper around a Chofetz Chaim instance
Kind: global class
-
ChofetzChaimEvent
- new ChofetzChaimEvent(date, reading)
-
.renderBrief([locale]) ⇒
string
-
.render([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | any |
Returns name of reading
Kind: instance method of ChofetzChaimEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns name of reading
Kind: instance method of ChofetzChaimEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org e.g. https://www.sefaria.org/Chofetz_Chaim%2C_Part_One%2C_The_Prohibition_Against_Lashon_Hara%2C_Principle_7.7
Kind: instance method of ChofetzChaimEvent
Kind: instance method of ChofetzChaimEvent
Event wrapper around a Daily Rambam instance
Kind: global class
-
DailyRambamEvent
- new DailyRambamEvent(date, reading)
-
.render([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | any |
Returns name of reading
Kind: instance method of DailyRambamEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org
Kind: instance method of DailyRambamEvent
Kind: instance method of DailyRambamEvent
Event wrapper around a Sefer Shemirat HaLashon instance
Kind: global class
-
ShemiratHaLashonEvent
- new ShemiratHaLashonEvent(date, reading)
-
.render([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | any |
Returns name of reading
Kind: instance method of ShemiratHaLashonEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org e.g. https://www.sefaria.org/Shemirat_HaLashon%2C_Book_I%2C_The_Gate_of_Torah.4.2?lang=b
Kind: instance method of ShemiratHaLashonEvent
Kind: instance method of ShemiratHaLashonEvent
Event wrapper around a daily Psalms / Tehillim
Kind: global class
-
PsalmsEvent
- new PsalmsEvent(date, reading)
-
.render([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
reading |
Array.<number> | Array.<string>
|
Returns name of reading
Kind: instance method of PsalmsEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org e.g. https://www.sefaria.org/Psalms.1-9?lang=b
Kind: instance method of PsalmsEvent
Kind: instance method of PsalmsEvent
Event wrapper around a daily weekly
Kind: global class
-
DafWeeklyEvent
- new DafWeeklyEvent(date, daf)
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
daf | DafPage |
Kind: instance method of DafWeeklyEvent
Returns the Daf Yomi for given date
Kind: global class
Initializes a daf yomi instance
Param | Type |
---|---|
name | string |
blatt | number |
Formats (with translation) the dafyomi result as a string like "Pesachim 34"
Kind: instance method of TanakhYomi
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Event wrapper around a tanakhYomi
Kind: global class
-
TanakhYomiEvent
- new TanakhYomiEvent(date, daf)
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
daf | TanakhYomi |
Returns a link to sefaria.org or dafyomi.org
Kind: instance method of TanakhYomiEvent
Kind: instance method of TanakhYomiEvent
Event wrapper for Pirkei Avot being studied on Shabbat between Pesach and Rosh Hashana
Kind: global class
-
PirkeiAvotSummerEvent
- new PirkeiAvotSummerEvent(date, reading)
-
.render([locale]) ⇒
string
-
.url() ⇒
string
-
.getCategories() ⇒
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | Array.<number> |
Returns name of reading
Kind: instance method of PirkeiAvotSummerEvent
Param | Type | Description |
---|---|---|
[locale] | string |
Optional locale name (defaults to active locale). |
Returns a link to sefaria.org
Kind: instance method of PirkeiAvotSummerEvent
Kind: instance method of PirkeiAvotSummerEvent
Yerushalmi Yomi configuration for Vilna Edition
Kind: global constant
Read only: true
Yerushalmi Yomi configuration for Schottenstein Edition
Kind: global constant
Read only: true
Using the Vilna edition, the Yerushalmi Daf Yomi program takes
~4.25 years or 51 months.
Unlike the Daf Yomi Bavli cycle, this Yerushalmi cycle skips both
Yom Kippur and Tisha B'Av (returning null
).
The page numbers are according to the Vilna
Edition which is used since 1900.
The Schottenstein edition uses different page numbers and takes ~6 years to complete.
Throws an exception if the date is before Daf Yomi Yerushalmi cycle began (2 February 1980 for Vilna, 14 November 2022 for Schottenstein).
Kind: global function
Param | Type | Description |
---|---|---|
date |
HDate | Date | number
|
Hebrew or Gregorian date |
config | any |
either vilna or schottenstein |
Looks up Chofetz Chaim Calendar for date
Kind: global function
Param | Type |
---|---|
hdate | HDate |
Calculates Daily Rambam (Mishneh Torah) for 1 chapter a day cycle.
Kind: global function
Param | Type | Description |
---|---|---|
date |
HDate | Date | number
|
Hebrew or Gregorian date |
Looks up Sefer Shemirat HaLashon Calendar for date
Kind: global function
Param | Type |
---|---|
hdate | HDate |
Calculates Daily Psalms (Tehillim) for 30-day cycle.
Kind: global function
Param | Type | Description |
---|---|---|
date |
HDate | Date | number
|
Hebrew or Gregorian date |
dafWeekly(date) ⇒ DafPage
Daf-a-Week
Kind: global function
Param | Type | Description |
---|---|---|
date |
HDate | Date | number
|
Hebrew or Gregorian date |
tanakhYomi(date) ⇒ TanakhYomi
Calculates Tanakh Yomi.
Kind: global function
Param | Type | Description |
---|---|---|
date |
HDate | Date | number
|
Hebrew or Gregorian date |
Pirkei Avot being studied on Shabbat between Pesach and Rosh Hashana
"From at least the time of Saadia Gaon (10th century), it has been customary to study one chapter a week on each Shabbat between Passover and Shavuot; today, the tractate is generally studied on each Shabbat of the summer, from Passover to Rosh Hashanah, the entire cycle repeating a few times with doubling of chapters at the end if there are not a perfect multiple of six weeks" https://en.wikipedia.org/wiki/Pirkei_Avot#Study_of_the_work
returns array (since it can return 2 chapters) or undefined if there is no Pirkei Avot on that day optimized for diaspora and il feel free to modify whatever you want, i am sure this task can be done in different ways and orders
Kind: global function
Param | Type |
---|---|
dt |
Date | HDate
|
il | boolean |
Describes a mishna to be read
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
k | string |
tractate name in Sephardic transliteration (e.g. "Berakhot", "Moed Katan") |
v | string |
verse (e.g. "2:1") |
Describes a chapter to be read
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
k | string |
book name in Sephardic transliteration (e.g. "Berakhot", "Moed Katan") |
v | number |
chapter (e.g. "2:1") |