This repository provides a template to implement an AirSync snap-in that imports data from an external system into DevRev.
- Select Use this template > Create a new repository.
- Name the repository
airsync-<external-system-name>-snap-in. - Clone the repository and switch to your working branch.
With Python 3.9 or newer and an authenticated GitHub CLI, run the initializer from the repository root.
python3 .github/scripts/initialize.pyThe initializer takes the connector name from the Git origin and adds your
GitHub login to CODEOWNERS. Pass --owning-team org/team-slug to add a team.
Commit the setup changes together on your working branch and follow the generated README.
See the AirSync snap-in documentation for development guidance.
The template uses @devrev/airsync-sdk and requires Node.js 20 or newer.
From the code/ directory, you can run the built-in fixture runner to test the
template locally:
npm start -- --fixturePath start_extracting_external_sync_units
npm start -- --fixturePath start_extracting_data
npm start -- --fixturePath start_extracting_data_selective
npm start -- --fixturePath start_loading_dataThe runner reads code/.env and resolves ${TODO_API_KEY} in fixture files,
so copy code/.env.example before running the fixtures.
The fixture runner and local test server set AIRSYNC_LOCAL_DEVELOPMENT=1
to enable local logging and artifact copies in code/extracted_files/.