
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@grepai/cli
Advanced tools
CLI for semantic code search. It uses vector embeddings to understand code meaning, enabling natural language queries that find relevant code—even when naming conventions vary.
Semantic code search CLI. It indexes your codebase using vector embeddings to enable natural language queries that find relevant code by meaning, regardless of naming conventions.
bun add -g @grepai/cli
# Index your codebase (run whenever code changes)
grepai index
# Search using natural language
grepai search "how is user authentication handled?"
# Options: --topK (default 20)
grepai search "database config" --topK 50
Create a .grepairc.json or grepai-config.json in your project root. Supports ${ENV_VAR} substitution.
{
"$schema": "https://raw.githubusercontent.com/bismuth1991/grepai-ts/refs/heads/main/packages/core/src/grepai-config-schema.json",
"storage": {
"type": "turso",
"url": "${TURSO_DB_URL}",
"authToken": "${TURSO_DB_AUTH_TOKEN}"
},
"embedding": {
"provider": "google",
"model": "gemini-embedding-001",
"apiKey": "${GEMINI_API_KEY}"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist", "**/*.test.ts"]
}
{
"storage": {
"type": "postgres",
"connectionString": "postgres://user:pass@localhost:5432/grepai"
},
"embedding": {
"provider": "google",
"model": "gemini-embedding-001",
"apiKey": "${GEMINI_API_KEY}",
"dimensions": 1536
}
}
{
"storage": {
"type": "lancedb"
},
"embedding": {
"provider": "google",
"model": "gemini-embedding-001",
"apiKey": "${GEMINI_API_KEY}",
"dimensions": 1536
}
}
Full list of options:
{
"embedding": {
"provider": "google",
"model": "gemini-embedding-001",
"apiKey": "${GEMINI_API_KEY}",
"dimensions": 3072, // 768, 1536, or 3072
"targetChunkSize": 256, // Preferred tokens per chunk
"maxChunkSize": 1024, // Max tokens per chunk
"tokenizer": "gemini-embedding-001" // or "simple"
}
}
Read https://github.com/bismuth1991/grepai-ts/blob/main/packages/core/src/domain/config.ts for full configuration details.
Repository | Issues | License
FAQs
CLI for semantic code search. It uses vector embeddings to understand code meaning, enabling natural language queries that find relevant code—even when naming conventions vary.
We found that @grepai/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.