Post B0yaxaDyPdNel1vfMW by fabio@manganiello.eu
 (DIR) More posts by fabio@manganiello.eu
 (DIR) Post #B0wU1aiPRQAPRXD31k by aral@mastodon.ar.al
       2025-12-05T15:21:58Z
       
       0 likes, 0 repeats
       
       Ah, the joys of having built-in native JavaScript database¹ that can persist and load typed JavaScript objects² and an interactive JavaScript shell (REPL)³ in Kitten⁴ :):kitten:💕¹ https://kitten.small-web.org/reference/#database² https://kitten.small-web.org/tutorials/database-app-modules/³ https://kitten.small-web.org/reference/#kitten-s-interactive-shell-repl⁴ https://kitten.small-web.org#Kitten #SmallWeb #development
       
 (DIR) Post #B0wUb61f1OMUgc906q by Lubnaaj5@mastodon.social
       2025-12-05T15:28:15Z
       
       0 likes, 0 repeats
       
       @aral hey my dear Aral 🤍 I hope you are doing well,Please support my pinned post 🙏🏼🙏🏼
       
 (DIR) Post #B0yaxaDyPdNel1vfMW by fabio@manganiello.eu
       2025-12-06T10:13:55.855586Z
       
       0 likes, 0 repeats
       
       @aral have you taken a look at PGLite? 🙂
       
 (DIR) Post #B0yaxaylbeoL69p2Ia by aral@mastodon.ar.al
       2025-12-06T15:49:04Z
       
       0 likes, 0 repeats
       
       @fabio Nope.Can it do:export class Day extends CalendarUnit {  /** @type {Array<Slot>} */  slots = this.slots || new Array()  numberOfSlots = this.numberOfSlots || 4  slotDuration = this.slotDuration || 15 // minutes  persistedDate = this.persistedDate || Temporal.Now.zonedDateTimeISO().toJSON()  persistedStartTime = this.persistedStartTime || this.date.withPlainTime('13').toJSON()  // Automatic daily message flags.  sentMorningOfReminder = this.sentMorningOfReminder || false  sentDayBeforeReminder = this.sentDayBeforeReminder || false  sentWelcomeMessage = this.sentWelcomeMessage || false  initialise () {    this.slots ??= []    this.numberOfSlots ??= 4    this.slotDuration ??= 15    if (this.slots.length === 0) {      for (let i = 0; i < this.numberOfSlots; i++) {        const slot = new Slot()        slot.dayId = this.id        this.addSlot(slot)      }    }  }  get date () {    return Temporal.ZonedDateTime.from(this.persistedDate)  }  set date (date) {    this.persistedDate = date.toJSON() || Temporal.Now.zonedDateTimeISO().toJSON()  }…}kitten.db.calendar.addDay(new Day())// ;)