SecureLens AI
GitHub-integrated AppSec scanner and URL vulnerability prober powered by Gemini.
asyncio.gather() Semaphore throttling
Celery/Redis worker queues
Avoids memory and operational overhead of broker infrastructure in a lightweight backend. Runs lightweight, concurrent async HTTP calls efficiently inside FastAPI.
Gemini 2.0 Flash JSON Mode
Regex parsing of standard text LLM outputs
Guarantees output conforms exactly to Pydantic validation structures, preventing parsing crashes.
Originally attempted synchronous scanning by making consecutive blocking LLM requests within the request thread.
Caused 504 Gateway Timeouts and crashed the FastAPI gateway process when scanning repos with more than 50 files.
Refactored the orchestrator to perform asynchronous file fetching and concurrent LLM requests via asyncio, throttled by a Semaphore of 5.