{"id":13601248,"url":"https://github.com/galamai/AspNetCore.Rendertron","last_synced_at":"2025-04-11T03:32:48.318Z","repository":{"id":55884746,"uuid":"110465209","full_name":"galamai/AspNetCore.Rendertron","owner":"galamai","description":"ASP.net core middleware for GoogleChrome Rendertron https://github.com/GoogleChrome/rendertron.","archived":false,"fork":false,"pushed_at":"2022-05-22T07:34:48.000Z","size":157,"stargazers_count":31,"open_issues_count":13,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-17T04:18:38.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/galamai.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}},"created_at":"2017-11-12T20:10:33.000Z","updated_at":"2022-08-15T00:35:24.000Z","dependencies_parsed_at":"2022-08-15T08:40:10.074Z","dependency_job_id":null,"html_url":"https://github.com/galamai/AspNetCore.Rendertron","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galamai%2FAspNetCore.Rendertron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galamai%2FAspNetCore.Rendertron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galamai%2FAspNetCore.Rendertron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galamai%2FAspNetCore.Rendertron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galamai","download_url":"https://codeload.github.com/galamai/AspNetCore.Rendertron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335596,"owners_count":21086626,"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":[],"created_at":"2024-08-01T18:00:59.292Z","updated_at":"2025-04-11T03:32:43.281Z","avatar_url":"https://github.com/galamai.png","language":"C#","funding_links":[],"categories":["C# #"],"sub_categories":[],"readme":"# AspNetCore.Rendertron\nASP.net core middleware for GoogleChrome Rendertron [https://github.com/GoogleChrome/rendertron](https://github.com/GoogleChrome/rendertron).\n\n## NuGet\n`Install-Package Galamai.AspNetCore.Rendertron`\n\n## Use\nIn `Startup.cs`\n\nConfigure rendertron services\n\n    public void ConfigureServices(IServiceCollection services)\n    {\n        // Add rendertron services\n\t\tservices.AddRendertron(options =\u003e\n\t\t{\n\t\t\t// rendertron service url\n\t\t\toptions.RendertronUrl = \"http://rendertron:3000/render/\";\n\n\t\t\t// proxy url for application\n\t\t\toptions.AppProxyUrl = \"http://webapplication\";\n\n\t\t\t// prerender for firefox\n\t\t\t//options.UserAgents.Add(\"firefox\");\n\n\t\t\t// inject shady dom\n\t\t\toptions.InjectShadyDom = true;\n\t\t\t\n\t\t\t// use http compression\n\t\t\toptions.AcceptCompression = true;\n\t\t});\n    }\n\t\nor\n\n\tpublic void ConfigureServices(IServiceCollection services)\n    {\n        // Add rendertron services\n\t\tservices.AddRendertron(rendertronUrl: \"http://rendertron:3000/render/\");\n    }\n\n    \nConfigure middleware\n\n    public void Configure(IApplicationBuilder app, IHostingEnvironment env)\n    {\n        ...\n        // Use Rendertron middleware\n        app.UseRendertron();\n        ...\n        app.UseMvc();\n    }\n\n## Services configuration\n\n| Property | Default | Description |\n| -------- | ------- | ----------- |\n| `AcceptCompression` | `false` | Add http compression suppor for Rendertron proxy client. |\n| `RendertronUrl` | *Required* | URL of your running Rendertron service. |\n| `UserAgents` | A set of known bots that benefit from pre-rendering. (\"W3C_Validator\", \"baiduspider\", \"bingbot\", \"embedly\", \"facebookexternalhit\", \"linkedinbo\", \"outbrain\", \"pinterest\", \"quora link preview\", \"rogerbo\", \"showyoubot\", \"slackbot\", \"twitterbot\", \"vkShare\") | Part of requests by User-Agent header. |\n| `InjectShadyDom` | `false` | Force the web components polyfills to be loaded. [Read more.](https://github.com/GoogleChrome/rendertron#web-components) |\n| `Timeout` | `TimeSpan.FromSeconds(10)` | Millisecond timeout for the proxy request to Rendertron. If exceeded, the standard response is served (i.e. `next()` is called). See also the [Rendertron timeout.](https://github.com/GoogleChrome/rendertron#rendering-budget-timeout) |\n| `AppProxyUrl` | `null` | Use proxy before application. |\n| `HttpCacheMaxAge` | `TimeSpan.Zero` | Set responce cache max age. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalamai%2FAspNetCore.Rendertron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalamai%2FAspNetCore.Rendertron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalamai%2FAspNetCore.Rendertron/lists"}