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

@agentapps/app.microsoft.onedrive

v1.1.0

Published

Browse, upload, organize, and share OneDrive files via Microsoft Graph

Readme

OneDrive

Lets an agent manage the files in the signed-in user's OneDrive: browse, search, read, upload, download, copy, move, rename and delete files and folders, convert documents to PDF, and share them by link or by invitation. It uses the Microsoft Graph API (https://graph.microsoft.com/v1.0) with OAuth, always on the user's own drive (/me/drive). Items are addressed by drive item id (itemId) or by path from the drive root (path).

Tools

| Tool | What it does | Writes? | |---|---|---| | get-drive-info | Returns the account's drive, with storage quota and usage. | no | | list-items | Lists the files and folders in a folder, the drive root by default (50 by default, 200 at most). | no | | get-item | Returns the metadata of one file or folder. | no | | search-items | Searches the drive for files and folders matching a text. | no | | list-recent | Lists the files the account used recently. | no | | list-shared-with-me | Lists items other people shared with the account. Listing only: the other tools cannot open them. | no | | list-versions | Lists a file's version history. | no | | get-file-content | Returns the content of a text file inline, up to 1 MB. | no | | download-file | Saves a file to the local disk, in /workspace/onedrive-downloads unless a path is given. | yes, asks first | | convert-file | Converts a document to PDF and saves it to the local disk. | yes, asks first | | upload-file | Uploads a local file, replacing a file of the same name. | yes, asks first | | create-folder | Creates a folder. | yes, asks first | | copy-item | Copies a file or folder to another folder and waits for the copy to finish. | yes, asks first | | move-item | Moves a file or folder to another folder. | yes, asks first | | rename-item | Renames a file or folder. | yes, asks first | | delete-item | Moves a file or folder to the recycle bin. The app cannot restore it. | yes, asks first | | list-permissions | Lists who has access to an item and through which links. | no | | create-share-link | Creates a sharing link with a chosen permission and audience. | yes, asks first | | invite-people | Shares an item with people by email, with read or write access. | yes, asks first | | remove-permission | Revokes a sharing permission or link. | yes, asks first |

Limits:

  • download-file and convert-file refuse files above 50 MB.
  • upload-file sends files of 4 MB or more in chunks; a failed chunk aborts the whole upload.
  • upload-file, download-file and convert-file read and write files on the machine the app runs on.

Setup

The app signs in with OAuth, so it first needs an OAuth client of your own. Register an application in the Microsoft Entra admin center (App registrations), add the redirect URI {station URL}/auth/callback as a Web redirect, create a client secret, and allow the delegated Microsoft Graph permissions User.Read, offline_access, Files.ReadWrite.All and Sites.Read.All. The app signs in through Microsoft's common endpoint.

agentapps install app.microsoft.onedrive onedrive
agentapps config app.microsoft.onedrive CLIENT_ID:<client id> CLIENT_SECRET:<client secret>
agentapps onedrive auth
agentapps onedrive tools
agentapps onedrive tool list-items path:/Documents maxResults:10

CLIENT_ID and CLIENT_SECRET are system secrets, set once on the app id. agentapps onedrive auth opens the Microsoft sign-in and stores that account's tokens in the installation.

Terms of use

Microsoft's own terms apply to everything the app does on your behalf: the Microsoft APIs Terms of Use at https://learn.microsoft.com/en-us/legal/microsoft-apis/terms-of-use and, for the account, the Microsoft Services Agreement at https://www.microsoft.com/en-us/servicesagreement or your organization's Microsoft 365 agreement. TODO: note here the Graph throttling limits that matter to someone installing the app; none was checked for this README.

Logos

| File | Source | Changes | |---|---|---| | assets/logo.svg | https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/OneDrive-Icon-FY26, Microsoft's site media host, which serves the icons of its product pages | none | | assets/logo-mono.svg | the same file | made from assets/logo.svg: its layers kept apart with fill-opacity (0.45 for the lightest to 1 for the darkest), each cut where a later one covers it, and its white shapes cut out (paper.js; the shapes are the file's own) |

Changed on 2026-11-23, asked for by the project owner: the files this app had were the previous (2019) design of the OneDrive icon. Nobody has read Microsoft's trademark terms for this use.