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/grokbot

v0.26.0

Published

Module natif GrokBot — pilotage d'agents cloud via l'API Cursor v1 (token utilisateur, agents, runs, usage, artefacts)

Downloads

983

Readme

@creezio/grokbot

Module natif GrokBot : pilotage d'agents cloud via l'API Cursor v1 (https://api.cursor.com) depuis une app Creezio — le token Cursor est stocké côté serveur (jamais renvoyé en clair), les agents lancés sont mirrorés en brand.db.

Architecture (ADR-module-natif-hybride)

  • Mount hybride grokbot — enregistré par la marque (api.registerModuleApi("grokbot", createGrokbotMount({ defaults }))) → HTTP /api/v1/modules/grokbot/*, données en brand.db (grokbot_settings, grokbot_agents).
  • Token : clé API Cursor (Dashboard → API Keys ou service account), posée à chaud via PUT config — masquée en GET config.
  • Miroir local : chaque agent vu (create/list/get) est upserté dans grokbot_agents (prompt, repo, branche, PR, statut) — lecture hors-ligne via GET agents?source=local.
  • MCP : les opérations clés (list-agents, create-agent, get-agent, create-run, get-run) sont déclarées mcpPublishDefault: true → l'assistant peut piloter les agents via les tools générés.
  • UI : @creezio/grokbot/uiGrokbotClient compose grokbot-launch-form (Select repos/modèles/mode, refresh cache 1 h), grokbot-usage-artifacts (usage + download présigné) et grokbot-agent-runs (liste + timeline, poll ciblé, unarchive). Token jamais affiché en clair. SSE (GET …/runs/{runId}/stream) hors scope v1 — le suivi est un poll HTTP de l'agent ouvert.

API mount (câblé par la marque)

| Méthode | Chemin | Rôle | |---------|--------|------| | GET/PUT/DELETE | config | token Cursor + défauts (masqué en GET) | | GET | status | vérifie la clé (GET /v1/me) | | GET | models | modèles disponibles (GET /v1/models) | | GET | repositories[?refresh=1] | repos GitHub — cache DB 1 h (rate limit amont 1 req/min) | | GET | agents[?source=local] | liste distante + miroir local | | POST | agents | lance un agent { text, repoUrl?, ref?, prUrl?, modelId?, autoCreatePR?, mode?, … } | | GET/DELETE | agents/<id> | métadonnées / suppression définitive | | POST | agents/<id>/archive · unarchive | soft delete réversible | | GET/POST | agents/<id>/runs | runs / prompt de suivi { text, mode? } | | GET | agents/<id>/runs/<runId> | état du run (résultat, durée, branches) | | POST | agents/<id>/runs/<runId>/cancel | annule le run actif | | GET | agents/<id>/usage[?runId=] | usage tokens par run | | GET | agents/<id>/artifacts[/download?path=] | artefacts (URL présignée 15 min) |

Câblage marque (3 gestes)

// 1. server/src/electron/brand-grokbot-content.ts (défauts, optionnel)
export const brandGrokbotDefaults = {
  defaultRepoUrl: "https://github.com/mon-org/mon-repo",
};

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

// 3. brand-module-api.ts
api.registerModuleApi(
  "grokbot",
  createGrokbotMount({ defaults: brandGrokbotDefaults, permission: "nav.grokbot" }),
);

permission est recommandé : le token Cursor pilote des agents qui poussent du code sur vos dépôts.

Client API

createCursorAgentsClient({ apiKey, baseUrl?, fetchImpl? }) couvre toute la surface documentée de l'API Cloud Agents v1 : agents (create/list/get/ delete/archive/unarchive), runs (create/list/get/cancel), usage, artifacts (+ download présigné), me, models, repositories. Le streaming SSE (GET …/runs/{runId}/stream) n'est pas couvert — l'état terminal se lit via Get A Run.