# Sourceror

> Utilities to work with Elixir source code, comments included

Source: https://talira.ai/catalog/sourceror-va0y1166
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / source code](https://talira.ai/categories/developer-tools/parsing/source-code), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Dorgan](https://talira.ai/orgs/doorgan.md)

Sourceror is a library for working with [Elixir](https://talira.ai/catalog/elixir-edq5dfnt.md) source code: parsing it into an AST that stays as close as possible to Elixir's standard one while keeping comments attached to nodes (leading and trailing comments in node metadata), so code can be transformed and written back without losing or misplacing them. It includes a zipper for navigating and editing the AST and has no dev or prod dependencies, which makes it easy to build into other tools. It's by Dorgan.

## Links

- GitHub: https://github.com/doorgan/sourceror
- Docs: https://hexdocs.pm/sourceror

## Problems it solves

- rewrite Elixir source code programmatically without losing comments
- build a codemod or refactoring tool for Elixir
- edit Elixir files from a mix task while keeping comments in place

## Features

- parse Elixir source with comments attached to AST nodes
- AST close to the standard Elixir AST
- zipper for navigating and editing code
- no dependencies

## Trust

Overall: 0.40 out of 1.
Signals: maintenance 0.50, adoption 0.52, momentum 0.25, community 0.51, backing 0.30, extensibility 0.00.

- last commit 39 days ago
- 8 commits in the last 90 days
- latest release v1.13.0 39 days ago
- 383 GitHub stars
- 18 contributors
- accepts sponsorship (Ko Fi)
- backed by Dorgan

## Sources

[^1]: https://github.com/doorgan/sourceror/blob/main/LICENSE (checked 29 Nov 2026)
