npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@creezio/granola

v0.26.1

Published

Module natif Granola — réception webhook signée (Standard Webhooks), sync notes/transcripts et proxy API Granola

Downloads

200

Readme

@creezio/granola

Module natif Granola (AI meeting notes) : le serveur marque expose une adresse webhook à coller dans Granola (Settings → Connectors → Webhooks) et reçoit toutes les livraisons (note.generated, note.edited, note.access_granted) — chaque note référencée est ensuite synchronisée en brand.db via l'API publique Granola.

Architecture (ADR-module-natif-hybride)

  • Mount hybride granola — enregistré par la marque (api.registerModuleApi("granola", createGranolaMount({ defaults }))) → HTTP /api/v1/modules/granola/*, données en brand.db (granola_settings, granola_events, granola_notes).
  • Webhook : POST /api/v1/modules/granola/webhook — récepteur Standard Webhooks. Dès qu'un signingSecret (whsec_…) est configuré, la vérification HMAC-SHA256 est fail-closed (401 invalid_signature), avec dédup par event_id (les retries Granola réutilisent l'id).
  • Sync notes : le payload webhook ne porte jamais le contenu — la note est re-fetchée avec la clé API (grn_…), les contrôles d'accès s'appliquent côté Granola au fetch.
  • Config : défauts marque via createGranolaMount({ defaults }), override à chaud PUT config (clé API, signing secret, origine publique), secrets masqués en GET config.
  • UI : @creezio/granola/ui → GranolaClient compose GranolaNotesPanel (workspace notes : liste filtrable, fiche résumé / transcript — GRANOLA-1) et GranolaConnectPanel (santé, endpoints distants, livraisons — GRANOLA-2).

API mount (câblé par la marque)

| Méthode | Chemin | Rôle | |---------|--------|------| | POST | webhook | récepteur livraisons Granola (public, signé HMAC) | | GET | webhook-info | URL webhook à coller dans Granola | | POST | register-webhook | crée l'endpoint via l'API Granola + stocke le signing_secret (retourné une seule fois) | | GET/PUT/DELETE | config | config module (secrets masqués en GET) | | GET | events | livraisons reçues (dédupliquées, verified) | | GET | notes / notes/<id> | notes synchronisées localement | | GET | notes/<id>/transcript | proxy transcript paginé (next_cursor) | | POST | notes/<id>/sync | re-fetch d'une note via l'API | | GET | remote/notes[?…] | proxy GET /v1/notes (pagination, filtres) | | GET | remote/notes/<id>[?include=transcript] | proxy GET /v1/notes/{id} | | GET | remote/notes/<id>/transcript | proxy transcript paginé | | GET | remote/folders | proxy GET /v1/folders | | GET/PATCH/DELETE | remote/webhook-endpoints[/<id>] | gestion endpoints webhook Granola |

Câblage marque (3 gestes)

// 1. server/src/electron/brand-granola-content.ts (défauts, optionnel)
export const brandGranolaDefaults = {
  publicBaseUrl: process.env.BRAND_PUBLIC_ORIGIN,
};

// 2. brand-migrations.ts
...granolaMigrations(),

// 3. brand-module-api.ts
api.registerModuleApi("granola", createGranolaMount({ defaults: brandGranolaDefaults }));

L'URL à coller dans Granola est alors https://<origine-publique>/api/v1/modules/granola/webhook (exposée par GET webhook-info). Prérequis côté Granola : plan Business/Enterprise (webhooks) + clé API grn_… (Settings → Connectors → API keys).

Client API

createGranolaClient({ apiKey, baseUrl?, fetchImpl? }) couvre toute la surface documentée de l'API publique (https://public-api.granola.ai) : notes, note + transcript, folders, webhook-endpoints (CRUD). Rate limits officiels : burst 25 req/5 s, 5 req/s soutenu.