Simple Code Improver - Framework & Interface
274
Sci-Fi Code Improver is a web application that enhances your programming code by analyzing and improving it for security, performance, maintainability, and adherence to coding best practices. It also generates commit messages following the Conventional Commits format.

# Pull the Docker image
docker pull fabriziosalmi/sci-fi:latest
# Create a .env file with your configuration
cat > .env << EOL
OPENROUTER_API_KEY=your-api-key
MODEL_NAME=qwen2.5-coder-3b-instruct-mlx
MAX_TOKENS=2048
TEMPERATURE=0.2
CHUNK_SIZE=500
CONTEXT_WINDOW=10
BASE_URL=http://localhost:1234/v1
EOL
# Run the container
docker run -p 7860:7860 --env-file .env fabriziosalmi/sci-fi:latest
git clone https://github.com/fabriziosalmi/sci-fi.git
cd sci-fi
python -m venv venv
source venv/bin/activate # On Windows use venv\Scripts\activate
pip install -r requirements.txt
.env file in the project root with your configuration.Create docker-compose.yml:
version: '3.8'
services:
web:
image: fabriziosalmi/sci-fi:latest
ports:
- "7860:7860"
volumes:
- ./improvements:/app/improvements
- ./.env:/app/.env:ro
environment:
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- MODEL_NAME=${MODEL_NAME}
- MAX_TOKENS=${MAX_TOKENS}
- TEMPERATURE=${TEMPERATURE}
- CHUNK_SIZE=${CHUNK_SIZE}
- CONTEXT_WINDOW=${CONTEXT_WINDOW}
- BASE_URL=${BASE_URL}
restart: unless-stopped
Start the application:
docker-compose up -d
The application supports both OpenRouter and OpenAI APIs:
BASE_URL=https://openrouter.ai/api/v1BASE_URL=https://api.openai.com/v1 and LLM_API_TYPE=openaiThe Docker container includes:
Contributions are welcome! Please:
This project is licensed under the MIT License. See the LICENSE file for details.
Content type
Image
Digest
sha256:e5a43bb8b…
Size
57.9 MB
Last updated
over 1 year ago
docker pull fabriziosalmi/sci-fi