{"id":34227834,"url":"https://github.com/nightfallai/nightfall-go-sdk","last_synced_at":"2026-03-13T19:06:30.204Z","repository":{"id":43478789,"uuid":"426824322","full_name":"nightfallai/nightfall-go-sdk","owner":"nightfallai","description":"Go Data Loss Prevention (DLP) SDK - Nightfall Developer Platform","archived":false,"fork":false,"pushed_at":"2024-10-28T14:58:03.000Z","size":42,"stargazers_count":15,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-09T06:57:16.576Z","etag":null,"topics":["api","data-loss-prevention","data-privacy","data-security","dlp","go","golang","sdk","secrets-detection"],"latest_commit_sha":null,"homepage":"https://docs.nightfall.ai","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nightfallai.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-11T00:45:32.000Z","updated_at":"2025-12-01T01:57:14.000Z","dependencies_parsed_at":"2023-12-04T09:23:15.086Z","dependency_job_id":"406502c7-6d01-4586-9a4f-e71710bb7e3a","html_url":"https://github.com/nightfallai/nightfall-go-sdk","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/nightfallai/nightfall-go-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightfallai%2Fnightfall-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightfallai%2Fnightfall-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightfallai%2Fnightfall-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightfallai%2Fnightfall-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nightfallai","download_url":"https://codeload.github.com/nightfallai/nightfall-go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightfallai%2Fnightfall-go-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30472989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T17:15:31.527Z","status":"ssl_error","status_checked_at":"2026-03-13T17:15:22.394Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","data-loss-prevention","data-privacy","data-security","dlp","go","golang","sdk","secrets-detection"],"created_at":"2025-12-16T01:00:25.254Z","updated_at":"2026-03-13T19:06:30.193Z","avatar_url":"https://github.com/nightfallai.png","language":"Go","readme":"# Nightfall Go SDK #\n\nnightfall-go-sdk is a Go client library for accessing the Nightfall API. \nIt allows you to add functionality to your applications to\nscan plain text and files in order to detect different categories of information. You can leverage any of\nthe detectors in Nightfall's pre-built library, or you may programmatically define your own custom detectors. \n\nAdditionally, this library provides convenient features including a streamlined function to manage the multi-stage file upload process.\n\nTo obtain an API Key, login to the [Nightfall dashboard](https://app.nightfall.ai/) and click the section\ntitled \"Manage API Keys\".\n\nSee our [developer documentation](https://docs.nightfall.ai/docs/entities-and-terms-to-know) for more details about\nintegrating with the Nightfall API.\n\n## Installation ##\n\nNightfall Go SDK is compatible with modern Go releases in module mode, with Go installed:\n\n```bash\ngo get github.com/nightfallai/nightfall-go-sdk\n```\n\nwill resolve and add the package to the current development module, along with its dependencies.\n\n## Usage\n\n### Scanning Plain Text\n\nNightfall provides pre-built detector types, covering data types ranging from PII to PHI to credentials. The following\nsnippet shows an example of how to scan using pre-built detectors.\n\n####  Sample Code\nSee [examples/text/text\\_scanner.go](examples/text/text_scanner.go) for an example\n\n### Scanning Files\n\nScanning common file types like PDFs or office documents typically requires cumbersome text\nextraction methods like OCR.\n\nRather than implementing this functionality yourself, the Nightfall API allows you to upload the\noriginal files, and then we'll handle the heavy lifting.\n\nThe file upload process is implemented as a series of requests to upload the file in chunks. The library\nprovides a single method that wraps the steps required to upload your file. Please refer to the\n[API Reference](https://docs.nightfall.ai/reference) for more details.\n\nThe file is uploaded synchronously, but as files can be arbitrarily large, the scan itself is conducted asynchronously.\nThe results from the scan are delivered by webhook; for more information about setting up a webhook server, refer to\n[the docs](https://docs.nightfall.ai/docs/creating-a-webhook-server).\n\n#### Sample Code\n\nSee [examples/file/file\\_scanner.go](examples/file/file_scanner.go) for an example\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightfallai%2Fnightfall-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnightfallai%2Fnightfall-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightfallai%2Fnightfall-go-sdk/lists"}