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

agent-office-sdk

v0.0.6

Published

TypeScript SDK for Agent Office API - AI-powered document editing

Readme

Agent Office SDK

TypeScript SDK for the Agent Office API - AI-powered document editing for agentic workflows.

Installation

npm install agent-office-sdk
# or
bun add agent-office-sdk

Quick Start

import { AgentOffice } from "agent-office-sdk";
import fs from "fs";

// Initialize the client
const client = new AgentOffice({
  apiKey: "sk_ao_your_api_key", // Get your key from https://agentoffice.dev
});

// Upload a document
const fileBuffer = fs.readFileSync("./document.docx");
const file = new File([fileBuffer], "document.docx");
const { docId, markdown } = await client.documents.create({
  file: file,
  returnMarkdown: true,
});

// Edit the document
await client.edit({
  docId: docId,
  editUid: crypto.randomUUID(),
  editInstructions: "Change the title to 'My New Title'",
  trackedChanges: false,
});

// Download the edited document
const result = await client.documents.download({ docId: docId });
const fileResponse = await fetch(result.downloadUrl);
// Save or process the file...

Features

  • 📝 Upload and convert documents (DOCX, PDF, etc.)
  • ✏️ AI-powered document editing
  • 📖 Read document content as Markdown
  • 💾 Download edited documents
  • 🔄 Track changes support

API Reference

Client Initialization

const client = new AgentOffice({
  apiKey: string, // Required: Your API key
  baseUrl: string, // Optional: Default is https://api.agentoffice.dev
});

Documents

Create Document

await client.documents.create({
  file: File, // The document file
  returnMarkdown: boolean, // Return markdown content
  ttlSeconds: number, // Time to live in seconds
});

Download Document

await client.documents.download({
  docId: string,
  expiresIn: number, // Presigned URL expiration in seconds
});

List Documents

await client.documents.list();

Edit Document

await client.edit({
  docId: string,
  editUid: string, // Unique identifier for the edit
  editInstructions: string, // Natural language edit instructions
  lookupText: string, // Text to locate the edit position
  trackedChanges: boolean, // Enable track changes
  useLargeModel: boolean, // Use larger AI model
});

Read Document

await client.read({
  docId: string,
  readUid: string, // Unique identifier for the read
});

License

MIT

Support

  • Website: https://agentoffice.dev
  • Documentation: https://docs.agentoffice.dev