Barcelona's Smart City: Superblocks and CityOS

Barcelona's Smart City: Superblocks and CityOS

Three layers, open source where possible and built up over more than a decade — Superblocks, Sentilo and CityOS, Decidim. Barcelona's retrofit smart city.

Barcelona's smart city is three layers, not one — Superblocks reshaping the streets, Sentilo providing the data spine (with CityOS, a big-data platform the city was developing in 2017, designed as the analytics tier on top), and Decidim running participatory democracy. Each layer is open source where possible, each started at a different time, and Superblocks, Sentilo and Decidim were all still in use as of Nov 2026. The case shows what a retrofit smart city looks like when physical design and software are treated as the same project.

Barcelona's smart city has three layers, not one

Descriptions of Barcelona's smart city can flatten the program into a single story — either a vendor pitch about IoT sensors, or a sustainable-urbanism essay about pedestrian streets. The accurate picture is layered.

The physical layer is Superilles — Superblocks — a redesign of the street grid that turns clusters of nine city blocks into one large pedestrian-priority space with vehicular traffic relegated to the perimeter. The data layer is Sentilo, an open-source IoT sensor platform, with CityOS, the big-data platform the city was building in 2017, designed to sit on top as the analytics tier. The participation layer is Decidim, an open-source platform for participatory budgeting, public proposals, and surveys.

The layers did not arrive together. Sentilo grew out of a Barcelona City Council smart-city project (the project's own site dates it to November 2012), Barcelona's decidim.barcelona participation site went live in early 2016, and the Superblocks programme was adopted as a city government measure in 2016, building on a concept already presented in the 2013 Urban Mobility Plan. What is striking, in retrospect, is that Sentilo, the data layer's sensor platform, has stayed in use for more than a decade without being torn out. Open-source procurement turned out to be a continuity strategy as much as a cost strategy.

Superblocks — urban redesign as smart-city primitive

Salvador Rueda, director of Barcelona's Urban Ecology Agency, presented the Superblock (superilla) concept as part of the city's new Urban Mobility Plan at the Mobility Pact plenary on July 2, 2013. The mathematical primitive is simple: take a three-by-three grid of nine blocks of the city's regular street grid and treat the interior streets as a single connected public space, with vehicular through-traffic redirected to the grid's outer edges.

Under the 2016 program, the city created the Poblenou Superblock in September 2016, and small-scale Superblocks followed in Sant Antoni and Horta. The city has since moved from individual Superblocks to a network of green hubs and squares, starting in the Eixample (as of Nov 2026) — the city presents Superblocks as becoming the street-transformation model for the entire city rather than a single project.

Measured outcomes have been mixed. Barcelona's public health agency (ASPB) evaluated the Poblenou, Sant Antoni, and Horta Superblocks. In Sant Antoni it measured nitrogen dioxide down 25 percent and PM10 down 17 percent inside the Superblock; in Horta, overall nitrogen dioxide and particulate levels stayed low and did not change with the intervention, although black carbon rose at one of two measurement points on the main redesigned street and fell at one of two on the redesigned interior streets. Poblenou residents perceived less pollution and especially less noise, but older residents said they did not use the space and that it had made their mobility and access worse, and in Horta pedestrians on the main redesigned street reported feeling less safe than before. The honest description is that Superblocks change a neighborhood in directions urbanists endorse and in directions some residents resist, and that both reactions are legible in the data. Treating the program as politically uncontested misses what is interesting about it.

For the smart-city argument, the most important thing about Superblocks is not the air-quality numbers but the layer interaction. Once the interior streets are pedestrian-priority, the data layer below them can become more useful: pedestrian counts, sensor-driven irrigation of newly green public space, on-street parking sensors at the new perimeter. Treated together, the physical redesign and the data layer can make each other more legible.

Sentilo and CityOS — the data spine as designed

Underneath the streets sits Sentilo, an open-source IoT sensor platform that grew out of a city council smart-city project (the project's own site dates its start to November 2012) and that Barcelona uses to connect its citywide sensor networks to the applications that monitor them. It is published under a dual European Union Public Licence (EUPL) and LGPLv3 license. Sentilo is designed to share information between heterogeneous systems, giving sensors from any manufacturer a common way to report into a shared data layer; Barcelona's own sensor testing has ranged from noise and air contamination to traffic congestion and waste management. The protocol design separates providers, which publish sensor data and receive commands, from the client applications that consume that data and send orders, with Sentilo in between; both sides can subscribe to platform events.

CityOS was planned as the analytics tier above the sensor layer. In a July 19, 2017 announcement of an agreement between the city's Municipal Institute of Informatics and the Barcelona Supercomputing Center (BSC), the city and the BSC described CityOS, then under development, as the city's big-data platform: a city data ontology would standardize data catalogs from systems and mixed sources, such as sensors, energy indicators, mobility and pollution, so they could be cross-referenced and analyzed systematically, and the platform was meant to support real-time decision-making through big-data processing. Where Sentilo collects, CityOS was designed as the place where the data is combined. The split separates a sensing platform that handles ingest and storage from an operational platform for cross-referencing data and supporting decisions. Sentilo's own documentation describes its role as isolating the applications that use sensor data from the layer that provides it.

Two design choices in this stack matter more than they look. The first is open source. Sentilo is published under weak-copyleft licenses (EUPL and LGPL), which keep the core code open while still allowing proprietary extensions on top, and other cities have adopted it. Most documented adopters on Sentilo's sponsors and partners pages are Catalan municipalities such as Terrassa, Reus, and Granollers, and the project's partner list also includes Dubai Municipality. Open-source procurement was meant to keep cities from becoming too dependent on specific technologies, products or providers, and it gave adopting cities a shared community of cities and companies that build, use and support the platform. The second is interface stability. A stable publish-subscribe interface is what lets the analytics layer above change without the sensor fleet below being rebuilt.

LayerComponentRole
SensingIoT sensors across the cityExamples from Barcelona's sensor testing: noise, air quality, traffic, waste
Ingest and storageSentilo (open-source; grew out of a city project dated 2012 by sentilo.io)Sensor publish-subscribe protocol; vendor-neutral data layer
AnalyticsCityOSBig-data platform for cross-referencing city data (under development in 2017)
ParticipationDecidimCitizen proposals, participatory budgeting, surveys

This layered structure is what makes Barcelona useful as a reference: its strength is a clear separation of concerns rather than a single clever product.

Decidim — open-source democracy

The third layer is Decidim. Barcelona's participation site, decidim.barcelona, went live in early 2016 on a fork of Madrid's CONSUL; Decidim was relaunched as its own software in early 2017. Decidim is an open-source platform for participatory democracy — proposals, comments, deliberation, voting on initiatives, participatory budgeting, and surveys. It is written in Ruby, maintained by the non-profit Decidim Free Software Association, and licensed under AGPL.

Adoption outside Barcelona is what makes Decidim more than a city project. Decidim's installation list includes Helsinki, Milan, and New York City, along with national and EU-level institutions such as the French National Assembly's petitions site and the European Commission's citizens' engagement platform (as of Nov 2026). The pattern is a working alternative to private civic-engagement SaaS — a platform a city can self-host, audit, and contribute back to. Reading Decidim alongside any private civic-engagement vendor's pitch is one of the more useful comparisons a procurement office can do.

The platform alone does not produce participatory democracy any more than a content management system produces good journalism. Decidim depends on procedural commitments: budget transparency, follow-through on adopted proposals, and protection of the platform from capture by organized interest groups. The platform is necessary; it is not sufficient. Adopting Decidim without the institutional commitments risks shallow participation.

What Barcelona shows about retrofit smart cities

A few patterns generalize from the Barcelona case.

The most useful one is that physical design and software should be treated as the same project. Superblocks can make the data more useful, and data is what makes Superblock outcomes legible — the two layers can run in feedback. A smart-city program run as software-only, with no claim on street design, can end up with sensors that report on conditions the city has chosen not to change.

The second is that open source is a procurement strategy, not just a software choice. Sentilo and Decidim have stayed in use for a decade or more, and a plausible part of the reason is that removing them would mean breaking interoperability with peer cities and adopters. Lock-in cuts both ways. A proprietary contract binds the city to one vendor, yet a new administration can still end that contract and walk away from the platform, which is sometimes the point of the change. An open-source platform shared with peer cities is harder to abandon on political grounds alone, because removing it breaks interoperability with those peers. Open source raises the political cost of reversal, and that is a feature in cities where political change is the norm.

The third is that political legitimacy is the hard problem. Superblock expansion draws opposition as well as support. For the Poblenou Superblock, the city's own project page records resident complaints and proposals, open sessions and a working commission with the main local groups and organizations, which led to the definitive traffic arrangement being put in place in early 2017. The democratic legitimacy of physical change is a constraint that smart-city programs in retrofit cities collide with, and Barcelona has had to negotiate it in public.

The fourth is that none of this is universal. Decidim depends on existing civic infrastructure to run well; importing the platform without the institutional commitments risks shallow participation. The three-by-three Superblock primitive fits the regular block grid of the city's Cerdà plan; in Horta, outside that grid, Barcelona adapted the model to single-surface streets with reduced speeds, and a city without a uniform block pattern would need similar adaptations. The case study is useful as a reference architecture, not as a template.

For practical reading, the Barcelona city portal and the Superilles program site are the primary sources for the city's own framing. The platforms themselves — Sentilo and Decidim — are studied directly by adopting cities.

Diagnostic checklist for the next planning cycle

  • If you are scoping a smart-city retrofit, separate the physical redesign, data spine, and participation platform as three distinct decisions, not one
  • Look at Sentilo's protocol design before specifying any in-house IoT platform — the architecture is publicly documented, and Barcelona uses it to connect its citywide sensor networks
  • Read Decidim's documentation alongside any private civic-engagement vendor's pitch — the comparison is instructive
  • Treat open-source procurement as a continuity strategy, not just a cost strategy, when politics may shift between administrations
  • Pair this profile with Helsinki or Amsterdam — three retrofit European cities with overlapping but distinct strategies
Project Inquiry