{"id":20337823,"url":"https://github.com/jigsaw-code/altitude","last_synced_at":"2026-02-26T03:47:48.712Z","repository":{"id":249661527,"uuid":"831071219","full_name":"Jigsaw-Code/altitude","owner":"Jigsaw-Code","description":"Altitude is a tool that gives online platforms a single elevated view of potential terrorist and violent extremist content on their sites.","archived":false,"fork":false,"pushed_at":"2025-03-22T03:14:37.000Z","size":1867,"stargazers_count":25,"open_issues_count":11,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T22:43:10.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://techagainstterrorism.org/altitude-content-moderation-tool","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jigsaw-Code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-19T15:36:31.000Z","updated_at":"2025-04-04T03:09:59.000Z","dependencies_parsed_at":"2024-07-22T15:33:22.991Z","dependency_job_id":"c0b9cae1-9227-4921-a88e-0f7adc14c8ce","html_url":"https://github.com/Jigsaw-Code/altitude","commit_stats":null,"previous_names":["jigsaw-code/altitude"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jigsaw-Code%2Faltitude","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jigsaw-Code%2Faltitude/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jigsaw-Code%2Faltitude/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jigsaw-Code%2Faltitude/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jigsaw-Code","download_url":"https://codeload.github.com/Jigsaw-Code/altitude/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492989,"owners_count":21113159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T21:10:20.719Z","updated_at":"2026-02-26T03:47:43.679Z","avatar_url":"https://github.com/Jigsaw-Code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Altitude\n\nAltitude is a web application that helps you triage and make decisions on\nflagged content from counter-terrorism databases.\n[Read more about how it works](docs/overview.md).\n\nAltitude is publicly available and part of\n[Tech Against Terrorism](https://techagainstterrorism.org/).\n\nPlatforms can access Altitude directly or work with Tech Against Terrorism to\nreceive free, bespoke onboarding support, including guided installation,\ntesting, and feedback, plus they will gain access to a suite of specialist\nservices for members. [Learn more.](https://techagainstterrorism.org/altitude-content-moderation-tool)\n\nAltitude connects to the\n[Terrorist Content Analytics Platform](https://www.terrorismanalytics.org/) and\nthe [GIFCT Hash-Sharing Database](https://gifct.org/hsdb/). You will need login\ncredentials in order to set up those connections.\n\n![List view screenshot](docs/assets/screenshots/list-view.png \"List view\")\n\n![Detail view screenshot](docs/assets/screenshots/detail-view.png \"Detail view\")\n\n## Installation\n\nIt's simple to get started and try out the application:\n\n1. **Install prerequisite utilities**\n\n   You will need to install a few tools before you can get started:\n\n   - **[Git](https://git-scm.com/):** Follow\n     \u003chttps://github.com/git-guides/install-git\u003e.\n\n   - **[GNU Make](https://www.gnu.org/software/make/):** Run the commands\n     specific to your platform:\n\n     - **Linux:**\n\n       ```sh\n       sudo apt-get install build-essential\n       ```\n\n     - **Mac:**\n\n       ```sh\n       xcode-select --install\n       ```\n\n     - **Windows:**\n\n       ```sh\n       winget install -e --id GnuWin32.Make\n       ```\n\n   - **[Docker](https://docker.com/):** Install Docker Desktop from\n     \u003chttps://docs.docker.com/get-docker/\u003e.\n\n1. **Clone this repository**\n\n   ```sh\n   git clone https://github.com/Jigsaw-Code/altitude\n   cd altitude\n   ```\n\n1. **Configure and run the stack locally.**\n\n   ```sh\n   make PROD build start\n   ```\n\n   You will be prompted to provide credentials to start up a database.\n\n   \u003c!-- markdownlint-disable MD028 --\u003e\n\n   \u003e [!TIP]\n   \u003e If you wish to use a port other than the default (`8080`), set the `PORT`\n   \u003e environment variable, e.g. `PORT=1234 make PROD build start`\n\n   \u003e [!TIP]\n   \u003e If you wish to serve the application on a subpath (e.g.\n   \u003e `www.example.com/foo/bar/` instead of `www.example.com`), set the\n   \u003e `SERVE_PATH` environment variable, e.g.\n   \u003e `SERVE_PATH=/foo/bar/ make PROD build start`\n\n   \u003c!-- markdownlint-enable MD028 --\u003e\n\n1. **Connect API sources.**\n\n   Once installed and running, you can load the web frontend at\n   \u003chttp://localhost:8080\u003e (or your chosen port). Start out by configuring the\n   tool by specifying which signal sources to connect to:\n\n   ![Getting started screenshot](docs/assets/screenshots/getting-started.png)\n\n1. **Upload target content into the system.**\n\n   Data that you wish to be in scope of the tool can be submitted as _target_\n   entities through a RESTful API. To create a new image _target_, you need to\n   provide the content and its type. You can do something as simple as:\n\n   ```shell\n   curl -H \"Content-Type: application/json\" \\\n       --data '{\"client_context\": \"abc\", \"content_type\": \"IMAGE\", \"content_bytes\": \"R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"}' \\\n       \"http://localhost:8080/api/targets/\"\n   ```\n\n   You can provide such as author metadata, to ensure moderators have as much\n   context as needed during review. Consult the [OpenAPI spec](./api.yml) and\n   [documentation](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/Jigsaw-Code/altitude/main/api.yml)\n   for more options.\n\n## Further integration\n\nAll decisions made in the tool are logged to dated files under\n`./signal-service/logs/tasks/verdict-notifier`, so it's easy to evaluate the\noutput. If you wish to receive updates of verdicts for automated processing, you\ncan configure an endpoint on your server and provide it as a webhook when\ndeploying the tool using the `ACTION_RECEIVER_URL` environment variable, e.g.:\n\n```sh\nACTION_RECEIVER_URL=http://my-domain.com/verdicts/webhook make PROD build start\n```\n\nWe send all decisions to this endpoint and will retry 5 times across 30 or so\nminutes before giving up. This endpoint must be able to receive a JSON with the\nfollowing [JSON Schema](https://json-schema.org/):\n\n```js\n{\n    \"type\": \"object\",\n    \"properties\": {\n        \"client_context\": {\n            \"type\": \"string\",\n            \"description\": \"An opaque string that you provided when the entity was initially created, or a URL.\"\n        },\n        \"decision\": {\n            \"type\": \"string\",\n            \"enum\": [\"APPROVE\", \"BLOCK\"]\n        },\n        \"decision_time\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\"\n        }\n    }\n}\n```\n\n## Questions?\n\nCheck out our [FAQ](docs/faq.md).\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md) for details.\n\n## License\n\nApache 2.0; see [`LICENSE`](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjigsaw-code%2Faltitude","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjigsaw-code%2Faltitude","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjigsaw-code%2Faltitude/lists"}