Socket
Book a DemoInstallSign in
Socket

github.com/bkucharz/sitemap-builder

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/bkucharz/sitemap-builder

v0.0.0-20250726161730-ee3213a1c261
Source
Go
Version published
Created
Source

πŸ—ΊοΈ Sitemap Builder

Go Version License Go Report Card

A lightweight Go CLI tool that crawls websites and generates XML sitemaps.

✨ Features

  • Website Crawling - Discovers all pages up to specified depth
  • Standard Compliant - Generates valid XML sitemaps
  • Link Normalization - Handles relative/absolute URLs
  • Duplicate Prevention - Automatically filters duplicate pages

πŸš€ Quick Start

Installation

go install github.com/bkucharz/sitemap-builder/cmd/sitemap-builder@latest

Basic Usage

sitemap-builder -url https://example.com -depth 2

Example Output

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <url>
  <loc>https://example.com/</loc>
 </url>
 <url>
  <loc>https://example.com/about</loc>
 </url>
</urlset>

πŸ“š Command Line Options

FlagDefaultDescription
-urlhttps://go.devStarting URL to crawl
-depth1Maximum depth of links to follow

Development Setup

git clone https://github.com/bkucharz/sitemap-builder
cd sitemap-builder
go build ./cmd/sitemap-builder

πŸ“œ License

MIT

FAQs

Package last updated on 26 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.