Frontend bundle optimization, now with AI.
This is the official UI wrapper for the ByteShrink API project. Upload a package.json file to get instant AI-powered insights into bundle size bloat, outdated packages, and lighter alternatives.
- Next.js (App Router)
- React
- Tailwind CSS
- Static Export (
next export) for GitHub Pages
git clone https://github.com/byteshrink/byteshrink.dev.git
cd byteshrink.dev
npm install
npm run devTo generate the static site (for GitHub Pages or other static hosting):
npm run build
npm run exportThis will create a static out/ directory you can deploy anywhere.
If deploying to GitHub Pages, make sure to:
- Set the
GITHUB_PAGES=trueenvironment variable. - Push the contents of
out/to thegh-pagesbranch. - Set the GitHub Pages source to
gh-pagesin repo settings.
The site talks to the ByteShrink API at:
https://api.byteshrink.dev/analyze
You can test this manually with:
curl -X POST https://api.byteshrink.dev/analyze \
-H "Content-Type: application/json" \
-H "X-Model: deepseek/deepseek-r1:free" \
-d '{"dependencies": {"react": "^18.2.0"}}'To mock or point to a local API version during development, you can update the fetch URL in app/actions/analyze.ts.
MIT — see LICENSE
Made with ❤️ by Den Odell