sosumi.ai  by NSHipster

AI-readable Apple documentation service

Created 5 months ago
287 stars

Top 91.6% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

sosumi.ai addresses the challenge of making Apple's extensive developer documentation accessible to AI and machine processing. It provides a service that converts JavaScript-rendered Apple Developer documentation pages, including API references and Human Interface Guidelines, into a machine-readable Markdown format. This benefits engineers, researchers, and power users by enabling programmatic access and analysis of crucial Apple platform information.

How It Works

The core approach involves a web service that intercepts requests for Apple Developer documentation URLs. By replacing developer.apple.com with sosumi.ai, users can access Markdown versions of the content. The service fetches the original JavaScript-rendered pages, processes them into Markdown, and serves the result. It is built using Hono, making it compatible with various runtimes like Cloudflare Workers, and includes an MCP server supporting Streamable HTTP and SSE for direct client integration or stdio proxying.

Quick Start & Requirements

  • Prerequisites: Node.js 18+ and npm.
  • Setup: Clone the repository (git clone https://github.com/nshipster/sosumi.ai.git), navigate into the directory (cd sosumi.ai), and install dependencies (npm install).
  • Development: Start the development server with npm run dev. The service will be available at http://localhost:8787 by default.
  • Deployment: The project is designed for easy self-hosting on local machines or cloud providers, with Cloudflare Workers being a primary deployment target.

Highlighted Details

  • AI-Readable Format: Converts Apple Developer documentation (API reference, Human Interface Guidelines) into Markdown.
  • URL Rewriting: Accessible by replacing developer.apple.com with sosumi.ai in any Apple Developer documentation URL.
  • doc:// URI Scheme: Provides a custom scheme (doc://{path}) for direct access to Markdown content.
  • Developer Tools: Includes CLI tools searchAppleDocumentation (structured results) and fetchAppleDocumentation (Markdown content).
  • MCP Integration: Supports Streamable HTTP and Server-Sent Events (SSE) for Machine Communication Protocol clients.
  • Self-Hosting: Designed for easy self-hosting on local machines or cloud platforms.

Maintenance & Community

The README does not specify notable contributors, sponsorships, or community channels such as Discord or Slack.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: The MIT license generally permits commercial use and integration into closed-source projects. However, users must comply with Apple's Terms of Use and applicable law.

Limitations & Caveats

This is an unofficial project, not affiliated with or endorsed by Apple Inc. Users are solely responsible for ensuring their use complies with Apple's Terms of Use and relevant laws. The service provides transient content, fetching and briefly caching it on demand without permanent archiving, and implements rate limiting to avoid excessive load. It does not bypass security measures or facilitate redistribution.

Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
8
Issues (30d)
6
Star History
43 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.