ToolsGarage

Setup & Install Instructions

Follow these steps to install dependencies. PDF tools require pdf-lib. Image and developer tools work without extra packages.

Instructions for AI agents

Copy this prompt and give it to your agent:

Read and follow every step on the ToolsGarage setup page. Open src/lib/setup/instructions.ts or visit /setup in the running app. Install all listed npm packages, run npm install, then npm run build to verify. Do not skip PDF tool dependencies (pdf-lib).

Source file: src/lib/setup/instructions.ts

Quick install (copy all commands)

npm install
npm install pdf-lib
npm run dev

Step-by-step

1

Go to the project folder

Open a terminal in the ToolsGarage project root (where package.json lives).

cd path/to/toolsgarage
2

Install all dependencies

Run npm install. This installs Next.js, React, Tailwind, lucide-react, and pdf-lib from package.json.

npm install

Requires network access. If npm is slow, wait until it completes.

3

Install PDF library (if step 2 did not include it)

PDF tools need pdf-lib. It is already listed in package.json — run this only if PDF tools show a missing-library error.

npm install pdf-lib
4

Start the development server

Run the dev server and open the site in your browser.

npm run dev

Open http://localhost:3000 — PDF and image tools should work in the browser.

5

Verify the build

Run a production build to confirm there are no compile errors.

npm run build
6

Run production server (optional)

After a successful build, start the production server locally.

npm start

Tool dependencies

Which tools need extra npm packages

ToolPackageStatus
JSON FormatterNone (browser only)Ready
UUID GeneratorNone (browser only)Ready
Password GeneratorNone (browser only)Ready
Word CounterNone (browser only)Ready
Age CalculatorNone (browser only)Ready
Percentage CalculatorNone (browser only)Ready
Case ConverterNone (browser only)Ready
Base64 EncoderNone (browser only)Ready
Regex TesterNone (browser only)Ready
QR Code GeneratorNone (browser only)Ready
Image CompressorNone (browser only)Ready
Image ResizerNone (browser only)Ready
Image ConverterNone (browser only)Ready
Merge PDFpdf-lib ^1.17.1Needs pdf-lib
Split PDFpdf-lib ^1.17.1Needs pdf-lib
Rotate PDFpdf-lib ^1.17.1Needs pdf-lib
JPG to PDFpdf-lib ^1.17.1Needs pdf-lib

PDF tools (Merge PDF, Split PDF, Rotate PDF, JPG to PDF) require:

npm install pdf-lib

13 tools work immediately with no extra install.

Optional packages

qrcode

Real scannable QR codes (current QR tool uses canvas pattern)

npm install qrcode

Troubleshooting

Build shows warning: Can't resolve pdf-lib

Expected before npm install pdf-lib. Run npm install pdf-lib — the warning will disappear and PDF tools will work.

PDF tools still show a missing-library message

Run npm install pdf-lib then restart npm run dev

npm install fails with permission errors

Do not use sudo. Fix npm permissions or use a user-owned project folder.

Port 3000 already in use

Run npm run dev -- -p 3001 to use another port

Build fails after adding packages

Delete .next folder, run npm install again, then npm run build