Your timetable, exams, grades, club events, and the NBTCA knowledge base, in one terminal app.
Built by the NBTCA computer association for students of 浙大宁波理工学院.
Prompt needs Node.js 20.12 or newer.
npm install --global @nbtca/prompt
nbtcaTo try it without installing, run npx @nbtca/prompt.
The first launch asks for your language and whether your terminal shows Unicode symbols. To see your own timetable, open the Schedule tab and log in with your campus account.
Know where to be. Home shows the date, the teaching week, today's classes,
and the next club events. nbtca today prints the same list in the shell, and
nbtca prompt puts the current class in your shell prompt.
Read your timetable, exams, and grades. The Schedule tab shows the week as
a list or a full grid. Press a for exam arrangements and c for grades. A
grade published since your last look stays hidden as ▒▒▒ new until you open
it. Press e to export the timetable as .ics for any calendar app, and r for
a term recap near the end of term.
Follow the club. Events counts down to the next event and has week, month,
search, and history views, plus a one-year activity heatmap. Choose 订阅到日历
to subscribe to webcal://ical.nbtca.space, and your calendar app keeps the
club calendar current by itself.
Read the knowledge base. Docs opens the club's guides in a reader set for long Chinese and English text, with platform labels on every code block. It works offline once a page has been read, and it still works when GitHub is unreachable.
Find anything. Press / on any tab to search events, docs, and your
courses at once. Pinyin initials work, so gdsx finds 高等数学. Ctrl+O returns
to where you searched from.
Get reminded. nbtca remind stays running and reminds you 10 minutes
before each class and club event, with a desktop notification where the
terminal supports one.
Stay current. When a new version is out, the header says so. Press U to
see every change since your version and update in place, or skip that version.
| Key | Action |
|---|---|
1–5, Tab |
Switch tabs |
↑ ↓, j k |
Move or scroll |
Enter |
Open |
Esc |
Back |
/ |
Search everything |
Ctrl+O |
Back to where you searched from |
? |
Every key on the current page |
U |
Updates and release notes |
q |
Quit |
Every command reads cached data when it can, so most of them work offline.
nbtca open the full-screen client
nbtca today [--json] classes and events left today
nbtca remind [--before=<minutes>] remind before each class and event
nbtca events [--today|--week|--month] [--search=<q>] [--json]
nbtca events --subscribe [--open] the club calendar subscription URL
nbtca schedule login|terms|export|logout
nbtca exams [--term=2025-2] [--json] [--output=exams.ics]
nbtca grades [--term=2025-2] [--json]
nbtca prompt [--json] [--shell=fish|zsh|bash|tmux]
nbtca status [--watch] check the club's online services
nbtca docs | website | github | roadmap | repair [--open]
nbtca lang zh|en
nbtca update
Run nbtca --help for every flag. Add --plain to any command for output
without color.
nbtca prompt prints the class in progress or the next class today, such as
● Calculus · 3-201 · 17 min left, and nothing otherwise. It reads only the
saved timetable, so it is fast enough to run on every prompt. Add the setup line
for your shell:
nbtca prompt --shell=fish >> ~/.config/fish/config.fish
nbtca prompt --shell=zsh >> ~/.zshrc--shell=bash and --shell=tmux work the same way. --json prints the class
as an object, or null, for other prompt tools.
nbtca remind reminds you 10 minutes before each timed class and event today.
Change the lead with --before=5. Each reminder prints a line, rings the bell,
and asks the terminal for a desktop notification. iTerm2, WezTerm, Ghostty,
Kitty, Windows Terminal, GNOME Terminal, and foot show one. Inside tmux, run
tmux set -g allow-passthrough on first.
Queries default to the current term. Use --term to pick another, or press s
in the client. Exam times stay unavailable until the school publishes them.
Grades keep the school's own numeric or text result, and Prompt does not
calculate a GPA. --output=exams.ics writes a private calendar of the exams
that have a published time and reports how many it skipped. It fails without
touching the file when no exam has a time yet.
Change language, icons, colors, picture detail, and decoration in the Settings tab. These environment variables override them:
| Variable | Effect |
|---|---|
NBTCA_MOTION=full|basic|none |
How much motion to show. basic keeps color fades and drops movement. |
NBTCA_NO_MOTION=1 |
Turn motion off. |
NBTCA_ICON_MODE=unicode|ascii|auto |
Unicode symbols or plain ASCII. |
NBTCA_COLOR_MODE=on|off|auto |
Force color on or off. NO_COLOR is also honored. |
NBTCA_NO_UPDATE_CHECK=1 |
Never ask npm for a newer version. CI also turns the check off. |
Settings live in $XDG_CONFIG_HOME/nbtca, and caches in $XDG_STATE_HOME/nbtca.
Prompt never stores your password. It sends credentials only to the campus
WebVPN and CAS login, and a saved campus session is readable only by you. Exam
and grade records stay in memory and are never cached. To mark new grades,
Prompt keeps a salted fingerprint of each course whose result it has seen, never
the result itself, and logging out removes it. Once a day the client asks the
npm registry for the latest version number, and U reads the release notes
from GitHub. Neither request carries anything about you. See
SECURITY.md.
Issues and pull requests are welcome. See CONTRIBUTING.md to set up the project and run the checks.
MIT © NBTCA




