# iCalendar query provider

**URL:** https://community.silverbullet.md/t/icalendar-query-provider/1594
**Category:** Plugs and Libraries
**Created:** [January 5, 2025, 6:25pm UTC](https://community.silverbullet.md/t/icalendar-query-provider/1594 "2025-01-05T18:25:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Maarrk](https://community.silverbullet.md/user_avatar/community.silverbullet.md/maarrk/32/56_2.png) [@Maarrk](https://community.silverbullet.md/u/Maarrk)
#### Post date: [January 5, 2025, 6:25pm UTC](https://community.silverbullet.md/t/icalendar-query-provider/1594/1 "2025-01-05T18:25:28Z")

</div>

Hello everyone, today I have a small Plug to share, which allows you to get calendar events from a few services. To support the widest number of use cases, it’s simply a new kind of query:`ical-event`. You can see the (surprisingly simple) code and detailed instructions [on GitHub](https://github.com/Maarrk/silverbullet-icalendar).

 ![Screenshot of a simple query with iCalendar Plug](https://community.silverbullet.md/uploads/default/original/1X/6c47ba5b5b9d7d5f0ae20ae2cfa824b16e5c62f8.png)

I already tested it with Nextcloud and Google Calendar, but I’m certain more are compatible. Let me know what you think 😄

---

<div class="post-metadata">

### Author: ![montarion](https://community.silverbullet.md/user_avatar/community.silverbullet.md/montarion/32/390_2.png) [@montarion](https://community.silverbullet.md/u/montarion)
#### Post date: [January 18, 2025, 3:21am UTC](https://community.silverbullet.md/t/icalendar-query-provider/1594/2 "2025-01-18T03:21:12Z")

</div>

This is super cool!

I do find that I can use some of my google calendars, but not others. Can’t see a difference between them really, Did you ever see that happen?

---

<div class="post-metadata">

### Author: ![Maarrk](https://community.silverbullet.md/user_avatar/community.silverbullet.md/maarrk/32/56_2.png) [@Maarrk](https://community.silverbullet.md/u/Maarrk)
#### Post date: [January 20, 2025, 8:49am UTC](https://community.silverbullet.md/t/icalendar-query-provider/1594/3 "2025-01-20T08:49:33Z")

</div>

I’m glad you like it. By “can’t use” do you mean that if you add the link the query doesn’t find the events, or that you can’t get the link to calendar?

---

<div class="post-metadata">

### Author: ![montarion](https://community.silverbullet.md/user_avatar/community.silverbullet.md/montarion/32/390_2.png) [@montarion](https://community.silverbullet.md/u/montarion)
#### Post date: [January 20, 2025, 4:02pm UTC](https://community.silverbullet.md/t/icalendar-query-provider/1594/4 "2025-01-20T16:02:46Z")

</div>

Heyo!

Sorry, I mean that if I add the link, the query doesn’t find anything. This goes for my main calendar, and some of the new ones I made. But not all of them, some _do_ work.

Very weird

---

<div class="post-metadata">

### Author: ![montarion](https://community.silverbullet.md/user_avatar/community.silverbullet.md/montarion/32/390_2.png) [@montarion](https://community.silverbullet.md/u/montarion)
#### Post date: [January 31, 2025, 2:58am UTC](https://community.silverbullet.md/t/icalendar-query-provider/1594/5 "2025-01-31T02:58:27Z")

</div>

while I haven’t the slightest idea what it means, here is one of the log traces from the server:

(also, my link _does_ end in `../basic.ics`)

```auto
Getting events from main-calendar failed with: ZodError: [

  {

    "code": "invalid_literal",

    "expected": "2.0",

    "path": [

      "version"

    ],

    "message": "Invalid literal value, expected \"2.0\""

  },

  {

    "code": "invalid_type",

    "expected": "string",

    "received": "undefined",

    "path": [

      "prodId"

    ],

    "message": "Required"

  }

]

    at Object.get error (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:1:28742)

    at t.parse (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:1:30010)

    at Ma (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:2:16649)

    at Ra (data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:2:16837)

    at eventLoopTick (ext:core/01_core.js:175:7)

    at async data:application/javascript;base64,dmFyIExhPU9iamVjdC5j......UWcgYXMgcGx1Z307Cg==:1:10866 {

  issues: [

    {

      received: undefined,

      code: "invalid_literal",

      expected: "2.0",

      path: ["version"],

      message: 'Invalid literal value, expected "2.0"'

    },

    {

      code: "invalid_type",

      expected: "string",

      received: "undefined",

      path: ["prodId"],

      message: "Required"

    }

  ],

  addIssue: [Function (anonymous)],

  addIssues: [Function (anonymous)],

  name: "ZodError"

}

```

---

<div class="post-metadata">

### Author: ![Maarrk](https://community.silverbullet.md/user_avatar/community.silverbullet.md/maarrk/32/56_2.png) [@Maarrk](https://community.silverbullet.md/u/Maarrk)
#### Post date: [October 20, 2025, 3:17pm UTC](https://community.silverbullet.md/t/icalendar-query-provider/1594/6 "2025-10-20T15:17:48Z")

</div>

This Plug has been updated for v2 by [xunleii (Alexandre Nicolaie) · GitHub](https://github.com/xunleii/), I suggest switching over to their fork: [GitHub - xunleii/silverbullet-icalendar](https://github.com/xunleii/silverbullet-icalendar)
