MCPcopy
hub / github.com/rapi-doc/RapiDoc

github.com/rapi-doc/RapiDoc @v9.3.8 sqlite

repository ↗ · DeepWiki ↗ · release v9.3.8 ↗
6,145 symbols 16,832 edges 55 files 393 documented · 6%
README

MrinDoc logo

<img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square"/>
<img src="https://img.shields.io/github/size/rapi-doc/rapidoc/dist/rapidoc-min.js.svg?colorB=blue&label=minified&style=flat-square">
<img src="https://img.shields.io/github/size/rapi-doc/rapidoc/dist/rapidoc-min.js.gz.svg?colorB=blue&label=zip&style=flat-square">
<a href="https://www.webcomponents.org/element/rapidoc" alt="published on webcomponents.org">
    <img src="https://img.shields.io/badge/webcomponents.org-rapidoc-blue.svg?style=social"/>
</a>

RapiDoc

Custom Element for Open-API spec viewing

Sponsored by Zuplo - Get a Stripe-like API experience for your customers in minutes - documentation, rate-limiting and API-key auth in minutes.

Features

  • Supports Swagger 2.0, OpenAPI 3.x.x
  • Works with any framework or with no framework
  • Allows making API calls
  • Better Usability,
  • all Models and Examples are expanded by default, eliminates the need to click and reveal.
  • Request fields are pre-populated with sample data
  • Takes only one click to make an API call
  • Request and response can be placed side-by-side for easy comparison
  • Branding and Personalization features makes it easy to follow any style guide
  • Comes with 2 Themes (Dark and Light)
  • Replace default logo with yours
  • Typography, allows changing fonts
  • Allows changing text-color, button-color, header-color and color of other UI elements
  • Plenty of customization options
  • Add external contents at the top and bottom of the document, you may add images, link, text, forms etc
  • Allows disabling API calling feature
  • Hide the header, so the user can't load any other OpenAPI Spec
  • Hide Authentication and provide your own pre-generated api-key
  • Embed it inside another HTML document
  • Use it inside another framework (react, vue, angular, lit-element)
  • Use JavaScript to change its attributes, and it will react to those changes
  • Style the element with standard css (change padding, position, border, margin )
  • Lightweight and fast
  • Load local json spec from the disk
  • Supported on Chrome, FireFox and Safari. (Not yet tested on Edge)

Documentation

Check out the usage and demos

Examples

Examples and Test cases

Build Process

# Clone / Download the project then
npm install

# build will generate rapidoc-min.js, this is the only file you will need.
# use it in the script tag of your html <script type="text/javascript" src="https://github.com/rapi-doc/RapiDoc/raw/v9.3.8/rapidoc-min.js"></script></body>
npm run build 

# for development use yarn serve (this will start an webserver at port 8080, then navigate to localhost:8080) 
npm run serve

Roadmap

  • ✅ Upgrade to use lit 2
  • Pre Rendering / Server Side Rendering (SSR) of RapiDoc
  • Improve PDF generation of OpenAPI spec Using RapiPDF
  • Create a Command Line interface (CLI) to make it automation friendly
  • Add localization support
  • Follow Web Content Accessibility Guidelines (WCAG 2)
  • Improve Homepage, Documentation and Examples
  • Create groundwork for automated testing
  • Create a live playground (Something like swagger editor)
  • Create a short animation/video to show how RapiDoc/RapiPDF works

Core symbols most depended-on inside this repo

push
called by 1064
docs/rapidoc.js
concat
called by 579
docs/rapidoc.js
push
called by 530
docs/rapidoc-min.js
includes
called by 422
docs/rapidoc.js
set
called by 408
docs/rapidoc.js
forEach
called by 408
docs/rapidoc.js
J
called by 407
docs/rapidoc-min.js
ke
called by 406
docs/images/example1_files/analytics.js

Shape

Function 2,971
Method 2,248
Class 926

Languages

TypeScript100%

Modules by API surface

docs/rapidoc.js2,212 symbols
docs/rapidoc-min.js1,967 symbols
docs/images/example1_files/rapidoc-min.js1,517 symbols
docs/images/example1_files/analytics.js147 symbols
src/components/api-request.js38 symbols
src/rapidoc.js35 symbols
docs/slider/BeerSlider.js21 symbols
src/utils/schema-utils.js17 symbols
src/rapidoc-mini.js16 symbols
src/templates/security-scheme-template.js15 symbols
src/json-schema-viewer.js15 symbols
src/components/api-response.js13 symbols

Dependencies from manifests, versioned

@apitools/openapi-parser0.0.33 · 1×
@babel/core7.25.8 · 1×
@babel/eslint-parser7.25.8 · 1×
@babel/preset-env7.25.8 · 1×
babel-loader9.2.1 · 1×
babel-plugin-template-html-minifier4.1.0 · 1×
base64-arraybuffer1.0.2 · 1×
buffer6.0.3 · 1×
clean-webpack-plugin4.0.0 · 1×
compression-webpack-plugin11.1.0 · 1×
css-loader7.1.2 · 1×
eslint8.57.1 · 1×

For agents

$ claude mcp add RapiDoc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact