Track what really matters to you and your team

code insights

Transform your code into a queryable database to create customizable, visual dashboards in seconds.

Code insights illustration

Trusted by engineering teams worldwide

slide-0
slide-1
slide-2
slide-3
slide-4
slide-5
slide-6
slide-7
slide-8
slide-9
slide-10
slide-11
slide-12
slide-13
slide-14
slide-15
slide-16
slide-17
slide-18
slide-19
slide-20
slide-21
slide-22
slide-23
slide-24
slide-25
slide-26
slide-27
slide-28
slide-29
slide-30
slide-31
slide-32
slide-33
slide-0
slide-1
slide-2
slide-3
slide-4
slide-5
slide-6
slide-7
slide-8
slide-9
slide-10
slide-11
slide-12
slide-13
slide-14
slide-15
slide-16
slide-17
slide-18
slide-19
slide-20
slide-21
slide-22
slide-23
slide-24
slide-25
slide-26
slide-27
slide-28
slide-29
slide-30
slide-31
slide-32
slide-33

Useful engineering metrics you define

Forget about inaccurate spreadsheets, manual processes, and missing historical data. You can track everything in your codebase, from migrations to code smells, in a seamless and precise way. Make data-driven decisions using visualizations based on the power and accuracy of Sourcegraph Code Search.

With Code Insights, our data and migration tracking is accurate across our entire codebase, and our engineers and managers can shift out of manual spreadsheets and spend more time working on code.”

Balázs Tóthfalussy

Engineering Manager, Prezi

Engineering leadership with superpowers

Code Insights provides reliable real-time reporting directly from the codebase, making engineering leaders and their teams more effective.
Measure goals and visualize progress in your codebase.
Plan proactively. Stay on top of engineering initiatives and catch issues before they escalate.
Track ownership. Tie trends and metrics to owners on the teams.
How engineering teams use Code Insights

Track migrations, adoption, and deprecations

Migration to CSS modules

repo:https://github.com/wildcard-org/wc-repo
  • CSS Modulestype:file lang:scss file:module.scss patterntype:regexp archived:no fork:no
  • Global CSStype:file lang:scss -file:module.scss patterntype:regexp archived:no fork:no

Alpine versions over all repos

All repositories
  • 3.1
  • 3.5
  • 3.15
  • 3.8
  • 3.9
  • 3.9.2
  • 3.14
patterntype:regexp FROM\s+alpine:([\d\.]+) file:Dockerfile

Log4j incident response

repo:https://github.com/wildcard-org/wc-repo
  • Updated log4jlang:gradle org\.apache\.logging\.log4j[\'"] 2\.(17)(\.[0-9]+) patterntype:regexp archived:no fork:no
  • Vulnerable log4jlang:gradle org\.apache\.logging\.log4j[\'"] 2\.(0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16)(\.[0-9]+) patterntype:regexp archived:no fork:no

Find vulnerable OpenSSL versions in the Python Ecosystem

All repositories
  • pip/pipenvfile:requirements.*txt cryptography(\s*[=~]=\s*(36\.|37\.|38\.0\.[0-2])) patternType:regexp archived:no fork:no

Deprecated API usage by team

All repositories
  • CloudproblemAPI file:CloudDirectory archived:no fork:no
  • Core AppproblemAPI file:CoreDirectory archived:no fork:no
  • ExtensibilityproblemAPI file:ExtnDirectory archived:no fork:no

Linter override rules in all repos

All repositories
  • Linter overridesfile:\.eslintignore .\n patternType:regexp archived:no fork:no

# of repos connected to the CI system

All repositories
  • Connected reposfile:\.circleci/config.yml select:repo archived:no fork:no

Popular Code Insights templates

Global CSS to CSS modules

Track migration from global CSS to CSS modules.

select:file lang:SCSS file:module patterntype:regexp archived:no fork:no
type:file lang:scss-file:module patterntype:regexp archived:no fork:no
Python 2 to Python 3

How far along is the Python major version migration?

#!/usr/bin/env python3 archived:no fork:no
#!/usr/bin/env python2 archived:no fork:no
React Class to Function Components

What's the status of migrating to React function components from class components?

patterntype:regexp const\s\w+:\s(React\.)?FunctionComponent archived:no fork:no
patterntype:regexp extends\s(React\.)?(Pure)?Component archived:no fork:no
Config or docs file

How many repos contain a config or docs file in a specific directory?

select:repo file:docs/*/new_config_filename archived:no fork:no

Contact us for a demo with a product expert