Oriel — AI & technology worth noticing, every day.

Exploring Janet and the httpf web framework

Web page · https://nick.gs/blog/2026-11/exploring-janet-and-the-httpf-web-framework

First seen by Oriel on .

AI summary

The author builds a small Janet server with spork/httpf and concludes that the framework is convenient for basic use but too limited for most web applications.

  • httpf discovers route functions through :path metadata, while :render-mime controls serialization and setdyn specifies the HTTP response code.
  • Route handlers receive a request struct and post-data; POST form data and query parameters are decoded into Janet tables.
  • application/json serializes basic Janet data structures, while text/html requires hiccup-style structures processed by spork/htmlgen.
  • HTTPF lacks dynamic path segments, configurable response headers, cookies, and direct static asset serving.
  • Alternatives include GPL-licensed Circlet and the fuller-featured Joy, though the author encountered cookie-setting bugs in Joy.

#janet #httpf #web frameworks #http servers

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Lobsters: 11, latest observation ; +10 over observed period since

Comments

Comment count reported by the source.

  • Lobsters: 1, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
Lobstersydzlvphttps://nick.gs/blog/2026-11/exploring-janet-and-the-httpf-web-framework/ Read discussion