PLANNED
- Generic game trees.
- Listen to incremental game changes via observer.
Unreleased
- The admins' menus and panels are appfr 0.68.0: the search box over the admin's lists has an edge and a field's fill, and the number beside each type in a list is abbreviated past a thousand (1.2k).
- The admin's panels sit straight in the window, without the bar and border the outermost space drew around them ("Row"); how that space is shown (a row, a column, tabs or a desktop) is chosen from Window → Arrange. The admins' menus and panels are appfr 0.58.0.
- The admin: a pane of tabs' ⋯ menu has Close all, which closes every tab on it that can be closed. The admins' menus and panels are appfr 0.57.0.
- The admin's lists sort by any column: press its heading (an app's file, kind, folder or status, a participant's app, period, group or stage, a log entry's event, ...). An app's Kind says what it is: jtree app, oTree app, z-Tree treatment or questionnaire, queue, or oTree session config (they were all "app" or "queue"); an oTree app's file is its folder (it was its
__init__.py) and a session config's issettings.py › <name>(it wassettings.py#<name>). Apps and queues can stay out of the admin's lists of apps:app.listed = falsein a jtree app,queue.listed = false(or"listed": false) in a queue,JTREE_LISTED = Falsein an oTree app'sC,jtree_listed=Falsein a session config; Browse's "Unlisted" filter shows them. - A new session opens in the admin's Session panel, in a window of its own filling the page, whether it is started from an app's panel, the App editor, File → New session, the Session panel or Browse. What was open before stays as it was, as another window.
- The admin's Window menu lists the windows open ("Browse + trust", "Session", say: a window is named for the panels in it) and brings the one chosen to the front; Arrange shows them as a row, a column, tabs or a desktop. Browse, Session, Participants, Participant views, Log and Settings are opened and closed from a new Panels menu (they were in the Window menu). With several windows, Arrange also has Next tab, Previous tab and Close all. The admins' menus and panels are appfr 0.59.0.
- The admin tells apps of the same name apart: where several share one (
cournotas a jtree app, an oTree app and a z-Tree treatment, say), its app lists and menus put the folders that make each unique in front (jtree/cournot,otree/cournot,ztree/cournot). - GIMS (
client/apps/gims) is made of apps of their own, each with the presets of the studies it is part of (under the names of their markets), and an example to play it alone: the market (market/, with the engine), the control questions, the cognitive reflection test and Holt and Laury's lottery choices before or after it, the chat, bonds and forecasts before trading, the bonds back, the forecasts paid and a lottery ticket after it, the account status and a rating after a period's results, and the payment.gims/app.jttis a wrapper: for a study, it adds the apps its presets turn on as its stages, with the stage ids GIMS's had (controlQuestions,crtBefore,riskAfter,payment, ...); the market adds the apps of each period as its own stages (itsperiodAppsoption), played by its traders on their accounts. A study plays as before, its settings and its "changes" the same; the bonds back, the forecasts' earnings, a lottery ticket's draw, the account status and the rating have screens of their own, and the lottery choices' result screen can be left out (holtLauryResult, off for Breaban and Noussair, whose lotteries come before the market). Played alone, the market pays its rounds as points, and the payment app pays the session's apps before it. - oTree apps: a page's
js_varsare computed again when the page connects (or is reloaded), as oTree computes them for each request: a page that loads after its stage started gets them as they are then (the time since an auction started, say). The samples' centipede and real-effort jtree apps can now be described as app descriptions (their functions need nothing from the file butapp, and the work stage's length is read from its option when it starts). - GIMS asset markets (
client/apps/gims): the Graz-Innsbruck Market System's generic asset market (Palan 2015) as a jtree app. One or more assets traded in a continuous double auction, a call auction or both, with GIMS's order rules (validation and invalidation of orders, the improvement and no-crossing rules, fees, shorting, its five-step call auction price) and settings (endowment types, dividends, buyback values, practice periods, the vote to end a period, control questions, the CRT, Holt and Laury's lotteries), and more for published designs: repeated markets, a dividend account apart from cash, interest on cash, cash inflows, holding caps, purchase limits, buyer and seller roles, and price forecasts paid by accuracy. 23 presets, chosen when a session starts: GIMS's defaults and 22 published designs, from Smith, Suchanek and Williams (1988) to Tucker and Xu (2024), each with its source; a "changes" option changes any setting. See the new page, "GIMS asset markets". Then 59 more, for 25 more studies of the asset market experiments list (Haruvy and Noussair 2006 to Shestakova, Powell and Gladyrev 2019), with what their designs need: holding taxes, drawn final values with supplements, insiders, private signals or public news, value paths, a cash reserve for short positions, a book of depth one, announcements, a chat, bonds and an interest rate policy, a computerized firm, lottery tickets, an account status and rating after each period, period lengths by round, cash carried between markets, earnings as profits, one market paid from each block, subsidies, and a maximum payment. - The
askBeforeLeavingsetting (default true):falsestops participants' pages asking before they are closed or reloaded. Changing the admin password or "multiple users" in the admin keeps the other settings insettings.json(it rewrote the file with those two alone). - A samples library (
client/apps/samples): 23 economics experiments, from dictator and trust games to auctions and an asset market, each as a jtree app, an oTree app (in an oTree project, a session config each) and a z-Tree treatment, with the same design and payoffs. It gathers jtree's former sample games (1 sample games, now in it), oTree's sample games and z-Tree's examples. See the new page, "Samples library". The public goods game's screens say "points" (they said "E$"), as the tutorials' now do. - The App editor and oTree Studio keep a file's line ends: an app with Windows' (
\r\n) gets them in what an edit puts in too (edits mixed them). - oTree apps: the bots'
call_live_method(tests.py) runs, once per group and live page, as in oTree; an app in a project runs with the project's settings (POINTS_DECIMAL_PLACES,USE_POINTS, ...) even when started alone;ExtraModel.creategives the fields it is not given theirinitialvalue; and an amount equals a number as oTree has it (cu(38) == 37.5with whole points). - One model for apps, stages and queues: an app is a list of stages, and a stage is an app (
stage instanceof App). A stage can have stages of its own (stage.newStage(id)), playedstage.numPeriodstimes each time a group reaches it, in the group or regrouped (groupSize, or another matching, on the stage), with an app's hooks, and adurationfor the group's time in them all.app.addApp(file, options)makes another app's file a stage, loaded afresh each time with its own periods, groups and page, bringing the stage settings its file sets (waitToEnd,groupStart, ...). A queue is an app whose stages are its apps:app.addApp('my-queue.jtq')adds it as a stage (added to a session, its apps are the session's, as before). Their data follows their app's in the session's file, and a saved session loads them where they were. App descriptions (IR) have them too. Apps written as before run as before. See the new tutorial, "Apps and stages". - A player is saved after
playerEnd: what it sets in a period's last stage is in a saved session too (it was lost when the session was loaded). - The app editors' code fields are a code editor (CodeMirror 6) instead of plain text boxes: syntax colours for JavaScript, HTML, CSS and Python, line numbers, Tab to indent, matching brackets, search (Ctrl+F) and completion (Ctrl+Space), in jtree's App editor (functions, screens, a script's code, an element's HTML, Source), the z-Tree admin's program and screen dialogs, and oTree Studio (functions, methods, templates,
__init__.py,settings.py). They follow the admin's light or dark theme. - The admin's open panels and their arrangement are in its address (
?w=…): reloading the page keeps them, and a link opens them as they were. A panel can be popped out to a browser window of its own (its ⋯ menu). Moving or closing every panel on one side of the default layout no longer leaves an empty box there. The z-Tree admin's windows are in its address too. The admins' menus and panels are appfr 0.56.0. - The admin's text is larger: 15px body text (it was 13px), 14px for the App editor's tree, labels and buttons, 13.5px for code, in every theme.
- The admin's inherit and mono-size themes are readable in dark mode: the page gives them light text on its dark background, and a sans-serif font (they had black text and the browser's serif font).
- The App editor: drag and drop in its tree (elements before, after or into others, onto another screen or stage, copied with Ctrl or Alt or into another app's editor; stages into another order), and a history of named changes: Undo and Redo name what they undo and redo and choose again what was chosen then, and the History list goes to any step.
- The App editor's Structured mode: an app as a tree of its stages, their screens and the elements on them (paragraphs, inputs, buttons, ...), and their functions, as z-Tree and oTree Studio show theirs. Elements are added from a palette, changed in fields (an input's variable, type, limits, ...), moved, copied, pasted and deleted, each change made to that element alone in the source. Forms and Source are the editor's other modes; Undo and Redo work in all three. A stage renamed in the editor takes a new variable name too, if the editor named its variable.
- App editors: jtree's own in the admin (File → New app…, or an app's Edit): an app's settings, stages, screens and functions, and its whole source. The z-Tree admin edits z-Tree treatments as z-Tree does (Treatment → New …, element dialogs, undo, Check) and saves them in z-Tree's text format. The oTree admin's Studio edits oTree projects and apps as oTree Studio does. Each changes only the part of the file it is about.
- z-Tree treatments run in jtree:
.zttfiles from z-Tree 3 to 5, z-Tree's text export and questionnaires (.ztq), their programs in z-Tree's language, and z-Leaf's screens in participants' browsers, plot boxes, contract lists and table loaders and dumpers included. Checked against z-Tree 5.1.21. - oTree apps run in jtree, in oTree's current format and its older one (
models.py, Django templates), with their Python (in Pyodide, nothing to install), templates, live pages, chat, timeouts,ExtraModel, admin reports and bots. A project's session configs are queues and itsROOMSrooms. Checked against oTree 5.11.5, 3.4.0 and 2.5.8: the same data recorded. - An admin for oTree users at
/admin/otree/: sessions from session configs, links, monitor, data, reports, payments, rooms. - Converters: z-Tree treatments (Treatment → Convert to jtree… in the z-Tree admin) and oTree apps (Convert to jtree in the oTree admin) to jtree apps, with a report of anything left to do by hand.
- Play with bots: a session of oTree apps is played by their bots, or a generic bot; z-Tree treatments by a generic z-Tree bot.
- Modes: whose rules apply where z-Tree, oTree and jtree differ (the
modesetting,--mode=,JTREE_MODE, or a session's "Rules"). - Downloads: a session's data as oTree's CSVs (all apps wide, per app, page times,
custom_export) too. - Rooms: a session can be opened in a room, and the room's participants go to their page in it.
participant.skipToApp(index)ends a participant's app and starts a later one.- Payment: sessions'
showUpFee,exchangeRateandcurrency(defaults insettings.json),app.exchangeRate, andparticipant.payment(). - The server checks forms:
app.fieldsdeclares fields' types and limits,stage.formFieldswhat a form must send, andstage.validate(player, values)checks them together. A form with mistakes is not stored and the page shows why. - A player's own time for a stage (
stage.clientDuration, orstage.getClientDuration(player)) is kept by the server too: a page that does not submit when the time is up is ended aftertimeoutGrace.stage.endOnTimeout = falsekeeps a timed-out stage open until the players submit. period.setGroups(matrix)inapp.periodStartregroups a period;app.groupByArrivalgroups participants in the order they arrive.player.inPeriod(n),player.inAllPeriods(),player.inPreviousPeriods(), and the same for groups.group.old()works (it threw).- The
PARTNER_1122andPARTNER_1212matchings work (they threw when a period started). stage.waitForAllGroups: no group starts the stage until every group of the period has arrived; thenstage.allGroupsStart(period)runs, once.- App hooks
app.appStart(),app.periodStart(period)andapp.periodEnd(period);app.end()is called again when everyone has finished an app, and the app's data is written to the session's CSV file then, as before. - When a group ends a stage that waits for everyone, players move on after
groupEnd, not before it: the next stage, or the next period's first, no longer starts beforegroupEndhas run. Errors ingroupEndandplayerEndare logged instead of stopping the session. - Apps as folders work:
app.jttwith one.jttfile per stage beside it, added in name order (1_decide.jttis stagedecide). In a stage's file,stageis the stage andappthe app. A folder's stage files no longer show up as apps of their own. - Stage timeouts no longer depend on participants' pages: if a page does not submit within
stage.timeoutGraceseconds (default 5) of the timeout, the server ends the stage for that player.player.timedOuttellsplayerEndandgroupEndwhich players timed out. - A syntax error in an app is reported with its line and position, also in a folder app's stage files (
app.errorFile). jt.stop()stops a jtree started from another program, for example tests.- Tests:
cd server && pnpm test. - The moving-slider feature app runs on its own.
- Saved sessions load again (the
loadSessionssetting), and carry on where they stopped: participants reconnect to their stage, groups' tables (e.g. a double auction's offers) are back, and a stage timer runs on with the time it had left when jtree stopped (paused, if the session was). Since mid-2019, session files separated each record's type with the CSV delimiter (;), which is not JSON, so nothing was loaded; such files are read too. Apps are loaded from the session's own copy, folder apps included. - Participants removed from a session stay removed when it is loaded; a session that had started is not started again.
- jtree saves the time every 5 seconds (
autoSaveFreq, previously 100), and when it stops: after a crash, restored stage timers are off by at most that much.
2026.10.05 - 0.9.0
- Downloads bundle Node.js (current LTS) and run through JAS: unpack and run
start.command(macOS),start.cmd(Windows) orstart.sh(Linux). Native Apple Silicon build. Windows XP and 32-bit Windows are no longer supported. - Admin access: without an admin password, the admin interface only opens on the computer running jtree. Set
defaultAdminPwdinsettings.jsonto log in from other computers. Previously any participant could connect as an admin. - Session output downloads and
/apineed admin access. - New default admin interface at
/admin(admin2), which runs without a build step. The previous one is at/admin/multiuser. The Vue 2 "beta" admin is removed. - Admin interface laid out after z-Tree at
/admin/ztree, also without a build step. - Server: socket.io 4, Express 5, Node.js 22 or later. Unused dependencies removed.
- Participant page: jQuery 3.7.1 (with jQuery Migrate, for code written for jQuery 1.x) and Vue 2.7.16. The old files stay in
/sharedfor apps that load them. - Downloads serve jtree from the root (
/admin/,/P1). Added to a JAS that hosts other apps, jtree is served under/jtree. - Starts on port 3000, or the next free port. The
PORTenvironment variable sets where to start.
2020.02.14 - 0.8.7
- Remove some user games.
- Add Linux compilation scripts.
2020.01.24 - 0.8.6
- Queue options respect limits.
- Method to get player time in stage.
2019.12.13 - 0.8.5
- Sort participants.
- Submit form on autoplay.
- Change App.onSubmit to a string, instead of a function, that gets evaluated when a stage is submitted.
2019.12.12 - 0.8.4
- App option: App.isStandaloneApp or //NOTSTANDLONEAPP.
- Stage submission: check for current player, instead of just current stage name.
- disable folder queues.
- Queue options.
2019.11.15 - 0.8.3
- remove "showAllStages" option.
- focus modal inputs on show.
- fix showNewApp / playerUpdate mix up at end of an App.
2019.10.17 - 0.8.2.3
- CHANGED: AdminUI: default to old interface, added link to new (BETA) interface.
- FIXED: defaultClient.js: set array values using Vue.set.
- ADDED: new App (13victor).
- FIXED: bug for listening to messages on client.
2019.10.17 - 0.8.2.2
- FIXED: If default port (80 or 3000) is in use, try again with new port.
2019.10.08 - 0.8.2.1
- FIXED: Admin UI, broken link to shared.js.
2019.10.08 - 0.8.2
- FIXED: Help tutorials.
2019.10.07 - 0.8.1
- Windowed Admin interface.
2019.09.24 - 0.7.17
- FIXED: # clients not updating.
- ADDED: show apps with errors.
- ADDED, Settings: suggestedNumParticipants.
- ADDED: features/chat app.
- REMOVED: features/messaging app.
- FIXED: samples/double-auction-fancy app.
- CHANGED, Group: automatically stringify and parse message data.
- ADDED: messages object on client.
Admin UI - ADDED: Restart session (with same Apps).
- ADDED: feedback on button clicks.
- ADDED: feature app, adding external library.
- ADDED: feature chart app.
2019.09.19 - 0.7.16
- ADDED: option to serve files over HTTPS instead of HTTP.
- FIXED: allow socket connections from outside local network.
- CHANGED: custom settings now located in jtree/settings.json.
- FIXED: edit App, set variable values.
- FIXED, Admin UI: reload apps.
- ADDED: messaging sample app.
- ADDED: table sample app.
- ADDED, setting: loadSessions (false by default).
2019.09.07 - 0.7.15
- FIXED, Participant: calculate points scored in an app / session.
- FIXED, Player.js: check for whether player is already finished a particular stage.
- FIXED, 1natalia app: outcome for ultimatum game & strategy method.
- FIXED, double-auction-bootstrap app: proper check for available inventory.
2019.09.06 - 0.7.14
- UPDATED: double-auction-bootstrap app.
- UPDATED: 11simone app.
- UPDATED: Admin UI, Apps view, shortened id length.
- UPDATED, App.js: added check if jt.autoplay exists before creating it.
- UPDATED, Admin UI: Display number of apps in queue properly.
2019.09.04 - 0.7.13
- UPDATED: double auction app.
2019.09.02 - 0.7.12
- FIXED: buttons store values for multiple periods.
- FIXED: passing methods to Vue on client.
- FIXED: removed 'updateScheduled' for Participant output.
- ADDED: Stage.showTimer field.
- ADDED: Session.allowAdminClientsToPlay field.
- UPDATED: "11simone" app.
- REMOVED: unused client files.
2019.08.28 - 0.7.11
- REMOVED: unused client files.
- FIXED: bug that cleared inputs when other players finished a stage.
- UPDATED: "11simone" app.
2019.08.27 - 0.7.10
- fix for ending stages automatically after timeout.
2019.07.06 - 0.7.8
- script for updating version numbers.
- remove releases from repo.
- added "10ali" user app.
- added "queue" demo app.
- added "randomizedQuest" demo app.
- added "outputDelimiter" field to "Session", "App" and "Settings" objects.
- remove “Data” Session tab.
- fix duration timeouts.
- remove log statements from all apps
- re-add code to prompt during page unload
2019.04.22 - 0.7.7
- send circular data in messages.
- menu collapses at smaller width.
2019.04.10 - 0.7.6
- clean up icons.
- fix "double auction" app.
- re-organize apps folder.
2019.03.29 - 0.7.5
- Added: display version on Home tab.
- Fix: "test" player no longer created.
- Cleaned up menu.
2019.03.28 - 0.7.4
- Disable autocomplete on forms.
- Stop players advancing two periods by accident.
2018.12.28 - 0.7.3
- Apps are reloaded just before first participant starts them.
- Admin UIs must be explcitly added to build.
- Removed unused admin UI files.
2018.12.20 - 0.7.2
- Fix: Apps not ending correctly.
2018.12.20 - 0.7.1
- catch errors in admin UI.
- Fix: Groups end stages with duration correctly.
- remove duplicate participant updates.
2018.12.07 - 0.7.0
- fix stage engine
- sort participants alphanumerically when downloading output
2018.11.28 - 0.6.13
- app randomization via queue (session.getApp(participant). See "random-order" app.
- Admin UI: fix Participants table showing blank spaces.
- Stage.autoplay: write autoplay code for each stage individually.
- App.periodText: text to display for "Period".
2018.11.21 - 0.6.12
- update
3jamesapp to work with latest release. - update
7simoneapp to include two timers. - clients run two seperate timers (stage.duration and stage.clientDuration).
2018.11.16 - 0.6.11
- Fixed font size for smaller screens (phones).
- App order is customizable (Session.getApp(participant)).
- Added Utils.drawRandomly function.
- Added App.end() function.
- Queues can be defined programmatically (i.e. "session.addApp(...)");
2018.11.14 - 0.6.10
- Session: fixed "Download" button.
2018.11.08 - 0.6.9
- Added "Stage.getGroupDuration(group)" function to allow stage duration to be dynamic.
- Allow editing of session ids.
2018.10.31 - 0.6.8
- Fix for Queue options.
- Added "timeElapsed" field to client.
2018.10.22 - 0.6.7
- Added fields: App.stageWaitToStart, App.stageWaitToEnd.
- Fix for Queues in admin UI.
2018.10.16 - 0.6.6
- Queues turned on by default.
- Record time spent in each stage.
2018.09.27 - 0.6.5
- Integrate Vue.js on clients.
- Added: Double auction app.
0.6.4
- Added Stage.getClientDuration(player) function.
0.6.2
- Documentation for App.id and using static files.
- Removed console error for missing settings.js file.
0.6.1
- Cleaned up extra files.
0.6.0
- Show # of participants in UI.
- various model fixes.
0.5.4
- Fixed docs.
- Client: fixed duration timer not displaying correctly.
0.5.3
- Add: Client onClockUpdate function.
0.5.2
- Fix: Participant fields not being saved on App end.
0.5.1
- added Stage.clientDuration property.
0.5.0
- fix for multiple periods.
0.4.9
- save session data
0.4.8
- catch errors when parsing client values.
- save session data on demand.
- fix to display participant points properly.
0.4.7
- fix to reload apps on participant connect.
0.4.6
- participant IDs can include '.' character.
0.4.5
- load apps from .js and .jtt files.
0.4.4
- fixes
0.4.3
- added Stag Hunt game
- app UI: use brackets "{}" to indicate text that should be dynamic. Configurable in App.textMarkerBegin and App.textMarkerEnd.
- started work on WindowUI.
0.4.2
- do not set attribute on 'jt-enabledIf' tags on client.
- update to Double Auction (LNF) app
0.4.1
- shortcut to make client previews full screen screen
- update to Double Auction (LNF) app
0.4.0
- User functionality.
- various fixes.
0.3.3
- added "description" field to App Options.
- allow connections without explicit Participant ID.
- hide / show Queues.
0.3.2
- refactoring admin UI.
- App "2peter": changed grouping to "stranger".
0.3.1
- minor changes to some default apps.
0.3.0
- split session page into tabs.
- added "Data" tab to session page.
- group buttons.
- added breakpoint to participant css.
0.2.5
- participant UI: improvement to mobile view.
0.2.4
- fixed: in sessions with repeats of the same app, the last player in the session would skip first instance of the app.
- added: client autoplay now uses player.id in text fields.
- added: queues prompt on delete.
- added: new App, 2peter (binary trust game with history)
- changed, autoplay: if no empty input field is found, click random submit button.
- tidied up documentation a bit
0.2.3
- bug fix: timers not ending stages correctly
- added: delete session.
0.2.2
- fixed: would not start without valid settings.js file.
0.2.1
- include example Queue
0.2.0
- fix session flow
- added app options
- added queues
- various Admin UI improvements
0.1.4
- UI improvements
- started work on rooms
- changed participation links to be either 1) server/pId, or 2) server/session/sId/pId
0.1.3
- added: switching between admin UIs via URL.
- added: menu to admin UI
- added: placeholders for rooms and users
- fixed: bug in autoplay that played hidden inputs.
- fixed: sessions in admin UIs showing participants from other sessions.
0.1.2
- bug fix: expiry of group timers now use session message queue.
- app finished: public goods with punishment
0.1.1
- added stage timers back to default apps.
- fixed bug with displaying timers on clients.
- fixed bugs with stage flow.
0.1.0
- fixed stage flow pattern to match docs.
0.0.11
- bug fix: clients could not use "participant" object.
0.0.10
- can delete participants from admin interface.
- added "allow new participants" setting to sessions.
0.0.9
- changed participant links to be x.x.x.x/PID
- added participantIds setting, allows to specify the PIDs to use on the server.
0.0.8
- added 3 games: Beauty Contest, Market Entry Game, and Travellers Dilemma.
- added help.
0.0.7
- updated version number
0.0.5
** clients
- added "jt-value" functionality, lets you set elements to expressions instead of single variables.
- added "jt-displayIf" functionality, lets you dynamically hide or show elements.
- added "real-effort-sums" app.
0.0.1
** server
- fixed bug with stage timers expiring multiple times.
** clients - added missing sharedTemplate.js file.
- hide stage content on load.
** general - changed default port to 80.
- hide port from participant urls if it is 80.
0.0.0
- initial release