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

npm-framework-common-library

v0.1.0

Published

Framework Common Library Components

Downloads

1

Readme

React App - WKND Adventures

An example React application that highlights Adobe Experience Manager's GraphQL APIs and the AEM Headless Client for JavaScript.

This project was bootstrapped with Create React App.

React App Screenshot

Tutorial

A corresponding tutorial is available where you can learn how to setup and run the application to query data from an AEM environment using GraphQL.

How to use

  1. On the target AEM environment install the aem-guides-wknd-shared.ui.content-x.x.x.zip from the latest release of the WKND Shared Content using Package Manager.

  2. Update the environment variables to point to your target AEM instance and add authentication (if needed)

  3. Download and install Node.js and npm

  4. Start the app from the command line:

    $ cd aem-guides-wknd-graphql/react-app-tutorial
    $ npm install
    $ npm start

On local environments it may be easier to simply install the full WKND Site 2.0+ which will include the WKND Shared content and additional CORS configurations.

System Requirements

AEM as a Cloud Service | AEM 6.5 | Sample Content | Node | npm | ------------------------|---------|--------------------|---------|-----| Continual | 6.5.13+ | WKND Shared 2.0+ or WKND Site 2.0+| 10+ | 6+

Notes

Update Environment Variables

Several environment variables are used by this project to connect to an AEM environment. Default connects to an AEM author environment running at http://localhost:4502. If you wish to change this behavior update the .env.development file accordingly:

  • REACT_APP_HOST_URI=http://localhost:4502 - Set to AEM target host
  • REACT_APP_AUTH_METHOD= - The preferred authentication method.
    • service-token - use Service token exchange for Cloud Env PROD
    • dev-token - use Dev token for local development with Cloud Env
    • basic - use user/pass for local development with Local Author Env
    • leave blank to use no authentication method
  • REACT_APP_BASIC_AUTH_USER=admin - set basic auth user credentials to use if connecting to an AEM Author environment (for development only). If connecting to a Publish environment, this setting is not necessary.
  • REACT_APP_BASIC_AUTH_PASS=admin - set the basic auth password used for connecting to an AEM Author environment (for development only). If connecting to a Publish environment, this setting is not necessary.
  • REACT_APP_DEV_TOKEN - Dev token string. To connect to remote instance, you can use Bearer auth with a local DEV token from Cloud console
  • REACT_APP_SERVICE_TOKEN - Path to service token file. To connect to remote instance, authentication can be done with Service token also (download file from Cloud console)

Proxy API Requests

When using the webpack development server (npm start) the project relies on a proxy setup using http-proxy-middleware. The file is configured at src/setupProxy.js and relies on several custom environment variables set at .env and .env.development.

If connecting to an AEM author environment, the corresponding authentication method needs to be configured.

CORS - Cross Origin Resource Sharing

The proxy method for local development avoids any CORS issues since all of the requests in the browser appear to be from the same origin. When running a production version of the app this will not be the case. Pre-built CORS configurations are deployed automatically if installing the full WKND code base: https://github.com/adobe/aem-guides-wknd. The full WKND code base includes wknd-shared content (images and content fragments).

Several CORS configurations must be set on the target AEM environment:

  • OSGi CORS Configuration - A configuration that is deployed as part of an AEM project. Example OSGi Config

  • Dispatcher headers - The AEM dispatcher must also be enabled to pass through the following client headers:

    "Origin"
    "Access-Control-Request-Method"
    "Access-Control-Request-Headers"

CORS Configuration

This is a sample CORS config for Author environment if Proxy is set to False

Documentation