Reference · Developer Herald
The Developer Herald's settings, files and commands
Every setting with its default, where the Developer Herald keeps its files and private feeds' sign-ins, its command line, and its local API.
- Article
- 1504
- Applies to
- Developer Herald 0.10.0
- Last reviewed
- For
- For developers
Settings#
On its page, under Settings in the title bar. Each shows its value, its default and a line on what it does, with Reset to default. They're kept in %USERPROFILE%\.developer-herald\settings.json, and apply from the next round.
| Setting | Default | What it does |
|---|---|---|
| Release feeds | None | Each a repository (owner/name on GitHub, or its address on any other host) and a note, with (under Advanced) a Feed address: an Atom or RSS feed of its releases, read instead of its host's API. |
| Suggested feeds | On, none dismissed | Suggest them, and (under Advanced) the repositories not suggested again. |
| Releases read per repo (Advanced) | 10 | Read from each repository every round, 1 to 30. |
Private feeds, once you follow one, are listed above the form: each sign-in hidden, with Replace and Remove. Their sign-ins are kept in Windows Credential Manager, never in settings.json.
In Castellan's Settings > Employees:
- Plain-words notes (on), a short summary of each new release by a local model, is set once for all the staff, under Settings for the whole staff. Off: the release's own notes only.
- A round every (360 minutes; 60 to 10,080) and Model calls per round (6 releases summarised a round, never more than 6; 0: none) are on the line under the Developer Herald's row.
How to fill them in is in Choose what the Developer Herald follows.
Files#
All in %USERPROFILE%\.developer-herald:
| File | What's in it |
|---|---|
settings.json | Its settings. A private feed is kept there without its sign-in. |
state.json | Each feed's status and what it has seen, and the newest 400 news items. |
read.json | Which items you marked read. |
summaries.json, answers.json | The model's summaries by release, and its answers by question, each with where it was written. |
notes.json | Release notes waiting for a summary. |
suggestions.json, packages.json | The suggested feeds as last found, and each package's repository. |
server.json, serve.log | The running page's process, port and token, and its log. |
Private feeds' sign-ins are kept in Windows Credential Manager, as Web Credentials named Castellan Developer Herald (<its data folder>). It writes nowhere else. DEVELOPER_HERALD_HOME moves its data folder, and DEVELOPER_HERALD_PORT its page.
Commands#
Run with node $HOME\.developer-herald\app\src\cli.ts <command>:
| Command | What it does |
|---|---|
run | One round here and now, and what it found. |
start | On duty: its rounds run on their schedule, and its page is up. Castellan's Start. |
stop | Off duty: its scheduled rounds pause. The page stays up. Castellan's Stop. |
open | Makes sure its page is up, without changing duty. |
shutdown | Ends its page's process, and with it any round. |
status | Exits 0 when on duty and working, 3 when not. --json prints what Castellan reads. |
sign-ins | Where private feeds' sign-ins are kept, and their names: never the sign-ins themselves. |
uninstall | Removes it and its sign-in task. --purge removes its data and private feeds' sign-ins too; --dry-run says what it would do. |
Its rounds run inside its page's process, so stopping it in Castellan stops its work.
Local API#
At http://developer-herald.localhost:19898/, answering only this PC:
| Address | What it answers |
|---|---|
GET /api/ping | Its version and duty, with unread (unread news). |
GET /api/news | The unread items and the feeds, as JSON. |
Related articles
Is this page right?
If something on it is wrong or out of date, tell us and we'll fix the page.
Still stuck? Write to support@castellan-software.com and mention article 1504. Every version of Developer Herald, and what changed in it, is in its release notes.