Files
default-creds-web/README.md
T

3.7 KiB

logo

Default-Creds Web



This is the web frontend for Default Creds, a centralized, community-driven database of factory-set credentials.

Live Instance: default-creds.hadi.icu

API Documentation: default-creds.hadi.icu/api-docs

Looking to add or fix a credential? That data lives in a separate repo: anotherhadi/default-creds. This repo is code-only.

⚙️ How it Works

This application is built with Astro and Svelte 5.

  1. On boot: clones the data repo (shallow) into a local, git-ignored directory if it isn't there yet.
  2. Periodically: re-fetches and hard-resets to the remote's latest commit (default every 6h), so the site stays current without needing a redeploy whenever the data changes.
  3. On update: the in-memory search cache is invalidated so the next request picks up fresh data.

Configurable via environment variables:

Variable Default Description
DATA_REPO_URL https://github.com/anotherhadi/default-creds.git Git URL of the data repository
DATA_REPO_DIR ./.data-repo Where to clone the data repo locally
DATA_SYNC_INTERVAL_HOURS 6 How often to re-pull

💻 Local Development

Prerequisites

  • Bun (or nix, just nix develop)
  • git available on PATH (used to clone/pull the data repo)

Installation

git clone https://github.com/anotherhadi/default-creds-web.git
cd default-creds-web
bun dev

The data repo is cloned automatically into .data-repo/ on first run.

🛠️ Tech Stack

Usage of Default Creds for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state, and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.