git-to.dev resolves short, fuzzy paths to GitHub repositories. A path such as
git-to.dev/oai/cx matches an owner and repository, then redirects to the best
matching GitHub URL. It can also find the shortest unambiguous path for a given
repository. No account or stored short-link record is required.
The application is built with Next.js, React, TypeScript, and Tailwind CSS. It uses the GitHub REST API for owner and repository discovery.
pnpm install
pnpm devOpen http://localhost:3000. Set GITHUB_TOKEN (or
GH_TOKEN) to increase GitHub API rate limits; unauthenticated requests are
supported.
Build and run the production image:
docker build -t git-to-dev .
docker run --rm -p 3000:3000 git-to-devThe image uses Next.js standalone output and runs as an unprivileged user. To use authenticated GitHub API requests, pass a token when starting the container:
docker run --rm -p 3000:3000 -e GITHUB_TOKEN git-to-devOpen the repository in a Development Containers
compatible editor and choose Reopen in Container. The development container
builds the development target from the same Dockerfile, installs the locked
dependencies, and forwards port 3000. Start the app from its terminal with:
pnpm devpnpm test
pnpm lint
pnpm build