officium-rs

A pure-Rust port of the Divinum Officium liturgical engine. Resolves the day's office and renders the Tridentine Mass under any of five Roman rubrics — 1570, 1910, 1939, 1955, 1960.

Pick a date

Loading WASM…

Mass

No query yet — pick a date and click "Render Mass".

API

// Browser:
import init, { compute_mass_full } from './pkg/officium_rs.js';

await init();
const json = compute_mass_full(2026, 5, 2, 'rubrics-1960', true, true);
const mass = JSON.parse(json);
// → { office:    {winner, color, season, rank, rubric, commemorations},
//     propers:   {introitus, oratio, lectio, graduale, evangelium, …,
//                 commemorations: […]},
//     rules:     {gloria, credo, prefatio_name, solemn, defunctorum},
//     ordinary:  [{k:"section",label:"Incipit"}, {k:"rubric",body,level},
//                 {k:"spoken",role:"V",body}, {k:"plain",body},
//                 {k:"macro",name:"Gloria",body},
//                 {k:"proper",section:"introitus"},
//                 {k:"hook",hook:"Introibo",message:"omit. psalm"},
//                 …] }