{"id":23436643,"url":"https://github.com/uvasoftware/scanii-lambda","last_synced_at":"2025-04-13T04:13:46.029Z","repository":{"id":3913862,"uuid":"51304121","full_name":"uvasoftware/scanii-lambda","owner":"uvasoftware","description":"A Sam-Packaged AWS Lambda client to the scanii.com content processing service","archived":false,"fork":false,"pushed_at":"2025-02-19T21:38:34.000Z","size":296,"stargazers_count":26,"open_issues_count":2,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-13T04:13:36.124Z","etag":null,"topics":["aws","lambda"],"latest_commit_sha":null,"homepage":"https://scanii.com","language":"JavaScript","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/uvasoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2016-02-08T14:56:04.000Z","updated_at":"2024-12-08T21:44:52.000Z","dependencies_parsed_at":"2024-03-24T15:29:48.618Z","dependency_job_id":"174d2ebe-271f-4747-baf1-a292c1ff5a55","html_url":"https://github.com/uvasoftware/scanii-lambda","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvasoftware%2Fscanii-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvasoftware%2Fscanii-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvasoftware%2Fscanii-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvasoftware%2Fscanii-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uvasoftware","download_url":"https://codeload.github.com/uvasoftware/scanii-lambda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661719,"owners_count":21141451,"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":["aws","lambda"],"created_at":"2024-12-23T13:20:19.629Z","updated_at":"2025-04-13T04:13:46.002Z","avatar_url":"https://github.com/uvasoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uva Software’s scanii-lambda\nA Sam-Packaged AWS Lambda client to the [scanii.com](https://scanii.com) content processing engine. For a detailed walk-through of deploying this application see: https://docs.scanii.com/article/151-how-do-i-analyze-content-stored-on-amazon-s3.\n\n## How it works\nThis is, essentially, a series of lambda functions packaged in a one-click deployable application that configures everything needed so your S3 objects are submitted automatically to scanii’s content analysis [API](https://docs.scanii.com/v2.1/overview.html).  Once the content is processed,  you can choose from a couple of different actions:\n\n1. Tag the content - this is defaulted to on and adds the following tag to objects processed: \n\t1. `ScaniiId` -\u003e the resource id of the processed content\n\t2. `ScaniiFindings` -\u003e  list of identified findings (content engine dependent) \n\t3. `ScaniiContentType` -\u003e the identified content type of the file processed \n2. Delete the object with findings - this is defaulted to **off** and will delete S3 objects with findings (such as malware or NSFW content) - for a full list of available content identification see https://support.scanii.com/article/20-content-detection-engines\n\n## Working with the source code\nThe source code for this application is written using Javascript and requires, at least, nodejs 8 to run. Before getting started we strongly advise you to become familiar with the following technologies: \n\n1. [Amazon S3](https://aws.amazon.com/s3/)\n2. [Amazon Lambda](https://aws.amazon.com/lambda/)\n3. [AWS Serverless Application Model (SAM) specification](https://github.com/awslabs/serverless-application-model)\n\n### Building and running tests\nTests utilize Mocha and are triggered into NPM, we provide a makefile to tie everything together: \n```\n$ make test\n```\n\n### Running the application locally\nIf you have the SAM CLI (https://github.com/awslabs/aws-sam-cli) installed locally you can run scanii-lambda locally for testing: \n\n```\n$ make run\n```\n\n## Deploying it\nYou can deploy this application by clicking [here.](https://serverlessrepo.aws.amazon.com/#/applications/arn:aws:serverlessrepo:us-east-1:484983087487:applications~UvaSoftware-Scanii-Lambda)  - please note that after deployment you must manually create a trigger event for the `uvasoftware-scanii-lambda-submit` function for your S3 bucket,  under “Add Triggers/S3” and event type `Object Created (All)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvasoftware%2Fscanii-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuvasoftware%2Fscanii-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvasoftware%2Fscanii-lambda/lists"}