dagd/dagd
1
1
Fork
You've already forked dagd
1
A URL shortener with various other utilities, backed by a custom lightweight framework. https://da.gd
  • PHP 99.2%
  • Shell 0.5%
  • Dockerfile 0.3%
Find a file
Rick Elrod 2a3e66ed3c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
Reskin for da.gd's 15th birthday
(Okay, it's still two months out, but whatever).
Signed-off-by: Rick Elrod <rick@elrod.me>
2026年06月04日 20:16:06 +02:00
container Show php-fpm error log in dev container output 2025年03月30日 05:18:13 +02:00
documentation Move existing apps to autoload instead of general.applications 2020年05月16日 01:12:46 -05:00
scripts sql script: Handling of destructive migrations 2025年09月07日 19:26:49 +02:00
sql Add an index on the new table 2025年09月20日 16:47:46 +02:00
src Reskin for da.gd's 15th birthday 2026年06月04日 20:16:06 +02:00
tests Don't fatal on manipulated session cookies 2025年09月17日 21:11:41 +02:00
.gitignore ignore container/.lock 2020年05月02日 16:09:24 -05:00
.mailmap Update .mailmap 2022年09月28日 23:51:05 -04:00
.woodpecker.yaml ci: force v4 2026年06月03日 20:36:22 +02:00
LICENSE Use full ASL2 license instead of header stub 2026年06月02日 23:12:30 +02:00
README.md da.gd -> Codeberg 2026年06月02日 22:43:36 +02:00

da.gd

Note

The da.gd upstream has moved to Codeberg. The GitHub repository remains a read-only mirror as of June, 2026.

What is da.gd?

da.gd is both a URL shortener and a collection of quick-info tools, written in PHP and backed by a custom, lightweight framework.

The production site is https://da.gd/ - which primarily brands itself as a URL shortener. Each URL is checked by multiple safe-browsing APIs in an effort to combat phishing attempts. Additionally, our volunteer abuse-response team is very active and quick to take down short URLs in the production site which lead to phishing sites or other malicious content.

da.gd allows you to use curl (or any other http client) to quickly retrieve various kinds of information such as your IP, useragent, whois for a given domain or IP, DNS lookups, etc., from an easy-ish-to-remember URL.

Because a goal of this project is to have it work for many purposes/situations, I encourage feedback, ideas, participation, and interaction with this project. Have some fun with it :)

Apps are fairly easy to build atop the framework, although the framework is not currently documented in any meaningful capacity. I would not suggest using the framework for real, production sites, there are much better frameworks to use. But it's fun to play with and it's been fun to build out.

What currently works?

curl da.gd/help will give you a list of what is currently available on the production site. The production site is hosted by Tornado VPS and the team there has been excellent to work with in relaying abuse reports they receive to us.

Getting a dev environment up

There are now docker-compose files in place in the container directory to make the act of getting a development site up easy.

You can get a quick development environment set up by doing this:

  • Ensure you have a working docker-compose or podman-compose setup.
  • Clone the dagd repository
  • cd container
  • For docker-compose: docker-compose up
  • For podman-compose: podman-compose up
  • Go to http://localhost:8080/ in your regular browser.

Note that the development environment is entirely ephemeral. Anything stored in the database will be lost when you docker-compose down or podman-compose down. That is, the files in ./container/ are not meant for production use.

License

ASL 2.0. See LICENSE for more details.