{"id":21101107,"url":"https://github.com/understanding-astro/astro-middleware-examples","last_synced_at":"2025-04-13T03:30:45.674Z","repository":{"id":191332947,"uuid":"680012808","full_name":"understanding-astro/astro-middleware-examples","owner":"understanding-astro","description":"✨ Practical Astro middleware examples from Basic auth to JWT auth and more. ","archived":false,"fork":false,"pushed_at":"2023-09-14T04:37:42.000Z","size":185,"stargazers_count":75,"open_issues_count":0,"forks_count":10,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T20:49:29.706Z","etag":null,"topics":["astro","astrojs","jwt","middleware"],"latest_commit_sha":null,"homepage":"","language":"Astro","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/understanding-astro.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}},"created_at":"2023-08-18T06:22:30.000Z","updated_at":"2025-03-08T08:47:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddc7b22d-5d70-4972-b0d9-ab5482589209","html_url":"https://github.com/understanding-astro/astro-middleware-examples","commit_stats":null,"previous_names":["understanding-astro/astro-middleware-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/understanding-astro%2Fastro-middleware-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/understanding-astro%2Fastro-middleware-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/understanding-astro%2Fastro-middleware-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/understanding-astro%2Fastro-middleware-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/understanding-astro","download_url":"https://codeload.github.com/understanding-astro/astro-middleware-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248659574,"owners_count":21141144,"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":["astro","astrojs","jwt","middleware"],"created_at":"2024-11-19T23:39:37.416Z","updated_at":"2025-04-13T03:30:45.644Z","avatar_url":"https://github.com/understanding-astro.png","language":"Astro","readme":"![Demo](https://i.imgur.com/dKpBx5G.png)\n\n# Astro Middleware Examples\n\n- [Hello world](https://github.com/understanding-astro/astro-middleware-examples/tree/master/hello-world)\n- [Locals object](https://github.com/understanding-astro/astro-middleware-examples/tree/master/locals-object)\n- [Basic Auth](https://github.com/understanding-astro/astro-middleware-examples/tree/master/basic-auth)\n- [JWT Auth](https://github.com/understanding-astro/astro-middleware-examples/tree/master/jwt-auth)\n- [Redirects](https://github.com/understanding-astro/astro-middleware-examples/tree/master/redirect)\n- [Multiple middleware](https://github.com/understanding-astro/astro-middleware-examples/tree/master/multiple-middleware)\n- [Feature flag (PostHog)](https://github.com/understanding-astro/astro-middleware-examples/tree/master/feature-flag-posthog)\n- Coming soon ...\n\n## 🧞 Commands\n\nChange directory to the required example and run any of the following commands from a terminal:\n\n| Command                   | Action                                           |\n| :------------------------ | :----------------------------------------------- |\n| `npm install`             | Installs dependencies                            |\n| `npm run dev`             | Starts local dev server at `localhost:3000`      |\n| `npm run build`           | Build your production site to `./dist/`          |\n| `npm run preview`         | Preview your build locally, before deploying     |\n| `npm run astro ...`       | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro -- --help` | Get help using the Astro CLI                     |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderstanding-astro%2Fastro-middleware-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funderstanding-astro%2Fastro-middleware-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funderstanding-astro%2Fastro-middleware-examples/lists"}