Popularity
2.2
Declining
Activity
0.0
Stable
0
3
1
Monthly Downloads: 10
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
wai-middleware-static-embedded alternatives and similar packages
Based on the "wai" category.
Alternatively, view wai-middleware-static-embedded alternatives based on common mentions on social networks and blogs.
-
wai-middleware-static
WAI middleware that intercepts requests to static files and serves them if they exist. -
wai-cli
DISCONTINUED. Command line runner for Wai apps (using Warp) with TLS, CGI, socket activation & graceful shutdown | now on https://codeberg.org/unrelentingtech/wai-cli -
wai-middleware-static-caching
WAI middleware that intercepts requests to static files and serves them if they exist.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of wai-middleware-static-embedded or a related project?
README
Static embedded middleware
A middleware
to serve static files from memory. Works particularly
well with file-embed
.
Example usage
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
import Network.Wai.Middleware.StaticEmbedded -- This package
import Data.FileEmbed -- file-embed
import Web.Scotty -- scotty
main :: IO ()
main = scotty 1337 $ do
middleware (static $(embedDir ".")) -- serves the source directory
notFound (text "404: Not found!")