Herramientas de línea de comandos para convertir documentos a Markdown, buscar palabras clave semánticamente en local y hacer preguntas sobre archivos con un agente de IA.
davidesantangelo/krep
A fast, multi-threaded command-line string search tool that is grep-compatible, with SIMD acceleration and regex support.
Alternativa open source a:grep
- Estrellas
- 529
- Forks
- 26
- Issues abiertos
- 6
- Último commit
- el mes pasado
¿Qué es?
krep is a command-line text search utility written in C, designed as a faster alternative to grep for large-scale pattern matching. It selects among several search algorithms (Boyer-Moore, KMP, Two-Way, Shift-Or, Aho-Corasick) depending on the pattern, and uses SIMD instructions (SSE2, AVX2, AVX-512, NEON) together with memory-mapped I/O to speed up scanning.
The tool supports fixed strings by default, POSIX regular expressions, and multiple patterns supplied via repeated -e flags or a pattern file. It can search files, directories recursively with glob include and exclude rules and .gitignore handling, or standard input. Common grep options such as context lines, line numbers, counts, and file listings are available, along with JSON Lines output for scripting.
krep runs on Linux, macOS, and BSD systems with a C compiler and pthread. Builds can be tuned with PORTABLE or NATIVE make flags to balance portability and CPU-specific vector support.
Funciones clave
- 01Automatically selects among several string search algorithms based on the pattern
- 02SIMD acceleration and memory-mapped I/O for fast scanning
- 03Multi-threaded search across CPU cores
- 04POSIX regex support and multiple pattern search
- 05Recursive directory search with globs, exclusions, and .gitignore support
- 06grep-compatible options plus JSON Lines output
Casos de uso
- Searching large source trees or log directories for many patterns at once
- Scripting text searches that need structured JSON Lines output
- Replacing grep in performance-sensitive build or CI pipelines
- Quick existence checks in shell scripts using quiet mode
Temas
Preguntas frecuentes
- ¿Qué es krep?
- A fast, multi-threaded command-line string search tool that is grep-compatible, with SIMD acceleration and regex support. krep is a command-line text search utility written in C, designed as a faster alternative to grep for large-scale pattern matching. It selects among several search algorithms (Boyer-Moore, KMP, Two-Way, Shift-Or, Aho-Corasick) depending on the pattern, and uses SIMD instructions (SSE2, AVX2, AVX-512, NEON) together with memory-mapped I/O to speed up scanning.
- ¿krep es gratuito? ¿Qué licencia tiene?
- krep es open source bajo la licencia BSD-2-Clause. Revisa los términos de la licencia antes de usarlo en productos comerciales.
- ¿krep sigue mantenido?
- Actualizado en los últimos 6 meses. El último commit de krep fue el 16 sept 2026.
- ¿Para qué puedo usar krep?
- Searching large source trees or log directories for many patterns at once Scripting text searches that need structured JSON Lines output Replacing grep in performance-sensitive build or CI pipelines Quick existence checks in shell scripts using quiet mode
- ¿Dónde consigo krep?
- El código fuente y las instrucciones de instalación están en GitHub: https://github.com/davidesantangelo/krep
Resumen generado por IA a partir del README del proyecto. Las estadísticas de GitHub se actualizan a diario.
Proyectos relacionados
Un comando cd más inteligente que aprende cuáles son tus directorios más usados y te permite acceder a ellos con unas pocas teclas, en los principales shells.
Aplicación de escritorio, móvil, web y CLI para ejecutar y orquestar varios agentes de programación, como Claude Code, Codex y OpenCode, en worktrees paralelos.
Biblioteca de Rust, CLI y backend HTTP que comprueba si una dirección de correo existe sin enviar mensajes.
Una herramienta de terminal que reproduce commits de Git como sesiones de escritura animadas, con resaltado de sintaxis y transiciones del árbol de archivos.
Acceso a terminal desde el navegador para ejecutar, supervisar y controlar sesiones de shell y agentes de programación con IA desde cualquier dispositivo.