PDA(lib)
App pages
ClockCalendarNotesContactsChatMoneyToolsSoundGamesWellbeingPeriodsLearnCameraSettings

PDA(lib)

[Personal]Device(of)Assistance

PDA(lib) is a pocket organiser for the Nintendo DS, DS Lite and DSi. It holds a clock, a calendar, notes, contacts, voice memos, local chat, flashcards, four games and wellbeing tools, laid out for two screens and a thumb keyboard. Everything you write stays on your SD card in plain files. The organiser sends nothing to the internet, and there is no account to make.

Version 1.0.0. Free, with the code under the MIT licence. It runs from a flashcard menu or from TWiLight Menu++ on a DSi. Homebrew games can carry it too.

What's new in 1.0.0

  • Flash cards: cards show Japanese with furigana, Chinese, Korean, Greek, Cyrillic, Hebrew and Arabic. Pictures in JPG, PNG, GIF or BMP appear on the card. Sound clips in MP3, Ogg or WAV play when the card opens, and R plays them again.
  • Flash cards: the FSRS scheduler that Anki uses, with each package's steps, daily limits and target retention. Type the answer, reveal hints, study cloze cards, flag, bury or suspend a card, and undo with L. Practise goes through a set without changing its schedule.
  • Themes: a game can give the PDA its own theme. The PDA wears it whenever it opens from that game. A theme you pick in Settings while in that game stays for that game only.
  • Memory: PDA(lib) needs about half the memory it did. Translations, word lists, sounds and card faces are read from the ROM when they are needed.
  • Games: a category with Solitaire, 2048, Minesweeper and Space Invaders. Space Invaders plays alone or with up to four consoles in the same room. Best scores stay on your card.
  • Chat: Single, a card game for two to six. Play against computer players, or host a game and let others nearby join.
  • Chat: People shows everyone in the room with their name, icon and tagline. Private room: frames sealed with words you share. Relay room: experimental, consoles that know the words repeat messages to reach farther. Reports to houdinimag@proton.me.
  • Periods: a Wellbeing item for keeping period dates, renamable. A month, past periods, cycle numbers and a page of clinic questions, kept in one plain file on the card. It never uses the radio and is left out of pictures and backups.
  • Noise and Beats: two rows of Tools. Rain, fan, ocean, wind, fire, stream and white, pink and brown noise, and beating tones, made by the console. A timer, a Boost step for quiet rooms, and breathing tones in Breathing.
  • Top animation: five moving backgrounds for the top screen, Waves, Rise, Grid, Bars and Rings. Pick one in Settings, Top animation.
  • Password book: a row in Contacts. Logins in one locked file on the card, opened with an Easy lock PIN or six random words.
  • Camera: its own category on a DSi. Photos on automatic settings, saved as PNG files in the DCIM folder.
  • Apps: any app can be hidden in Settings, Apps. SELECT on the home menu lists the hidden apps and brings one back for a while.
  • Themes: your own pictures for both screens, from a folder in /pda/themes. The theme builder on the website makes the folder. Text colours in the four built-in themes are easier to read.
  • Settings: Restore puts the newest backup back in /pda. Your files from before are backed up first, in a folder named undo.
  • Polish: long messages wrap instead of cutting off, cards in Settings fit the screen, and lists show scroll buttons only when there is more to scroll.
  • Chat: rooms hold up to 16 people. The rooms list shows signal bars and a rough distance for each room.
  • Wellbeing: Mood log. Two taps, a colour and a word, with a month view and a year view. Sleep log, Activity log and Symptom diary are plain dated records. Reminders ring at a time you set, with your own line of text.
  • Chat: Start a board. A named board for a room with posts, emoji reactions, and the posts kept on the host's card. Read one post at a time, hide a post, block a name, save a copy.
  • Calendar: Birthdays. The next birthdays from your Contacts cards, with the days to go and the age they turn.
  • Calendar: Date calculator. Days, weeks and months between two dates, the date a number of days, weeks, months or years away, and the week number and day of the year.
  • Clock: Meeting planner. Pick up to three places and see which hours are working hours, waking hours or night in each, with the best hour for everyone.
  • Memory: PDA(lib) takes 1371 KB at its busiest, down from 2085 KB, and its code and fixed data fell from 1725 KB to 907 KB. A game on a DS Lite keeps about 2.7 MB of the 4 MB.

Every version in the changelog

Where it stands

Every app runs in an emulator, with a scripted test for each. A full pass on real consoles has not been done. Chat's protocol runs in a simulation of sixteen consoles with packets lost, and has not yet run between real consoles. Single and a co-op game of Space Invaders wait for real consoles too. Camera, Noise and Beats, Restore, the alarm wake with the lid shut and sound on flash cards are also untested on hardware.

Reports from real DS and DSi systems are welcome. The full list of what is tested sits on the Research page.

Download and install

  1. Download PDALIB.nds.
  2. Copy it to your SD card, in any folder.
  3. Open it from your flashcard's menu, or from TWiLight Menu++ on a DSi.

PDA(lib) keeps its files in a folder named pda on the same card. The guide takes it from there.

See it move

Every app has a page

Thirteen categories sit on one menu, with one more for the game you are playing. Each one has a page with screenshots, every row, the files it keeps and the reasons behind it.

Clock

