Welcome to SVNfluence, an AI-driven web application that helps developers quickly find and understand SVN (Subversion) commands using natural language queries. Built with Go, Gin, and powered by OpenAI, SVNfluence offers a sleek, responsive interface with a modern design, making it easy to navigate SVN commands in both light and dark themes.
๐ Find the SVN command you need nowโeffortlessly!
- AI-Powered Search: Enter natural language queries (e.g., "how to add a file?") and get instant SVN command suggestions with descriptions, usage, and examples.
- Responsive Design: Beautiful, user-friendly UI with light and dark themes, featuring animated particle effects for a dynamic background.
- Fast Performance: Built with Go and Gin for high-speed, reliable web serving.
- Cross-Platform: Works seamlessly in browsers on desktop and mobile devices.
- Open Source: Contribute, fork, or customizeโcheck out the code on GitHub!
Light Mode | Dark Mode |
---|---|
![]() |
![]() |
- Go: Version 1.20 or higher (install via golang.org)
- OpenAI API Key: Sign up at OpenAI and get an API key.
- Git: For cloning the repository (install via git-scm.com)
-
Clone the repository:
git clone https://github.com/k1lgor/svnfluence.git cd svnfluence
-
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY=your-api-key-here
-
Install dependencies:
go mod tidy
-
Run the application:
go run cmd/main.go
-
Open the browser and visit:
http://localhost:8080
- Navigate to the homepage and enter a query like โhow to add a file?โ in the search bar.
- Click โSearchโ to get AI-generated SVN command suggestions, including the command, description, usage, and examples.
- Toggle between light ๐ and dark ๐ themes using the button in the top-right corner.
- Click the GitHub icon in the footer to visit the projectโs repository or the developerโs profile.
SVNfluence is organized for scalability and maintainability:
svnfluence/
โโโ cmd/ # Entry point for the application
โ โโโ main.go # Main application startup
โโโ internal/ # Internal application logic
โ โโโ api/ # API handlers and routes
โ โ โโโ handlers.go # HTTP handlers
โ โโโ config/ # Configuration settings
โ โ โโโ config.go # Configuration loader
โ โโโ models/ # Data structures
โ โ โโโ command.go # Command struct
โ โโโ openai/ # AI integration
โ โโโ openai.go # OpenAI API calls
โโโ templates/ # HTML templates
โ โโโ search.html
โ โโโ results.html
โโโ static/ # Static assets (CSS, JS, images)
โ โโโ style.css
โโโ go.mod # Go module file
โโโ go.sum # Go dependencies
Run SVNfluence in a container for easy deployment:
- Docker: Install Docker from docker.com
-
Build the Docker image:
docker build -t svnfluence:latest .
-
Run the container with your OpenAI API key:
docker run -d -p 8080:8080 -e OPENAI_API_KEY=your-api-key-here svnfluence:latest
SVNfluence includes a health endpoint at /health
. The Dockerfile includes a HEALTHCHECK
to monitor the app:
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost:8080/health || exit 1
SVNfluence is open-source software licensed under the MIT License. See the LICENSE file for details.