Popularity
2.4
Declining
Activity
0.0
Stable
9
0
0
Monthly Downloads: 15
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.1.2
servant-seo alternatives and similar packages
Based on the "Servant" category.
Alternatively, view servant-seo alternatives based on common mentions on social networks and blogs.
-
servant-websockets
Small library providing WebSocket endpoints for servant. -
servant-auth-wordpress
Authenticate Wordpress Cookies & Nonces in Haskell Requests. -
servant-polysemy
A Haskell library: Utilities for using servant in a polysemy stack. -
http-rfc7807
Problem Details for HTTP APIs as defined by RFC7807
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of servant-seo or a related project?
README
servant-seo
Installation
- Add
servant-seo
to project dependencies.
Usage
- Restrict API with
Disallow
combinator to prevent robots making requests.
type ProtectedAPI = Disallow "admin" :> Get '[HTML] AdminPage
type StaticAPI = "cdn" :> Disallow "static" :> Raw
- Add
Priority
andFrequency
(optional step).
typw BlogAPI = "blog" :> Frequency 'Always :> Get '[HTML] BlogPage
- Extend your API with something like:
Warp.runSettings Warp.defaultSettings $ serveWithSeo website api server
where
website = "https://example.com"
You will have /robots.txt
and /sitemap.xml
automatically generated and ready to be served with your API.
See Servant.Seo
module for detailed description and example/Example.hs
for show case.
Acknowledgements
This library would not have happened without these people. Thank you!
- @fizruk and Servant Contributors: as source of inspiration.
- @isovector: for
Thinking with types
book.