In the last weeks we have been working hard in order to make easier to develop new PyBossa applications. For this reason, we are happy to announce a new version of PyBossa.JS. This new version introduces several improvements:
- Creating an app is much easier! You only have to override two methods: pybossa.taskLoaded and pybossa.presentTask to fit your app, and call pybossa.run(‘your-app-slug’).
- Pre-loading tasks by default! Now your app could improve its performance, as the next task for the user will be loaded in the background for you while the user stills solving the first one!
- Automatically update the task URL. The library will change the browser’s URL to the current task automatically, so using services like Disqus for comments is really simple (check the updated version of Flickr Person Finder for more details!).
As a result of this new version, there are at least two applications using the new PyBossa.JS version:
- Flickr Person Finder has been updating, using this new set of features. If you try the application you will see that loading the next task (in this case an image which is usually 1024x1024px big) is almost instantly. Additionally, the app shows how you can use the Disqus service to allow your users to add comments for each task, but only loading them when the user wants.
- The Face We Make is a new application where you have to guess the emoticon that a person is representing in a photo. This app is a joint effort with the official The Face We Make project by Dexter Miranda and Daniel Lombraña González. The app has been updated for using the new pre-loading of tasks, and once you have completed all of them (only 10 photos!) show you your results, in other words, how many of your guesses are right/wrong.
Finally, we have also added the “missing features” that allow you to create an application without using the API. Right now, you can create an application using only the web forms for creating the application:
You can also add and work in the task presenter (we have included the CodeMirror plugin, so you will see how it looks your code as you type it!):
As well as importing the tasks via a CSV file importer (you can even import the CSV file from a Google Spreadsheet!):
The documentation has been updated in order to reflect this new features, and as a result you should be able to write an application really fast. However, we are far from perfect, so any feedback that you can give us will be really good! Thus, please, leave in the comments your feedback or send us an e-mail to firstname.lastname@example.org. We will be more than happy to hear your thoughts on PyBossa!