MCPcopy Index your code
hub / github.com/drpcorg/drpc-nextra

github.com/drpcorg/drpc-nextra @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,198 symbols 1,524 edges 1,226 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DRPC documentation

This is DRPC documentation site, based on http://nextra.site

Local Development

It's strongly recommended to use nvm a.k.a Node Version Manager to manage your Node.js versions.

  1. Make sure you use Node.js version 18 or higher. You can check this by running node -v in your terminal/console.

  2. Make sure you have Yarn installed. You can check this by running yarn -v in your terminal/console. You can install it by running npm install -g yarn.

  3. Run yarn to install the dependencies.

  4. Run yarn dev to start the development server and visit http://localhost:3000/docs

SEO metadata tips

For *-api pages we can easily set common rules for generating metadata in theme.config.tsx.
For other pages, sometimes we need the default values, and sometimes we need custom ones.
Here's how metadata is being set:

- /docs:
metadata set in theme.config.tsx

-- /docs/*-api: 
metadata set in theme.config.tsx

--- /docs/*-api/section: 
metadata set in theme.config.tsx

---- /docs/*-api/section/method:
metadata is auto-generated by Nextra and based on the page content 

-- /docs/any-other-page:
title and description are set via <Meta> component, all other metadata is autogenerated by Nextra

⚠️ It’s important to use the <Meta> component on pages that are not part of the Methods Documentation (i.e. /docs/ethereum-api/ and everything inside) — otherwise the metadata will be missing. See an example of its usage in /howitworks/overview.

Troubleshooting

Missing meta title

This code will cause title go missing, since Nextra will automatically wrap the title in the `

` tag

<Head>
  <title>
     Understanding dRPC Rate Limiting
  </title>
</Head>

So we'll see something like this in the resulting HTML:

<title>


Understanding dRPC Rate Limiting


</title>

Solution: keep the title in one line or use <Meta> component.

License

This project is licensed under the MIT License.

Core symbols most depended-on inside this repo

getParamsType
called by 4
components/GenericMethod/getParamsType.ts
addRedirectsIntoSections
called by 3
next.config.mjs
useCopyString
called by 2
components/hooks/useCopyString.tsx
isDocsInfoPage
called by 2
utils/text/seo.ts
shouldMakeInvisibleHeading
called by 2
utils/text/seo.ts
getLanguageName
called by 1
components/GenericMethod/getLanguageName.ts
isDocsPage
called by 1
utils/text/seo.ts
isDocsChapterPage
called by 1
utils/text/seo.ts

Shape

Function 1,198

Languages

TypeScript100%

Modules by API surface

utils/text/seo.ts5 symbols
next.config.mjs2 symbols
utils/text/textToHrefId.ts1 symbols
theme.config.tsx1 symbols
pages/_document.js1 symbols
components/nodecore/quickstart/NodeCoreQuickstart.tsx1 symbols
components/method-docs/wallet/WalletMethod_searchhistoricalprices.tsx1 symbols
components/method-docs/wallet/WalletMethod_refreshnftmetadata.tsx1 symbols
components/method-docs/wallet/WalletMethod_getyieldrecommendations.tsx1 symbols
components/method-docs/wallet/WalletMethod_getwalletnftsmultichain.tsx1 symbols
components/method-docs/wallet/WalletMethod_getwalletnfts.tsx1 symbols
components/method-docs/wallet/WalletMethod_gettransactionshistory.tsx1 symbols

For agents

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

⬇ download graph artifact