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

@zainahmed.net/sdk

v1.0.2

Published

Official TypeScript & JavaScript client SDK and CLI for Zain Ahmed's Architecture API & MCP Server

Readme

@zainahmed.net/sdk

Official TypeScript & JavaScript client SDK and interactive CLI for Zain Ahmed's Architecture API & Model Context Protocol (MCP) Server.

npm version npm downloads License: MIT TypeScript OpenAPI 3.1 MCP

Documentation • Interactive Console • OpenAPI 3.1 Spec • Agent Card • GitHub


Overview

@zainahmed.net/sdk provides first-class programmatic access to Zain Ahmed's public platform, verified cloud blueprints, and agentic discovery protocols.

Designed with zero external runtime dependencies, it runs seamlessly across Node.js, Bun, Deno, Cloudflare Workers, and modern browser environments.

Key Highlights

  • ⚡ Zero Runtime Dependencies: Uses standard Web APIs (fetch, Headers, URLSearchParams).
  • 🛡️ Complete Type Safety: 100% strict TypeScript types synchronized with the live OpenAPI 3.1.0 schema.
  • 🤖 Agentic & Natural Language Engine: Direct integration with the verified /ask NLWeb semantic reasoning endpoint.
  • 🔌 Model Context Protocol (MCP): Programmatically export and inspect MCP server configuration for Cursor, Claude Desktop, and Antigravity agents.
  • 📦 Dual ESM & CommonJS: Full compatibility with both import and require workflows.
  • 💻 Zero-Install CLI: Instant terminal access via npx @zainahmed.net/sdk.

Table of Contents


Installation

Install using your preferred package manager:

# npm
npm install @zainahmed.net/sdk

# pnpm
pnpm add @zainahmed.net/sdk

# yarn
yarn add @zainahmed.net/sdk

# bun
bun add @zainahmed.net/sdk

CLI Quickstart

Execute commands instantly without installation using npx:

# 1. Inspect live system status and service manifests
npx @zainahmed.net/sdk status

# 2. Query engineer profile and multi-cloud certifications
npx @zainahmed.net/sdk inspect --endpoint=profile

# 3. Filter verified architectural case studies
npx @zainahmed.net/sdk query --category=cloud-architecture

# 4. Ask natural language technical questions
npx @zainahmed.net/sdk ask "What multi-cloud certifications does Zain hold?"

# 5. Output ready-to-use Model Context Protocol (MCP) JSON configuration
npx @zainahmed.net/sdk mcp

CLI Command Reference

| Command | Description | Example | | :--- | :--- | :--- | | status | Ping the API and display active version, endpoints, and manifests | npx @zainahmed.net/sdk status | | inspect | Fetch raw payload for a specific endpoint (profile, projects, articles, services) | npx @zainahmed.net/sdk inspect --endpoint=profile | | query | Filter architectural case studies by category | npx @zainahmed.net/sdk query --category=kubernetes | | ask <query> | Query Zain Ahmed's verified knowledge base in natural language | npx @zainahmed.net/sdk ask "Explain the SummitLMS architecture" | | mcp | Print formatted mcpServers configuration for Cursor & Claude Desktop | npx @zainahmed.net/sdk mcp | | help | Display interactive CLI help menu | npx @zainahmed.net/sdk help |


SDK Quickstart

TypeScript / ESM

import { ZainAhmedClient } from "@zainahmed.net/sdk"

const client = new ZainAhmedClient()

// Fetch verified credentials and certifications
const profile = await client.profile.get()
console.log(`Connected to: ${profile.name} // ${profile.title}`)

// Query verified case studies
const { projects } = await client.projects.list({
  category: "cloud-architecture",
  limit: 5,
})

for (const project of projects) {
  console.log(`- [${project.category}] ${project.title}: ${project.tagline}`)
}

// Ask natural language questions via verified NLWeb reasoning
const queryResult = await client.ask.query("What is Zain's background in FinOps and Kubernetes?")
console.log("Answer:", queryResult.answer)

CommonJS

const { ZainAhmedClient } = require("@zainahmed.net/sdk")

const client = new ZainAhmedClient()

client.profile.get().then((profile) => {
  console.log(profile.name, profile.title)
})

API Reference

Profile & Credentials

Retrieve verified engineer credentials, multi-cloud certifications, and architectural proficiencies:

// Get entire profile
const profile = await client.profile.get()

// Get specific profile section
const credentials = await client.profile.get("credentials")
const bio = await client.profile.get("bio")
const contacts = await client.profile.get("contacts")

Case Studies & Blueprints

Explore verified enterprise architecture case studies with category filtering:

const { projects } = await client.projects.list({
  category: "cloud-architecture", // "devsecops" | "ai-ml" | "finops"
  limit: 10,
})

Technical Articles

Query published technical articles and infrastructure deep dives:

const { articles } = await client.articles.list({
  category: "kubernetes",
  limit: 5,
})

Engineering Services

Retrieve available consulting tiers, architecture advisory packages, and engagement terms:

const services = await client.services.list("advisory")

Natural Language Inquiry (ask)

Ask natural language questions evaluated against verified background, certifications, and project artifacts:

const response = await client.ask.query("What multi-cloud certifications does Zain hold?")

console.log("Summary:", response.answer)
console.log("Sources:", response.sources)

Contact Form & Inquiries

Submit an engineering inquiry or project proposal directly to the platform:

const confirmation = await client.contact.send({
  name: "Sarah Chen",
  email: "[email protected]",
  company: "Apex Cloud Technologies",
  subject: "Multi-Cloud SRE Advisory",
  message: "We would like to discuss platform engineering support for our Kubernetes migration.",
  idempotencyKey: "req_8f192b0a-3d21", // Optional RFC 7231 idempotency key
})

console.log(confirmation.status) // "success"

Agent & RFC Discovery

Fetch machine-readable specifications and discovery files:

// AI Agent Catalog (/.well-known/ai-catalog.json)
const aiCatalog = await client.discovery.getAiCatalog()

// A2A Agent Card (/.well-known/agent-card.json)
const agentCard = await client.discovery.getAgentCard()

// MCP Server Descriptor (/.well-known/mcp/server-card.json)
const mcpCard = await client.discovery.getMcpServerCard()

Model Context Protocol (MCP)

@zainahmed.net/sdk includes built-in support for the Anthropic Model Context Protocol (MCP). Connect coding agents (Claude Desktop, Cursor, Antigravity) to the live API.

Claude Desktop Configuration

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "zainahmed": {
      "url": "https://zainahmed.net/mcp",
      "transport": "streamable-http"
    }
  }
}

Cursor Integration

In .cursor/mcp.json:

{
  "mcpServers": {
    "zainahmed": {
      "url": "https://zainahmed.net/mcp"
    }
  }
}

Claude Code CLI

claude mcp add zainahmed https://zainahmed.net/mcp

Configuration

Customize the client instance with options:

import { ZainAhmedClient } from "@zainahmed.net/sdk"

const client = new ZainAhmedClient({
  // Custom base URL (defaults to https://zainahmed.net)
  baseUrl: "https://zainahmed.net",

  // Optional Bearer token for authenticated routes
  apiKey: process.env.ZAINAHMED_API_KEY,

  // Custom fetch implementation (useful for mocks, caching, or custom proxies)
  fetch: globalThis.fetch,
})

RFC Standards & Compliance

@zainahmed.net/sdk is built to interact with an API adhering to strict RFC standards:

  • RFC 9727: API Catalog (/.well-known/api-catalog)
  • RFC 9728: OAuth Protected Resource (/.well-known/oauth-protected-resource)
  • RFC 8414: OAuth 2.0 Authorization Server Metadata (/.well-known/oauth-authorization-server)
  • RFC 9421: HTTP Message Signatures (/.well-known/http-message-signatures-directory)
  • RFC 6585: Additional HTTP Status Codes (429 Too Many Requests)

License

MIT © Zain Ahmed ([email protected])