{"id":20007227,"url":"https://github.com/pkgw/dasch-science-lambda","last_synced_at":"2026-06-08T08:32:10.413Z","repository":{"id":260480225,"uuid":"874376827","full_name":"pkgw/dasch-science-lambda","owner":"pkgw","description":"(GitHub mirror of) The DASCH science data APIs, implemented as AWS Lambdas in Rust","archived":false,"fork":false,"pushed_at":"2025-01-31T20:51:42.000Z","size":4918,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2026-02-12T09:52:23.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkgw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-17T18:04:39.000Z","updated_at":"2025-01-31T20:51:47.000Z","dependencies_parsed_at":"2024-10-31T15:33:50.871Z","dependency_job_id":"1fb2e358-85e3-418d-89dd-c6b5841410fe","html_url":"https://github.com/pkgw/dasch-science-lambda","commit_stats":null,"previous_names":["pkgw/dasch-science-lambda"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pkgw/dasch-science-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgw%2Fdasch-science-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgw%2Fdasch-science-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgw%2Fdasch-science-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgw%2Fdasch-science-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkgw","download_url":"https://codeload.github.com/pkgw/dasch-science-lambda/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgw%2Fdasch-science-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34055249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-13T06:15:12.263Z","updated_at":"2026-06-08T08:32:10.397Z","avatar_url":"https://github.com/pkgw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lambda Functions for the DASCH Data Access\n\nThis repository defines the cloud-based DASCH science data access APIs. They are\nimplemented as [AWS Lambdas] in [Rust].\n\n[AWS Lambdas]: https://aws.amazon.com/lambda/\n[Rust]: https://rust-lang.org/\n\nThe code is built with a standard Rust `cargo build` command. This creates two\nnearly-identical executables, `dasch-science-lambda-oneshot` and\n`dasch-science-lambda-proxyevent`. The first is useful for local testing. The\nsecond supports the [AWS API Gateway proxy event][proxy] protocol, which is what\nis used in the deployed DASCH systems.\n\n[proxy]: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html\n\nThe main APIs are:\n\n- `src/cutout.rs` extracts cutout FITS images from the whole-plate mosaics\n- `src/lightcurve.rs` retrieves a lightcurve for a specific source\n- `src/platephot.rs` retrieves photometry for a subset of a single plate\n- `src/mosaics.rs` retrieves information needed to assemble a \"value-added mosaic FITS\"\n- `src/presign.rs` generates presigned S3 links for low-level data access\n- `src/querycat.rs` queries one of the “reference catalogs” for sources\n- `src/queryexps.rs` queries for plate exposures overlapping a specified sky\n  coordinate. (Plates may have multiple exposures at different sky positions, so\n  one exposure may overlap the coordinate while another does not.)\n\n\n## Local Testing\n\nLocal testing of the service requires direct access to DASCH cloud resources\nsuch as our [DynamoDB] and [S3] assets. Therefore, it's only possible for people\nwith sufficient permissions on the DASCH cloud infrastructure.\n\n[DynamoDB]: https://aws.amazon.com/dynamodb/\n[S3]: https://aws.amazon.com/s3/\n\nIf that’s you, the `oneshot` executable performs one API request, taking the API\nname (the Lambda function ARN, in the AWS context) and a JSON payload as\ncommand-line arguments. This is the easiest to run and you can attach a debugger\nto it. Run with something like\n\n```sh\ncargo run --bin dasch-science-lambda-oneshot queryexps '{\"ra_deg\":0,\"dec_deg\":0}'\n```\n\n\n## Deployment\n\nDeployment is automated through GitLab's CI infrastructure. Updates to the `dev`\nbranch lead to the `daschscience.zip` deployment package being updated on S3;\nupdates to `main` update the production version.\n\nAfter the deployment package is updated, the API Gateway must be redeployed, which\nis accomplished by triggering one of the apply pipelines of the [`aws_neo4j`]\nrepository.\n\n[`aws_neo4j`]:  https://gitlab.com/HarvardRC/rse/cfa-dasch/infra/applications/aws_neo4j/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgw%2Fdasch-science-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkgw%2Fdasch-science-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgw%2Fdasch-science-lambda/lists"}