{"id":38723031,"url":"https://github.com/avniproject/avni-media","last_synced_at":"2026-01-17T11:12:54.075Z","repository":{"id":156121132,"uuid":"613837386","full_name":"avniproject/avni-media","owner":"avniproject","description":"Next.js application to view Media files for an organization","archived":false,"fork":false,"pushed_at":"2025-09-26T10:30:49.000Z","size":1207,"stargazers_count":1,"open_issues_count":21,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-26T11:33:31.814Z","etag":null,"topics":["js","nextjs","npm","webapp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avniproject.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-14T11:21:51.000Z","updated_at":"2025-09-23T10:29:43.000Z","dependencies_parsed_at":"2023-11-08T12:24:54.886Z","dependency_job_id":"734e5841-9de1-487f-8dc7-0aae3e1b4f66","html_url":"https://github.com/avniproject/avni-media","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/avniproject/avni-media","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avniproject%2Favni-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avniproject%2Favni-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avniproject%2Favni-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avniproject%2Favni-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avniproject","download_url":"https://codeload.github.com/avniproject/avni-media/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avniproject%2Favni-media/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28506655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["js","nextjs","npm","webapp"],"created_at":"2026-01-17T11:12:51.727Z","updated_at":"2026-01-17T11:12:54.055Z","avatar_url":"https://github.com/avniproject.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Local Development\n`avni-media` client and server do not support [username based authentication](https://avni.readme.io/docs/developer-environment-setup-ubuntu#conceptual-note) which is currently supported on `avni-server` for local development.\nConnecting local avni-media to server/etl on another environment like staging leads to CORS errors.\n\nThus, for local development on avni-media, other avni components like `avni-server` and `avni-etl` need to be running locally with an IDP enabled i.e. Cognito or Keycloak.\n\n### Other Avni Components\n\n#### Environment Variables\nI. Ensure that local `avni-server` and `avni-etl` have the following environment variables set\n```\nAVNI_IDP_TYPE\nOPENCHS_CLIENT_ID\nOPENCHS_IAM_USER_ACCESS_KEY\nOPENCHS_IAM_USER_SECRET_ACCESS_KEY\nOPENCHS_BUCKET_NAME\nOPENCHS_USER_POOL\n```\nIf using keycloak, also set the following on avni-server\n```\nOPENCHS_KEYCLOAK_SERVER\nOPENCHS_KEYCLOAK_CLIENT_SECRET\nOPENCHS_KEYCLOAK_ENABLED\n```\n\nII. Alternately, to work with Staging env IDP and Storage, you may use the following Make command in both avni-server and avni-etl. If required, override the DB and other details, Ex: OPENCHS_DATABASE_NAME=avni_org\n\n```\n## Init below fields in env variables\nOPENCHS_STAGING_APP_CLIENT_ID\nOPENCHS_STAGING_USER_POOL_ID\nOPENCHS_STAGING_IAM_USER\nOPENCHS_STAGING_IAM_USER_ACCESS_KEY\nOPENCHS_STAGING_IAM_USER_SECRET_ACCESS_KEY\n\nmake start_server_staging OPENCHS_DATABASE_NAME=\u003cyour_db_name\u003e\n```\n\n### Avni Media\nThere is a `local.staging` environment template configured for `client` and `server` that help with running `avni-media` locally.\nLook at `client/middleware.js` which takes care of routing the request to local `avni-server` and `avni-etl` in this mode.\n#### Server\n```\ncd server\nnvm use\nmake deps\nmake start-local-staging\n```\n#### Client\n```\ncd client\nnvm use\nmake deps\nmake start-local-staging\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favniproject%2Favni-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favniproject%2Favni-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favniproject%2Favni-media/lists"}