vercel-labs/portless ? reverse-engineered prompt

Reverse engineered prompt

Build me a command line tool that lets people run local apps through stable, friendly localhost URLs instead of remembering random port numbers.

I want to be able to run something like portless myapp next dev and get a URL like https://myapp.localhost, with HTTPS working by default. It should create and trust a local certificate the first time, then reuse it later. If a project already has a normal dev script, it should just work, and in a monorepo it should discover workspace packages and start the right one from the repo root too.

Make it smart enough to read a simple config file or a portless section in package.json, and let me override the app name or script when needed. It should handle common framework commands cleanly, pass the right port through, and leave unrelated commands alone. Also make sure worktrees get their own names, and that it behaves nicely in CI by failing clearly instead of asking questions. If you need to, look up current docs online for any tricky runtime details.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab