Skip to main content

Prisma Calendar Integration

Periodix-Planner integrates with Prisma Calendar to automatically embed event statistics in your periodic notes.

Requires Prisma Calendar Pro

This integration uses Prisma Calendar's Programmatic API, which is a Pro-only feature. If Prisma Calendar is on the free tier, the integration will not be able to fetch statistics and will notify you to upgrade. Visit matejvavroproductivity.com/tools/prisma-calendar to start a 30-day free trial or upgrade.

Overview​

When enabled, the plugin queries Prisma Calendar's Programmatic API to get event statistics for each period and embeds them as a code block in the note. The data is rendered as an interactive summary with a table, pie chart, and event counts.

Statistics are only added to past periodic notes — today's note and future notes are not affected. This works for all period types: daily, weekly, monthly, quarterly, and yearly.

Setup​

  1. Install and enable the Prisma Calendar plugin
  2. Activate Prisma Calendar Pro — the Programmatic API is a Pro feature
  3. Open Settings → Periodix-Planner → Integrations
  4. Enable Prisma Calendar integration

Configuration​

SettingDescriptionDefault
Enable Prisma CalendarToggle the integration on/offOff
Prisma Calendar headingMarkdown heading above the statistics block## Prisma Calendar
Code fence nameCode fence identifier for the block (requires reload)periodic-planner-prisma-calendar
Aggregation modeAggregate by category or event nameCategory

How It Works​

Automatic Injection​

When a periodic note is indexed and its period has ended:

  1. The plugin checks if the note already has a Prisma Calendar section
  2. If not, it queries the Prisma Calendar API for statistics matching the period interval
  3. The statistics are embedded as a JSON code block under the configured heading

Period-to-Interval Mapping​

Period TypePrisma Calendar Query
DailySingle day query
WeeklySingle week query
MonthlySingle month query
QuarterlyAggregated from 3 monthly queries
YearlyAggregated from 12 monthly queries

Rendered View​

The embedded statistics block renders as:

  • Header with total duration, event count, and done/undone ratio
  • Sortable table with entries (category/name, duration, percentage, count)
  • Pie chart showing the duration distribution
  • Enlarge button to view the chart in a modal

Bulk Processing​

To add Prisma Calendar statistics to all existing past notes:

  1. Go to Settings → Integrations → Actions
  2. Click Process now next to "Process all periodic notes (Prisma Calendar)"

This scans all periodic notes across all period types and adds statistics to notes that don't have them yet.