{"path": "/projects/wst/", "title": "WST · Bruno Dias", "html": "<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <meta name=\"description\" content=\"Common Lisp tools for building web applications from composable routes, handlers, and middleware.\">\n  <title>WST · Bruno Dias</title>\n  <link rel=\"canonical\" href=\"https://diasbruno.github.io/projects/wst/\" data-project-metadata>\n  <link rel=\"icon\" href=\"/assets/site/signature.svg\" type=\"image/svg+xml\">\n  <link rel=\"alternate\" type=\"application/atom+xml\" title=\"diasbruno\" href=\"/atom.xml\">\n  <link rel=\"alternate\" type=\"application/json\" href=\"/projects/wst/content.json\">\n  <link rel=\"stylesheet\" href=\"/assets/site/tokens.css\">\n  <link rel=\"stylesheet\" href=\"/assets/site/site.css\">\n  <link rel=\"stylesheet\" href=\"/assets/site/footer.css\">\n\n</head>\n<body class=\"light\">\n<div id=\"site-page\">\n<a class=\"skip-link\" href=\"#content\">Skip to content</a>\n<header class=\"site-header\">\n  <a class=\"brand\" href=\"/\" data-site-navigation aria-label=\"Bruno Dias, home\">\n    <img src=\"/assets/site/signature.svg\" width=\"24\" height=\"34\" alt=\"\">\n  </a>\n  <nav aria-label=\"Main navigation\">\n    <ul>\n<li><a class=\"nav-vrn\" href=\"/vrn/\" data-site-navigation><span class=\"nav-label\">vrn</span> <span class=\"nav-badge\">research</span></a></li>\n<li><a class=\"nav-posts\" href=\"/posts/\" data-site-navigation>Posts</a></li>\n<li><a class=\"nav-projects\" href=\"/projects/\" data-site-navigation aria-current=\"location\">Projects</a></li>\n<li><a class=\"nav-about\" href=\"/about/\" data-site-navigation>About</a></li>\n</ul>\n  </nav>\n</header>\n\n<main class=\"section\" id=\"content\" tabindex=\"-1\">\n  <article class=\"post-detail project-detail\">\n    <header class=\"section-header\">\n      <p class=\"post-category\">Project</p>\n      <h1>WST</h1>\n      <p class=\"post-subtitle\">Common Lisp tools for building web applications from composable routes, handlers, and middleware.</p>\n      <p class=\"project-technologies\">Common Lisp · HTTP</p>\n    </header>\n    <div class=\"post-columns\">\n      <section class=\"post-body\" aria-label=\"Project overview\">\n<h2>Overview</h2>\n<p>WST, short for Web Server Tools, provides the pieces for a Common Lisp web application. Routes and handlers can share middleware for requests, sessions, and responses. The route and middleware definitions keep the order of those operations visible in the application.</p>\n<h2>Route composition</h2>\n<p>A route can sit inside a resource and share middleware with other endpoints in that resource. This declaration places a GET handler under <code>/api/health</code>.</p>\n<pre><code class=\"language-lisp\">(defparameter health-routes\n  '(:resource &quot;/api&quot;\n    (:route :GET health &quot;/health&quot; health-handler)))\n</code></pre>\n<p>The bookmark app linked in the sidebar shows how the pieces fit together in an application.</p>\n\n      </section>\n      <aside class=\"post-links\" aria-labelledby=\"project-links-heading\">\n        <h2 id=\"project-links-heading\">Links</h2>\n        <ul>\n<li><a href=\"https://github.com/cl-sdk/io.github.cl-sdk.wst\">Repository</a></li>\n<li><a href=\"https://github.com/cl-sdk/wst-bookmark-example\">Bookmark app example</a></li>\n<li><a href=\"https://github.com/cl-sdk\">Common Lisp SDK</a></li>\n<li><a href=\"/projects/\" data-site-navigation>All projects</a></li>\n        </ul>\n      </aside>\n    </div>\n  </article>\n</main>\n\n<footer class=\"site-footer\">\n  <div class=\"site-footer-inner\">\n    <a class=\"site-footer-home\" href=\"/\" data-site-navigation>Bruno Dias</a>\n    <ul aria-label=\"Footer links\">\n      <li><a href=\"https://github.com/diasbruno\">GitHub</a></li>\n      <li><a href=\"/atom.xml\">Atom feed</a></li>\n    </ul>\n  </div>\n</footer>\n\n</div>\n<script type=\"module\" src=\"/assets/site/navigation.js\"></script>\n</body>\n</html>\n"}
