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

@lynx-example/markdown

v0.2.3

Published

An example shows how to use `<markdown>` in Lynx

Readme

Markdown

ReactLynx examples for the <markdown> element. Each snippet has its own entry, following the multi-entry layout used by other element examples.

Run

From the repository root, use the Node and pnpm versions in CONTRIBUTING.md:

pnpm install
pnpm --filter @lynx-example/markdown dev

Open an entry's QR code in a Lynx Explorer build that registers <markdown>. To build all entries, including TypeScript validation:

pnpm --filter @lynx-example/markdown build

For local Android testing, serve examples/markdown/dist over HTTP, forward the port with adb reverse, and open the bundle through lynx://open?url=<URL-encoded-bundle-URL>.

Entries

| Feature | Entry names | | ----------------------------- | --------------------------------------------------------------------------------------------------- | | Basic content and styles | basic, style, link_style, span_style, paragraph_style | | Images and captions | image, image_size, image_caption, image_caption_style, gif | | Embedded views and text marks | inline_view, span_mark, text_mark_attachments | | Truncation | truncation, truncation_text, truncation_view | | Typewriter animation | typewriter, typewriter_cursor, typewriter_keep_cursor, typewriter_mask | | Selection | text_selection, selection_menu, selection_select_all, selection_copy, selection_paragraph |

For an entry named <name>, the source is src/<name>/index.tsx and the native bundle is dist/<name>.lynx.bundle.

The selection examples build up the behavior in stages: native selection, menu placement, selecting all text, reading selected text, and selecting a paragraph. Long-press the text to begin. selection_copy displays the result of getSelectedText; writing that result to the system clipboard requires a host-provided clipboard API. The earlier menu examples show the menu before adding the corresponding action handlers.

getTextBoundingRect returns page coordinates. Convert them to the menu container's coordinates for positioning, or to the markdown element's coordinates before passing them to setTextSelection.

Website integration

After validating a snippet and preparing its screenshot, use the matching entry in the website's Go component. For example:

<Go
  example="markdown"
  defaultFile="src/basic/index.tsx"
  defaultEntryFile="dist/basic.lynx.bundle"
  entry="src/basic"
  img={markdownBasicImg}
/>

Use the same entry name for the source, bundle, and entry properties. Native rendering and interactions must be checked in Lynx Explorer; a successful bundle build alone does not verify native component behavior.