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

@rn-cross-platform-docs/cli

v2.1.0

Published

Markdown API reference for React Native native modules, one tree per platform: TypeScript, Kotlin and Swift

Readme

rn-cross-platform-docs

A thin wrapper around TypeDoc, Dokka and DocC for React Native native modules: it turns each platform's doc comments into Markdown, one folder per platform, and a site plugin turns those folders into one doc site.

docs/reference/
  typescript/   TypeDoc with typedoc-plugin-markdown
  kotlin/       Dokka 2, GitHub-flavored Markdown
  swift/        DocC Markdown output

Usage

CLI

From the library root; Kotlin needs a JDK, Swift needs Xcode.

npm install --save-dev @rn-cross-platform-docs/cli [email protected] [email protected]
(cd example && npx expo prebuild)   # Kotlin and Swift need the library buildable first; this is the Expo way
npx rn-cross-platform-docs generate

To build a site from the Markdown (needs uv on PATH):

npm install --save-dev @rn-cross-platform-docs/zensical
npx rn-cross-platform-docs-zensical build   # the site is docs-site/site/

The site's home page is the library's README.md. The pages in guides/, if there is one, follow in the order the README links them, a folder of guides where its first linked guide is; guides/.nav.yml overrides that. Site name, description and repo link come from package.json.

With --site-url, which the GitHub Actions workflow passes, the site also serves llms.txt at its root for coding agents. It links a Markdown copy of each page but TypeDoc's copies of the guides, <page>/index.md, and each of those pages gets a Copy as Markdown button.

Both commands take --help for their options.

GitHub Actions

Generates the reference, builds the Zensical site and deploys it to GitHub Pages. Needs both packages as dev dependencies, and the repo's Pages source set to GitHub Actions (Settings → Pages).

name: Docs site
on:
  push:
    branches: [main]
permissions:
  contents: read
  pages: write
  id-token: write
concurrency:
  group: pages
  cancel-in-progress: false
jobs:
  docs:
    uses: RasmusKard/rn-cross-platform-docs/.github/workflows/deploy-zensical.yml@v2
    with:
      prepare: cd example && npx expo prebuild

The default install runs npm ci, plus npm ci in example/ when it has a package-lock.json; with yarn or pnpm, set the install input so prepare finds the example app's dependencies.

For the reference alone, use generate.yml the same way: it uploads one api-reference-<platform> artifact per platform, holding <platform>.tar. Both workflows list their inputs at the top.

Good to know

  • TypeScript: Without entryPoints in your TypeDoc config, TypeDoc documents src/index.ts(x).
  • Kotlin: Write module and package documentation in android/Module.md, in Dokka's format, as the example's Module.md does.
  • Kotlin: Pages list the members a class declares or overrides, not the ones it inherits.
  • Swift: To show a DocC catalog's landing article, list the catalog's files in the podspec's source_files, as ExpoGreeter.podspec does.
  • Swift: With Xcode 27, a type's page doesn't list its members, and the landing page lists only the Topics a catalog writes; the site's sidebar still lists them all. swift-docc#1625 fixes it in a later release.