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

@matimo/microsoft

v0.1.5

Published

Microsoft Graph tools for Matimo (search, files, mail, Teams, calendar, SharePoint)

Readme

@matimo/microsoft

Microsoft Graph tools for Matimo — search, OneDrive/SharePoint files, Outlook mail, Microsoft Teams, calendar, and SharePoint publishing through YAML-defined tools that work with any AI framework.

📦 Installation

npm install @matimo/microsoft
# or
pnpm add @matimo/microsoft

🚀 Quick Start

import { MatimoInstance } from '@matimo/core';

const matimo = await MatimoInstance.init('./packages/microsoft/tools');

// Search across SharePoint and OneDrive
const search = await matimo.execute('ms_search_knowledge', {
  query: 'Q3 budget filetype:xlsx',
  top: 5,
});

// List files in a OneDrive folder
const files = await matimo.execute('ms_list_files', {
  drive_id: 'b!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
});

// Read a plain-text file's contents
const file = await matimo.execute('ms_read_file', {
  drive_id: 'b!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  item_id: '01ABCXYZ7654321',
});

// Send an email (requires_approval: true — routed through HITL)
await matimo.execute('ms_send_email', {
  to: ['[email protected]'],
  subject: 'Weekly status update',
  body: 'Here is the summary for this week...',
});

🛠️ Available Tools

| Tool | Description | Risk | Graph endpoint | |------|-------------|------|----------------| | ms_search_knowledge | Search SharePoint sites, OneDrive/SharePoint files, and list items | low | POST /search/query | | ms_read_file | Read a OneDrive/SharePoint file's contents (plain-text formats only) | low | GET /drives/{id}/items/{id}/content | | ms_list_files | List the children of a OneDrive/SharePoint folder | low | GET /drives/{id}/items/{id}/children | | ms_get_email | List messages in the signed-in user's mailbox | low | GET /me/messages | | ms_send_email | Send an email as the signed-in user | high (approval) | POST /me/messages + /send | | ms_send_teams_message | Post (or reply to) a message in a Teams channel | medium | POST /teams/{id}/channels/{id}/messages | | ms_create_document | Upload a small file to OneDrive/SharePoint (≤4 MB) | medium | PUT /drives/{id}/items/{id}:/{name}:/content | | ms_create_calendar_event | Create a calendar event, optionally as a Teams meeting | medium | POST /me/events | | ms_publish_to_sharepoint | Create and publish a SharePoint site page | high (approval) | POST /sites/{id}/pages + /publish |

🔐 Authentication

Microsoft Graph tools use delegated OAuth2 access tokens. Matimo never performs the OAuth code exchange itself — connect Microsoft through your Matimo deployment (Nova), then provide the resulting token at execution time:

export MICROSOFT_GRAPH_ACCESS_TOKEN="eyJ0eXAiOiJKV1Qi..."

or pass it through per-call credentials:

await matimo.execute(
  'ms_get_email',
  { top: 5 },
  { credentials: { MICROSOFT_GRAPH_ACCESS_TOKEN: token } }
);

See definition.yaml for the full OAuth2 provider configuration (authorization/token endpoints, default scopes, and app registration setup steps).

⚠️ Risk & Approval

ms_send_email and ms_publish_to_sharepoint are marked risk: high and requires_approval: true — Matimo routes them through the human-in-the-loop approval flow before they execute, since they send mail and publish content visible to others on the user's behalf. ms_send_teams_message, ms_create_document, and ms_create_calendar_event are risk: medium (external writes, narrower blast radius). The remaining read-only tools are risk: low.

📚 Integration Examples

See examples/tools/microsoft/ for runnable factory, decorator, LangChain agent, and policy-approval examples.

Additional Resources