v1.0.0
Glancer v1.0.0 — First stable release
Glancer is a Ruby on Rails engine that adds natural-language querying to any Rails app via RAG and LLMs.
Highlights
- Dual query mode: SQL and ActiveRecord — generate read-only SQL or Ruby AR expressions from natural language
- Async processing: background thread execution via
AsyncRunner— no external job queue required - RAG pipeline: embed → retrieve (cosine similarity with source weights) → generate → validate → execute → humanize
- Safety layer:
SQLSanitizer/ARSanitizerblock destructive operations; all queries run in a rolled-back transaction - Audit trail: every executed query logged to
glancer_auditswith a uniquerun_idUUID - Query enrichment:
QueryEnricherexpands natural-language questions into precise technical specs before retrieval - Multi-provider LLM support via ruby_llm: Gemini, OpenAI, OpenRouter — each role (code gen, chat, embeddings) independently configurable
- Chat UI: Turbo Streams + Stimulus with dark mode, typewriter effect, CSV export, chart visualizations, and client-side polling
- 100% line coverage: 717 RSpec examples covering every workflow path, edge case, and rescue branch
Requirements
- Ruby >= 3.3
- Rails >= 7.0
Full changelog: https://github.com/ErnaneJ/glancer/blob/main/CHANGELOG.md