A web-based application for generating sitemaps for any website. The tool fetches and streams the generated sitemap content, allowing users to easily copy it to the clipboard.
- Responsive Design: Built with a modern UI using HTML, CSS, and JavaScript.
- Live Streaming Output: Sitemaps are streamed to the output container in real-time.
- Clipboard Support: Copy the generated sitemap directly to your clipboard.
- Customizable Styles: Easily modify theme colors and styles using CSS variables.
- Auto Scroll: Automatically scrolls to the latest content during sitemap generation.
-
Clone the repository:
git clone https://github.com/SpectraX07/sitemap-generator.git
-
Navigate to the project directory:
cd sitemap-generator
-
Install dependencies:
npm install
-
Start the application:
npm start
-
Open the application in your browser:
http://localhost:3000
Ensure you have an API endpoint that the tool can call to generate the sitemap. The API should:
- Accept a
url
query parameter (e.g.,/api/generate-sitemap?url=https://example.com
). - Stream the sitemap content in chunks.
- Enter the website URL in the input box.
- Click on the Generate Sitemap button.
- View the generated sitemap in the output container.
- Use the Copy to Clipboard button to copy the sitemap.
- HTML5: Markup structure.
- CSS3: Custom theming and responsive design.
- JavaScript: Dynamic UI interactions and API integration.
- Node.js: Backend server to handle sitemap generation.
- Prism.js: Syntax highlighting for the generated sitemap.
- Google Fonts: Modern typography using the Inter font family.
You can customize the color theme by modifying the :root
variables in the CSS:
:root {
--primary: #4f46e5;
--primary-hover: #4338ca;
--background: #0f172a;
--foreground: #e2e8f0;
--card: #1e293b;
--card-foreground: #e2e8f0;
--border: #334155;
--input: #1e293b;
}
- Ensure the server hosting the application supports CORS for API requests.
- Proper error handling for invalid or unreachable URLs.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Commit your changes:
git commit -m "Add your message here"
- Push to the branch:
git push origin feature-branch
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Prism.js for syntax highlighting.
- Google Fonts for typography.
- Inspired by modern web development practices.
If you have any questions or suggestions, feel free to reach out:
- Email: [email protected]
- GitHub: SpectraX07