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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@genesisx/nextjs-mfe

v5.2.1

Published

GenesisX generator for NextJs based module federated apps using turbo, run npx @genesisx/nextjs-mfe

Downloads

146

Readme

Nextjs Module Federator App Generator

This PSInnersource accelerator allows a developer to quickly setup a Nextjs based module federated application setup, using turbo as monorepo workspace.

Setup & Run locally

Make sure you use nodejs >= 18.17.0

  1. In a blank directory , run below command to start using it

npx @genesisx/nextjs-mfe

  1. It will ask various inputs like workspace name, container application name, remote app(s) name

  2. Once setup, go inside the workspace directory (cd workspace) and build the project

npm run build

  1. Serve the application as :

npm run dev

  1. You can access the application on : http://localhost:3000

Code Access

Please refer the following repo

https://pscode.lioncloud.net/psinnersource/xt/micro-frontend/genesisx/nextjs-accelerator

Need More details

Please reach out to Devesh Kaushal, Lalit Negi

Publish to NPM

Step 1 : Build the package npm run build Step 2 : Go to dist directory Step 3 : Run below command

npm publish --access public

NPM Repo : https://www.npmjs.com/package/@genesisx/nextjs-mfe

Node version Support

Node Version >= 18.17.0

NPM Packages

  • next | 14.1.0
  • react | 18.2.0
  • turbo | 2.1.1
  • webpack | 5.80.0
  • zustand | 4.4.3
  • @module-federation/nextjs-mf | 8.1.10

Changelog / Releases

Ver. 5.2.1 (Latest)

  • Added support for latest version og turborepo 2.1.1

Ver. 5.0.0

  • spec file addition for the unit testing of each component of the plopfile generator.
  • Coverage reports are generated for every file covered each test run.

Run all spec files contained within the workspace: npm run test

Run specific test files: npm run test <fileName>.spec.js

Run all tests associated with a name or key word: npm run <name>

  • A major change through restructuring of the codebase to increase readibility.
  • Components of the plopfile generator broken down into functions, actions and prompts.
  • The plopfile has been reduced in length and all components are imported here for execution

Ver. 4.3.2

  • Added dynamic port mapping to keep track of all micro apps.
  • Test cases for provided for templated apps allowing unit tests to be run and built upon out of the box.

Ver. 4.2.2

  • included feature that allows users to append additional micro applications to existing workspaces

Ver. 3.0.0

  • Added support to minify and uglify the published version of code to npm

Ver. 2.0.0

  • Added support for state sharing between multi micro-apps using zustand

Ver. 1.0.0

  • NextJs-MFE: module federation interapp proxy generator with turboRepo workspace support