A copier template for scaffolding custom Glean indexing connectors using the glean-indexing-sdk.
Install copier:
uv tool install copierGenerate a new connector project:
copier copy gh:gleanwork/copier-glean-connector my-connectorThe wizard will prompt for project name, connector type, and other options. After generation, the template automatically runs git init, uv sync, and ruff format.
Index documents and content into Glean.
| Type | SDK Base Class | Best For |
|---|---|---|
| Basic | BaseDatasourceConnector |
Small data sources (~1,000 records) where all data fits in memory |
| Streaming | BaseStreamingDatasourceConnector |
Paginated APIs or larger datasets; yields records in batches |
| Async Streaming | BaseAsyncStreamingDatasourceConnector |
Large or high-latency data sources; concurrent I/O with async generators |
Index employee/people data into Glean using BasePeopleConnector.
When this template is updated, pull changes into your project:
copier update