MCPcopy Index your code
hub / github.com/dc7290/next-export-optimize-images

github.com/dc7290/next-export-optimize-images @v4.7.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.7.0 ↗ · + Follow
49 symbols 177 edges 69 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

npm downloads License Node.js CI GitHub Repo stars

Next Export Optimize Images

Using this repository, you can get the full benefits of next/image even when using next export by doing image optimization at build time.

This makes it possible to build a high performance website with this solution, whether you want to build a simple website or a completely static output.

Feature

  • Optimize images at build time.
  • All options for next/image available
  • Convert formats (png → webp, etc.)
  • Download external images locally.
  • Using sharp, so it's fast.
  • Cache prevents repeating the same optimization
  • Support TypeScript
  • Support AppRouter

Installation

npm install next-export-optimize-images

Document Site

https://next-export-optimize-images.vercel.app

DeepWiki

https://deepwiki.com/dc7290/next-export-optimize-images

License

Next Export Optimize Images is available under the MIT License.

Core symbols most depended-on inside this repo

buildOutputInfo
called by 17
src/utils/buildOutputInfo.ts
imageLoader
called by 10
src/components/utils/imageLoader.ts
getConfig
called by 7
src/utils/getConfig.ts
formatValidate
called by 4
src/utils/formatValidate.ts
getStringSrc
called by 3
src/components/utils/getStringSrc.ts
getOptimizeResult
called by 3
src/cli/index.ts
optimizeImages
called by 3
src/cli/index.ts
cliProgressBarIncrement
called by 3
src/cli/utils/cliProgressBar.ts

Shape

Function 49

Languages

TypeScript100%

Modules by API surface

src/cli/index.ts7 symbols
__tests__/cli/cache/index.test.ts4 symbols
src/cli/utils/cache.ts3 symbols
src/withExportImages.ts2 symbols
src/utils/buildOutputInfo.ts2 symbols
src/cli/utils/cliProgressBar.ts2 symbols
src/cli/external-images/index.ts2 symbols
src/utils/processManifest.ts1 symbols
src/utils/parseNdJSON.ts1 symbols
src/utils/getConfig.ts1 symbols
src/utils/formatValidate.ts1 symbols
src/loader/index.ts1 symbols

For agents

$ claude mcp add next-export-optimize-images \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact