This is historical material “frozen in time”. The website is no longer updated and links to external websites and some internal pages may not work.

Search form

We the Coders: Open-Sourcing We the People, the White House's Online Petitions System

Summary: 
The source code for We the People, the online petitions system for the public to connect with the White House, is now available online.

I'm thrilled to announce that we are publishing the source code for We the People, the online petitions system that has been a popular way for the public to connect with the White House over the past year.

Since We the People went live, thousands of petitions have gathered millions of signatures from people across the country. As those petitions have come in, the White House has posted responses about an open internet & SOPA/PIPA, puppy mills, reducing student load debt, working to fix our broken immigration system, reaffirming the President's opposition to the Defense of Marriage Act, and more.  

When President Obama talked about We the People at the Open Government Partnership last year, he promised to, "share that technology so any government in the world can enable its citizens to do the same." Now anybody, from other countries to the smallest organizations to civic hackers can take this code and put to their own use.

One of the most exciting prospects of open sourcing We the People is getting feedback, ideas and code contributions from the public. There is so much that can be done to improve this system, and we only benefit by being able to more easily collaborate with designers and engineers around the country - and the world. Here are a few favorites from the roadmap in the README doc:

*API Development*

The current platform requires users visit the site directly in order to create or sign a petitions via the We the People website. We would like to develop an API that would allow users to sign a petition via a third party website, but with some level of verification that confirms a valid email address to potentially receive a response. 

Developing an API would greatly expand the appeal of this tool, allowing other organizations to control the user experience and flow for petitions within their own environment while still registering verified signatures against a We the People threshold.

*Improved Social Media Integration*

The current platform allows basic sharing of petitions, responses and other content on the site via social media platforms like Facebook and Twitter. In the future, we would like reduce the friction of signing a petition by making it possible to sign a petition in the context of a social network (e.g. by “liking” an object on facebook). 

*Mobile interface*

Whether through a mobile browser or standalone application, We the People should be accessible through mobile devices given the large and increasing portion of mobile traffic on the web.

But the bigger potential comes from the fact that the source code for the application has been released in a way that allows anybody to download a copy, make changes, and use it for their own projects. So we're just as excited to see where others take it.

If you're a Drupal developer and have an interest in using We the People or contributing to its development, check out the code and let us know. We'd also love to learn about how you're using the code for your own projects, so drop us a line @WHWeb on Twitter. Or hit me up directly @macon44.

In addition, this is our team's first big release of code (we've got a few things up here), and we're eager for feedback about how best to engage the open-source community generally. So suggestions on our overall approach are greatly appreciated as well.