Every time I start to read about schemes from a birds-eye view (like in the introduction to The Geometry of Schemes by Eisenbud and Harris) I get really excited; they sound like a categorical approach to geometry, allowing for a rigorously formalized account of the infinitesimal which almost directly permits one to formalize their intuition about infinitesimal geometric concepts and then reason about these concepts precisely in an intuitively satisfying manner.
By the time I get to the formal introduction, however, we're immediately talking about prime ideals of commutative rings and topological spaces -- I have no problem with these concepts in a vacuum, but this approach feels far off base from the expectations outlined above. I have no doubt that category theory is hiding nearby in the background, but the approach through commutative algebra and topology is off-putting to me.
In the midst of my despair I came across Martin Brandenburg's answer to a question over at MSE where he says that 'schemes are categories fibered in setoids', however the page of the Stacks project linked in the answer makes no reference to schemes. In the comments on this same answer he outlines how the category of setoids is isomorphic to the category of thin groupoids, which leads to the following
Proposition. A scheme is a category fibered in thin groupoids; that is, a Grothendieck fibration $p:\mathcal{E}\to\mathcal{B}$ whose fibres are all thin groupoids.
Since Grothendieck fibrations aren't the fibrations in the model structure on $\mathfrak{Cat}$, we may want instead to offer the following
Proposition. A scheme is a category essentially fibered in thin groupoids; that is, a Street fibration $p:\mathcal{E}\to\mathcal{B}$ whose essential fibres are all thin groupoids.
Either of these points of view would be very appealing to me.
Question: Are either of these propositions correct, and if so are there any introductions to the theory of schemes viewing them in this light?