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

@nera-static/plugin-one-page

v2.0.1

Published

A plugin for Nera static site generator to merge content from multiple markdown pages into single output pages. Perfect for landing pages and one-page layouts.

Readme

📄 @nera-static/plugin-one-page

A plugin for the static site generator Nera to merge content from multiple markdown pages into a single output page. Ideal for landing pages and long-form content.

✨ Features

  • Merge content from multiple .md files into one HTML page
  • Define content order and anchor IDs
  • Auto-generate anchors from headings if none provided
  • Optional tag and attribute wrappers per section
  • Fully configurable via frontmatter and plugin defaults

🚀 Installation

Install the plugin in your Nera project:

npm install @nera-static/plugin-one-page

No further setup required — the plugin uses sensible defaults.

⚙️ Configuration

You define behavior directly in the meta section (frontmatter) of your markdown files. By default, the plugin uses the following meta keys:

add_to_page: <path to main page>
add_to_page_order: <sorting order>
anchor_id: <custom anchor ID>
content_wrapper_tag: <e.g., section, div>
content_wrapper_attributes:
    - attribute: ...
      value: ...

If you'd like to override the default property names, you can create a file config/one-page.yaml in your project with custom keys:

property_name: add_to_page
order_property: add_to_page_order
anchor_id_property: anchor_id
content_wrapper_tag_property: content_wrapper_tag
content_wrapper_attributes_property: content_wrapper_attributes

🧩 Usage

Suppose you want to merge service.md, prices.md, and about-us.md into index.html.

Directory structure

pages/
├── index.md
├── service.md
├── prices.md
└── about-us.md

Meta frontmatter of sub-pages

pages/service.md

---
title: Service
add_to_page: /index.html
add_to_page_order: 1
anchor_id: service-section
---

Content for service

pages/prices.md

---
title: Prices
add_to_page: /index.html
add_to_page_order: 2
content_wrapper_tag: div
content_wrapper_attributes:
    - attribute: class
      value: price-wrapper
---

Prices content

pages/about-us.md

---
title: About Us
add_to_page: /index.html
add_to_page_order: 3
content_wrapper_attributes:
  - attribute: style
    value: background-color: red;
---

# About Our Company

About content goes here.

What it generates

The content of service.md, prices.md, and about-us.md will be appended to the output of index.html, wrapped in tags and anchor elements like:

<section class="...">
    <a id="service-section"></a>
    Content for service
</section>

<div class="price-wrapper">
    <a id="prices"></a>
    Prices content
</div>

<section style="background-color: red;">
    <a id="about-our-company"></a>
    About content goes here.
</section>

🧪 Development

npm install
npm test
npm run lint

🔄 Compatibility

  • Nera v4.1.0+: Full compatibility with latest static site generator
  • Node.js 18+: Modern JavaScript features and ES modules
  • Plugin Utils v1.1.0+: Enhanced plugin utilities integration

🏗️ Architecture

This plugin uses the getMetaData() function to process page content and merge sections based on frontmatter configuration. It operates purely on content level without requiring templates.

🧑‍💻 Author

Michael Becker
https://github.com/seebaermichi

🔗 Links

📦 License

MIT