Three alarms that wake a sleeping DS, a Pomodoro timer that logs your sessions, a timer, a stopwatch, a chess clock, a world clock, Internet time, kitchen timers, a sleep timer and a meeting planner.

Calendar

Agenda, Day, Week and Month views. Events repeat and ring, and to-dos carry priorities. Countdowns, birthdays and a date calculator sit beside them, all in a standard iCalendar file.

Notes

Folders, find as you type, checklists, cut, copy, paste, undo and redo. A thumb keyboard corrects and suggests words. A drawing pad holds sketches on paper at true size.

Contacts

A Rolodex of people and places with keep-in-touch times and vCard and CSV export, your profile and badge, and a Password book in one sealed file.

Voice Memos

Record with the microphone, up to 30 minutes. Play back with a waveform you scrub with the stylus. Memos are WAV files any computer can play.

Chat

Up to sixteen consoles in a room over the DS's own local wireless, with drawings and emoji, boards that keep their posts, private rooms, and Single, a card game for two to six.

Money

An expense log against a monthly budget, saved as a spreadsheet file, with tip and split, loan, savings, discount and unit price sums.

Tools

A calculator with a paper tape, a converter, a recipe scaler, dice notation, sun and moon, a ruler and a ring gauge at true size, and Noise and Beats.

Games

Solitaire, 2048, Minesweeper and Space Invaders, with your best results kept on the card. Space Invaders plays alone or with up to four consoles over local wireless.

Wellbeing

Habits, breathing, meditation, gratitude, mood, sleep and symptom logs, reminders and Periods. Nothing keeps a streak or gives a score.

Learn

Flash cards from Anki packages, with pictures, sound, furigana and Anki's schedulers, plus Morse code and Braille.

Camera

Photos from the DSi cameras as PNG files, on automatic settings. DSi only.

Settings

Themes and your colour, five languages, top animations, hidden apps, larger text, your time zone, and a backup of everything with one press.

Games with PDA(lib) inside

A game that carries it keeps its high scores, play time, notes, achievements and calendar events here, in a category named after the game.

Two screens, two jobs

The touch screen is where you act. The top screen shows what you are acting on.

Your files, everywhere

Everything lives in one folder, /pda, on the SD card. Every program that includes PDA(lib) uses the same folder. The note you start in one game is there in the next, and an alarm set in one rings in another whenever its PDA is open.

The formats are ones a computer already reads. Your calendar is calendar.ics, and any calendar program opens it with repeats and alarms. Notes are plain text, memos are WAV files and drawings are bitmaps.

/pda/
  calendar.ics      events, repeats, alarms, to-dos
  notes/            one .txt per note
    Work/           folders are folders
  memos/            Shopping list.wav ...
  pad/              page01.bmp ...
  contacts/         one .txt per card
  clipboard.txt     shared by every program
  clock.txt         alarms, timer, Pomodoro
  pomodoro.csv      every finished session
  expenses.csv      every expense
  settings.txt      theme, clock, time zone
  games/            scores and play time, per game
  play/best.txt     best results of the built-in games
  kbd/              words the keyboard has learned

One hotkey, every game

Hold A + SELECT + UP to open PDA(lib) in any game that carries it. Pick Resume, or press START on its menu, to go back to the game where you left it.

That combination is meant as a standard. A player who learns it once can use it in every game with PDA(lib) inside, the way a console's home button works. Developers: please keep it. Change it only if your game already needs those three buttons together, and then say so in your controls.

A+SELECT+▲

A keyboard for thumbs

Most DS keyboards expect you to take out the stylus and peck at small keys. PDA(lib)'s keyboard is built for both thumbs, with the DS held like a phone. It was measured on real consoles, key by key, and it learns where your own thumbs land.

Any game can use it with one call, for names, messages, searches or a whole text adventure.

About the keyboard

A library for homebrew

PDA(lib) is also a C library for BlocksDS. Add its folder to your game's Makefile, call pda_init() once and pda_run() when the player holds the hotkey. The player gets the whole organiser. Your game pauses and carries on when they pick Resume.

Your game can keep its high scores, play time, notes and calendar events in the PDA with one call each, and the player finds them in your game's own category. Achievements, pictures of the screens, colour emoji and the keyboard come with it.

Developer docs Ideas for games

#include "pdalib.h"

PdaConfig pda = PDA_CONFIG_DEFAULT;
pda.standalone = false;
pda.game_name = "Bounce";
pda_init(&pda);

/* in the game loop */
if (pda_hotkey()) {     /* A + SELECT + UP */
    pda_run();          /* until Resume */
    my_setup_screens();
}

For vibe coders

Point your coding agent at this site and it can add PDA(lib) to your game or application for you. Step-by-step instructions written for agents live at agents.md, and also at llms.txt. They set up the standard hotkey, A + SELECT + UP, for you.

PDA(lib) itself was vibe coded, from the first line of code to this page.

Add PDA(lib) to this project.
Follow https://pdalib-ds.neocities.org/agents.md

Downloads

PDALIB.nds

The organiser on its own, with the four games and Single.

Download PDALIB.nds

Source

The library, the standalone program, the example game, tests and tools.

Download the source

Example game

Bounce: a square bounces, and A + SELECT + UP opens the PDA. The smallest game that carries it.

Download the example game