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

@editlayer/next

v0.3.1

Published

Add safe, in-page visual editing to a Next.js (App Router) site — let owners/marketing edit static marketing copy with ?edit=true and publish to GitHub. Webflow-style copy editing for custom-coded React sites, no CMS required.

Downloads

65

Readme

@editlayer/next

Add safe, in-page visual editing to your Next.js site. EditLayer is a tiny, secure editing layer for custom-coded Next.js (App Router) marketing websites — mark static marketing copy (headlines, subtitles, CTAs, paragraphs) as editable, then let owners and marketing teams edit it directly on the page with ?edit=true and publish changes to GitHub. Vercel auto-redeploys.

It's not a CMS, not a page builder, not a Webflow clone, not an AI generator. It's Webflow-style copy editing for a coded React site, with developers in full control of structure.

Core promise: "Add ?edit=true to your Next.js site and safely edit static marketing copy in place."

Install

npm install @editlayer/next
npx editlayer init

Quick start

// app/layout.tsx
import { EditLayerProvider } from "@editlayer/next";
import { loadEditLayerContent } from "@editlayer/next/server";

export default async function RootLayout({ children }: { children: React.ReactNode }) {
  const content = await loadEditLayerContent();
  return (
    <html lang="en">
      <body>
        <EditLayerProvider content={content}>{children}</EditLayerProvider>
      </body>
    </html>
  );
}
import { EditableText, EditableLink, EditableImage } from "@editlayer/next";

export function Hero() {
  return (
    <section>
      <EditableText id="home.hero.title" as="h1">
        Websites that move faster than your competitors.
      </EditableText>
      <EditableText id="home.hero.subtitle" as="p">
        Custom-coded marketing sites your team can safely update.
      </EditableText>
      <EditableLink id="home.hero.cta" href="/contact">Book a call</EditableLink>
    </section>
  );
}

Then visit https://yoursite.com/?edit=true, log in with a magic link, edit, and publish.

Features

  • 🟢 In-page visual editing — green outlines, click-to-edit popovers, live preview
  • 🔒 Secure by default — magic-link auth, HttpOnly cookies, role-based access, CSRF + origin checks, rate limiting, plain-text sanitization
  • 👥 Roles — owners publish; editors submit drafts
  • 🧩 Only marked fields — nothing else on your site is editable
  • 🚀 Git-based publishing — commits JSON to your repo; Vercel auto-deploys
  • No database, no external dashboard, no CMS schema

Environment variables

EDITLAYER_SECRET=...           # 32+ random chars
EDITLAYER_SITE_URL=https://yoursite.com
[email protected]
[email protected]
EDITLAYER_RESEND_API_KEY=re_...
EDITLAYER_EMAIL_FROM=EditLayer <[email protected]>
EDITLAYER_GITHUB_TOKEN=github_pat_...
EDITLAYER_GITHUB_REPO=you/your-repo
EDITLAYER_GITHUB_BRANCH=main

Optional: connect the EditLayer Dashboard

If you use the EditLayer Dashboard to manage sites and team access visually, add the three values it gives you. The site then sends a server-to-server heartbeat so the dashboard shows it as Connected — no inbound route, no CORS, and the API key never reaches the browser.

EDITLAYER_PROJECT_ID=proj_...
EDITLAYER_API_KEY=elk_live_...
EDITLAYER_DASHBOARD_URL=https://your-dashboard.com

These are fully optional and additive — without them, env-based allowlists work exactly as before.

Full setup guide, security model, and docs: https://github.com/zlatkomarjanovic/editlayer

License

MIT