HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
metosin
compojure-api
Clojure2015–2020
metosin / compojure-api

compojure-api

Sweet web apis with Compojure & Swagger

7Distinct people
7Mentions
0Explicit recommenders
1.1KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Sweet web apis with Compojure & Swagger

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year7 dated mentions

Observed mentions: 2015-09-08 20:06:48 UTC to 2020-08-17 08:28:43 UTC.

01232015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments20172018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2020

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC101
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC303
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC202
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101

What Hacker News says

7 sources
* Hiccup (https://github.com/weavejester/hiccup) - DSL for generating html. You can easily mix it with other language constructs. There are similar libraries for Common Lisp and Scheme. * Compojure-api (https://github.com/metosin/compojure-api) - for building web applications. Mix json-like, hiccup and clojure constructs for web applications and autogenerate Swagger documentation. * LOL book (https://letoverlambda.com/). Extreme examples what you can do with macros and code modifications during compile time. * Seesaw (https://gist.github.com/daveray/1441520) - library for building GUI apps with Clojure and Swing. Express GUI elements through declarative syntax. Qt and other libraries has similar feature, but is usually preprocessed with external tools. * Scheme - MiniKanren (https://docs.racket-lang.org/minikanren/index.html) Most of thes
Read the rest
e things in regular languages would require modifying language parser or compiler, or adding external tool that will parse that code and generate new one; e.g. like React is doing with html chunks. Also, many Scheme/CL/Clojure implementations provide functions to modify syntax table in runtime, allowing you to alter how things are parsed. That is extremely hard in regular languages due unregular syntax constructs.
In LFE: Lisp Flavored Erlang
I'm partial to Compojure API (https://github.com/metosin/compojure-api). The thing I like about it, is at the point where I've just scaffolded a barely functional prototype, I also have a spec and interactive documentation. That documentation serves as the service's first UI. UX peeps think I am sadistic, but I like having the controls embedded in the manual. It is also very beautiful. If you look at the examples, there are few forms (keywords, in other languages) that are not related to the domain of an HTTP API. The code is dense, but rich in relevant information. If you want to explore the underlying architecture, look up the Ring project. It contains the lower level server primitives that several web frameworks are built on top of.
In Ask HN: Best Back end web-frameworks for startups in 2017?
The first issue is addressed by templates. I maintain Reagent and Luminus templates and make sure that Cljs compiles correctly for both dev and prod targets. While I understand author's complaint regarding it being difficult to retrofit the template code into an existing project, I really don't see a simple solution to that. Standard behaviors can be extracted into plugins and libraries, but project specific configuration really does have to be part of the project. The Figwheel REPL can be trivially connected to an IDE as seen [here](http://www.luminusweb.net/docs/clojurescript.md#clojurescrip...). This should work with any editor the has nREPL support. There's really no good reason to use the built in REPL on the command line when you can connect the editor and send the code for evaluation directly from there. In terms of client-server i
Read the rest
nteraction I found that using cljs-ajax https://github.com/JulianBirch/cljs-ajax on the client coupled with compojure-api https://github.com/metosin/compojure-api on the backend works really well. With regards to Vim, it's definitely not as popular as Emacs or Cursive for Clojure development, so it's not surprising that the tooling around it would be more spotty. I think this is one area where Clojure shines overall though, as there is support for it in majors IDEs and many popular editors. However, using something that's popular with the community will obviously get you the best mileage. Overall, I still find ClojureScript to be far more productive than anything I've used to develop on the front-end.
In ClojureScript Blues

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.