HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
migrs
rack-server-pages
Ruby2015–2015
migrs / rack-server-pages

rack-server-pages

Rack middleware and application for serving dynamic pages in very simple way.

2Distinct people
3Mentions
0Explicit recommenders
158GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Rack middleware and application for serving dynamic pages in very simple way.

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, 3:56:07 PM 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 week3 dated mentions

Observed mentions: 2015-10-04 20:17:36 UTC to 2015-12-13 22:10:02 UTC. Weeks start Monday, UTC.

0122015-09-28 00:00:00 UTC to 2015-10-05 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsSep 282015-10-05 00:00:00 UTC to 2015-10-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-10-12 00:00:00 UTC to 2015-10-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-10-19 00:00:00 UTC to 2015-10-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-10-26 00:00:00 UTC to 2015-11-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-11-02 00:00:00 UTC to 2015-11-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsNov 22015-11-09 00:00:00 UTC to 2015-11-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-11-16 00:00:00 UTC to 2015-11-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-11-23 00:00:00 UTC to 2015-11-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-11-30 00:00:00 UTC to 2015-12-07 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-12-07 00:00:00 UTC to 2015-12-14 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsDec 7

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
Sep 282015-09-28 00:00:00 UTC2015-10-05 00:00:00 UTC110
Oct 52015-10-05 00:00:00 UTC2015-10-12 00:00:00 UTC000
Oct 122015-10-12 00:00:00 UTC2015-10-19 00:00:00 UTC000
Oct 192015-10-19 00:00:00 UTC2015-10-26 00:00:00 UTC000
Oct 262015-10-26 00:00:00 UTC2015-11-02 00:00:00 UTC000
Nov 22015-11-02 00:00:00 UTC2015-11-09 00:00:00 UTC000
Nov 92015-11-09 00:00:00 UTC2015-11-16 00:00:00 UTC000
Nov 162015-11-16 00:00:00 UTC2015-11-23 00:00:00 UTC000
Nov 232015-11-23 00:00:00 UTC2015-11-30 00:00:00 UTC000
Nov 302015-11-30 00:00:00 UTC2015-12-07 00:00:00 UTC000
Dec 72015-12-07 00:00:00 UTC2015-12-14 00:00:00 UTC202

What Hacker News says

3 sources
As someone who's spent a not-insignificant amount of time optimizing the heck out of a Sinatra benchmark[1] for TechEmpower's Web Framework Benchmarks[2] (TFB), and as someone who's spent the last four months or so building a json:api compliant Sinatra back-end and Ember.js front-end (for an MVP), this subject is near and dear to my heart. I definitely thrashed on language selection for a few weeks before settling on Ruby. It was an opportunity to learn a great language, but I wanted to actually learn the language instead of relying on a huge library. Rails had a lot of overhead for what we had in mind, Rails API had only recently been merged and seemed unproven, and the more esoteric Ruby web frameworks based on Celluloid (e.g. Reel) and EventMachine (e.g. Goliath) were too daunting. I think going all (well, almost all) the way down to R
Read the rest
ack, as suggested in the OP, is a little too extreme. One of the commenters over there mentioned Rack Server Pages[3], which is interesting. Sinatra appealed to me because most of its features come disabled out of the box (in modular mode), and you can selectively reenable them and incorporate other bits of Rack middleware to build up your stack. Some commenters here appear to be conflating Rails and Sinatra in terms of behemoth-ness, which is strange to me because Sinatra::Base is less than 2,000 LOC. Sinatra is not much more than a thin DSL for creating Rack applications as described in the OP! Anyway, it also seemed silly to eschew Rails only to pull in ActiveRecord and ActiveSupport, so after another round of research I selected the excellent Sequel ORM[4] to handle database abstraction. There have been times when I felt like we were going against the grain. The Ruby community is oriented around Rails, and most of my early Ruby questions received Rails-specific answers, which was frustrating. Some pieces of Rack middleware and other things like json:api serializers tend to be implemented (and documented) in a Rails-specific way; getting them to work with Sinatra (or finding viable alternatives) has been time-consuming. More than once I've thought to myself, "If we're going to use some unsupported and/or fringe-y thing, we might as well have built this in Elixir or Luminus or Sails or ChicagoBoss or..." That being said, writing Ruby is fun, the community is great (MINASWAN), and we've discovered some amazing libraries. There is a ton of work going on to improve Ruby (specifically, JRuby 9K, Ruby OMR, ConcurrentRuby, etc.) so the language has a bright future. In the meantime, our solution is fast, stable, simple, and easy to test and deploy, so it meets all of our requirements. 1. https://github.com/mwpastore/FrameworkBenchmarks/blob/sinatr... 2. https://www.techempower.com/benchmarks/ 3. https://github.com/migrs/rack-server-pages 4. http://sequel.jeremyevans.net
In Ruby Web Applications Without Rails
When years ago I started learning Ruby and wanted to use it for the web, my intention was using it like you do with PHP (simply including it in HTML) but I got a bit frustrated because all the resources I kept finding showed the only way of using Ruby in a web context was by using a big framework like Rails or, by choosing a wrong path and playing with stuff which required a lot more in depth knowledge that I did not have (and that I didn't want to be forced to have because I just wanted to focus on app code and experiment). I only recently discovered https://github.com/migrs/rack-server-pages which allows to simply shove Ruby in HTML the same way as PHP and as a new Ruby dev could expect to be able to do. I think this approach makes learning projects simpler, and at the same has the added value of making people actually learn a lot about
Read the rest
those aspects of HTTP that frameworks keep well hidden under their carpet and that can help you become a good web developer instead of "simply" a framework user. Yes for sure, best practices that frameworks implement are there for a reason, and it's great to have them, but IMHO, this approach has advantages when learning and could also be seen as an essential step to understand what those frameworks you will use next are abstracting and why. IMHO, what still contributes to new generations of devs approaching PHP, is also its immediateness and simplicity with nothing to do except '<?php' code '?>' and with this comment I just wanted to give a bit more exposure to the fact that a similar solution exists for Ruby too, and that it's a bit of a pity that because of the importance of Rails it got a bit overshadowed.
In PHP 7 Released

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.