{
  "markdown": "# URL Shortener\n\nA simple, self-contained URL shortener written in Go with SQLite storage and a vanilla HTML/CSS/JS frontend.\n\n## Features\n\n- **POST /shorten** — accepts `{\"url\":\"...\"}` and returns a 6-character short code\n- **GET /:code** — redirects to the original URL and increments the hit counter\n- **GET /stats/:code** — returns hit count and creation timestamp\n- **GET /** — single-page frontend with a form, recent shorts table, and modern styling\n- SQLite persistence via `modernc.org/sqlite` (pure Go, no CGO)\n\n## Requirements\n\n- Go 1.22+\n\n## Quick Start\n\n```bash\nmake run\n```\n\nThen open http://localhost:8080\n\n## API Usage\n\n### Shorten a URL\n\n```bash\ncurl -X POST http://localhost:8080/shorten \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\":\"https://example.com\"}'\n```\n\nResponse:\n```json\n{\"code\":\"aB3x9K\"}\n```\n\n### Redirect\n\n```bash\ncurl -v http://localhost:8080/aB3x9K\n```\n\nReturns `302 Found` with `Location: https://example.com`.\n\n### Stats\n\n```bash\ncurl http://localhost:8080/stats/aB3x9K\n```\n\nResponse:\n```json\n{\n  \"code\": \"aB3x9K\",\n  \"url\": \"https://example.com\",\n  \"hits\": 1,\n  \"created_at\": \"2026-04-23T12:00:00Z\"\n}\n```\n\n## Running Tests\n\n```bash\nmake test\n```\n\n## Project Structure\n\n```\n.\n├── go.mod          # Go module definition\n├── main.go         # HTTP handlers and main entry point\n├── main_test.go    # Unit tests\n├── static/\n│   └── index.html  # Frontend UI\n├── Makefile        # run, test, deps, clean targets\n└── README.md\n```\n\n## License\n\nMIT\n",
  "bytes": 1485,
  "sha": "d54f9136b9e7284ac3ad388381bc379aa2362e40abdd70d311add469ba9f0959",
  "repo_slug": "vaibhav0806/trying-something",
  "fonte": "repo",
  "truncated": false,
  "api": "https://api.agentalog.com/api/listings/skl_vaibhav0806_trying_something_edge_tts_7c2f393e/readme"
}