This release is a pre-release and may not be stable for production use.
A small, focused web UI for the open source Synapse Cortex.
It is a Synapse service (a Cell and a Storm service) rather than a separate web app, and it uses the
Cortex for everything it can: authentication, permissions, Storm, the Axon and user state.
It is not meant to replace Optic. It covers one analyst's daily workflow: query, review, tag, pivot, scrape and move files.
Documentation: docs.gormo.co/neuralui: install and upgrade, the
user guide (also in NeuralUI under Help), and the reference (settings, HTTP API, Storm packages).
make docs builds the same site locally into build/docs/.
Features
| Requirement | How NeuralUI does it |
|---|---|
| Streaming query results | One WebSocket carries any number of concurrent Storm queries. Nodes are rendered as the Cortex emits them, and a query can be cancelled. |
| Smart results table | Results are grouped into one section per form. Each section shows that form's secondary props (only the ones that appear in the results, in model order) between fixed columns: primary value, tags, any pinned tag columns, .seen and .created. Columns can be sorted, hidden and filtered. |
| Multi-line, tabbed queries | Storm editor with syntax highlighting, line numbers, auto-indent, Tab/Shift+Tab indenting, Ctrl+/ comments, line wrapping (Alt+Z) and Shift+Enter to run. Tabs (with rename and duplicate) are saved to your Cortex user profile. |
| Storm output | Each tab keeps a transcript of what Storm said, run by run, like the Storm CLI: prints, warnings, errors, lookup misses, fired events and CSV rows (never nodes), each run headed by its query and ended with its node count and time. It sits under the results as Messages, or fills the tab in the Output view, where a run only counts its nodes: use it for commands and admin work. |
| Editor help | Completion for forms, props, tags, commands and $lib (with signatures and docs), and docs when you hover a name. See Writing queries. |
| History, sharing, export | Query history kept by the service (not in the graph), short share links, and export as CSV, JSON lines, Synapse .nodes (optionally with related nodes) or STIX. See History, links and export. |
| Storm lint | Problems show up as you type, before you run anything: squiggles, gutter markers and a problems list. Unknown forms, props, commands, libraries and command args are checked along with syntax. See Storm lint and highlighting. |
| Auth in the Cortex | You log in with Cortex credentials. The service keeps no users of its own; every permission check is made by the Cortex. |
| User state in the graph | No model extensions. Saved queries are it:exec:query nodes tagged #meta.neuralui.query; scrape sessions are meta:note nodes linked -(about)> to the nodes they accepted. Display preferences (open tabs, hidden columns, tag colors) are kept in the Cortex user profile. |
| A Synapse service | NeuralUI is a s_cell.Cell with a StormSvc API. service.add installs the neuralui Storm package (Storm module, command, default node actions and note types). |
| Bulk node editing | Edit properties works on any selection. Each field is model-driven and type-aware (text, time, interval, bool, arrays, data as JSON). Fields where the selected nodes disagree show "(mixed values)". Only the fields you change are applied, to every selected node, and props can be deleted. New node creates a node of any form with its props and tags. |
| Notes | A meta:note editor with live rendered markdown: the line you edit is plain text, the rest is rendered, like Obsidian (or raw / read views). The note's :type taxonomy picks how it is edited (markdown or plain text), and Storm packages can register more note types. The drill pane shows the notes about any node. |
| File viewer | View file... on a file:bytes node (right-click, the details pane, or after an upload). Nothing is read from the Axon until you open it. Every file opens in the hex view (paged, jump to offset). The strings view (ASCII and UTF-16LE, minimum length, filter) reads the file a MiB at a time. Images and PDFs can be rendered, but only when asked, each time. See File viewer safety. |
colorize |
Colors from Storm's colorize command (... | colorize red) mark rows in the table and override node colors in the graph. |
| Axon upload and download | Drag-and-drop upload creates file:bytes nodes (with hashes, name, mime and optional tags). Download from any file:bytes node's right-click menu. |
| Right-click actions per form | Actions are declared by Storm packages and matched to forms by glob: in a neuralui key, or the Optic actions of Rapid Power-Ups (optic: actions:). There are five types: query (new query), newtab, filter (appends to the current query), storm (runs on the Cortex with the selected nodes as input) and link (opens a web page for the node, as in Open in). Works on multiple selected nodes. |
| Tagging interface | Three editors, all bulk-capable. Add tag takes just a name. Apply tag sets a tag with an interval and any tag props declared in the model (data tag props take nested JSON). The tag node editor creates and edits syn:tag nodes (:title, :doc, ...). Manage tags (press t) lists the tags, intervals and tag props across the selection, with remove and apply-to-all. Tag chips have their own menu. There is a tag tree in the sidebar. |
| Scrape | A scrape is its own tab. Paste text, then review the candidates $lib.scrape found (marked new or existing). Edit their forms, values and tags, then accept them. The accepted nodes, new and existing, appear as normal results in the same tab, so you can bulk-tag, edit and pivot before leaving. Each session is recorded as a neuralui.scrape note linked to its nodes, so it can be reopened from Library → Scrapes. |
| Graph view | Cytoscape graph of the current results. Prop references and light edges are drawn between nodes. Nodes can be colored by form, by tag (honoring tag colors) or by any property value, with a legend. Right-click to expand neighbors. |
| Console | A Console tab is for developers and admins: the Storm editor and its streamed output side by side or stacked, with no result tables. Nodes are counted (or listed one per line), with the edits each run made. Runs can be read-only, take variables, and run in the current view, a throwaway fork (deleted when the run ends) or a kept fork you review and then merge or delete. |
| Import | An Import tab adds files to a console tab: drop Storm scripts and data files, a folder or a .zip, and they import in folder order the way stormlibpp's import tool does (.storm scripts with their .csv, .json and .txt data files in $rows, .storml scripts line by line). |
| Admin | Users (admin, locked, password, email, roles, rules everywhere or per view, API keys), roles (rules and members) and Storm packages (add from a JSON file, remove). For admins. |
| Automation | Cron jobs, triggers, macros and dmons: list, add, edit their Storm in the editor, enable or disable, delete; dmon logs. |
| Help | A guide to NeuralUI itself (markdown in neuralui/web/docs/), every command's help as the Cortex prints it, the $lib reference, a data model explorer (forms, props, types, edges, node counts) and links to the Synapse docs. |
| Explore | The sidebar's lower panel switches between the tag tree and lists of the threats, tools and techniques (risk:threat, risk:tool:software, ou:technique) in the view. |
| Drill-down pane | Clicking a node shows all of its props and tags (with intervals and tag props), plus its neighbors in four groups: props out, props in, light edges out and light edges in. Each group shows the prop or verb that links it. You can navigate between nodes with back history. |
| Graph | Drill-down + menu | Bulk edit |
|---|---|---|
| Scrape review | Scrape results (editable in place) | Markdown note |
|---|---|---|
| Console (stacked) | Import | Automation |
|---|---|---|
| Tag with interval + tag props | Tag node editor | Tag manager |
|---|---|---|
| File viewer: hex | File viewer: strings | Render a PDF (opt in) |
|---|---|---|
Brand and themes
The brand (v1.0.0, the A2 Refined Network Compass) lives in assets/brand/v1.0.0/:
the canonical SVG marks, derived single color marks and lockups, PNG exports, tokens.json and the
usage rules. The UI uses the
small mark below 64 px (top bar, favicon) and the primary mark above it (login, touch icon).
Themes are chosen per user under user menu → Theme and saved in the Cortex user profile:
| Theme | Description |
|---|---|
| System | The default: Dark or Light, following the OS setting |
| Dark / Light | The defaults, ignoring the OS |
| NeuralUI | The brand: Deep Navy surfaces, Ice text, Electric Cyan accent, Indigo / Violet highlights, Inter, and a brand-led graph palette |
| NeuralUI light | The brand reversed for light mode. Surfaces are Ice and white, text is Deep Navy, and the accents are deepened enough to pass contrast on white |
| High contrast / High contrast light | Black and white with bold accents, strong borders and thicker focus rings |
| Solarized dark / light, Nord, Dracula | The familiar editor palettes. Hues are kept; colors that failed contrast were lightened or darkened (lightness only) until they pass |
| Terminal / Terminal amber | Black, with phosphor green or amber text and borders, and monospace throughout. The logo is the single color mark tinted to match |
Graph colors (user menu) can be switched to a colorblind safe palette (Okabe-Ito) under any theme.
Every theme sets the same CSS variables (see the top of neuralui/web/css/app.css), so adding one is a
single block. The smoke test switches through every theme and checks WCAG contrast (4.5:1 for text,
3:1 for the large wordmark) for each text color on each surface it is used on, including the primary
button's gradient. Inter is bundled with the UI (SIL OFL), so no fonts are fetched from a CDN.
| Login (NeuralUI) | Colorblind safe graph |
|---|---|
Architecture
browser ──HTTPS/WSS──▶ NeuralUI (s_cell.Cell) ──telepath──▶ Cortex ──▶ Axon
static UI /api/neuralui/v1/* storm, auth, model,
(no build step) getAuthCell() -> Cortex profiles, packages
StormSvc ◀──service.add──────────
- Delegated auth. The handlers subclass
synapse.lib.httpapihandlers and overridegetAuthCell()to return the Cortex telepath client. This is the hook Synapse provides for remote auth. Synapse's ownLoginV1handler checks passwords against the Cortex. The login form also takes a Cortex API key (made with$lib.auth.users.byname(<user>).genApiKey(<name>)): the Cortex checks it, and the session acts as the key's user until the key expires or is deleted (checked at most once a minute), or the user is locked. Failed key logins are throttled per address. Scripts can send an API key inX-API-KEYinstead of logging in. HTTP Basic auth is turned off: browsers resend saved Basic credentials on their own, which would survive logging out and skip the login throttle. Sessions are stored by NeuralUI, but the user in each session is a Cortex user. - Storm as the user. Every query runs with
opts['user']set to the session user. The browser can't overrideuser: onlyview,vars,idens,graph,limitandmodeare passed through. - Graph projection. The drill pane and "add neighbors" use Storm's subgraph projection
(
opts['graph']), so a neighbor comes back with the prop or verb that links it. - Storm service.
NeuralUIApimixes inStormSvc, soservice.addinstalls theneuraluipackage. The package does not touch the data model:- module
neuralui:saveQuery(),delQuery(),saveScrape(),addAbout(),delNote(),getProfile()/setProfile(). These run as the calling user, so they work from the CLI as well. - commands
neuralui.query.saveandneuralui.query.migrate(see below). - a
neuraluikey containing the default node actions and note types (pkgdefs allow extra keys).
- module
- State in the graph.
-
Saved queries are
it:exec:querynodes tagged#meta.neuralui.query::textis the query, runnable as is (it:exec:query#meta.neuralui.querylifts them all);:languageisstorm;:optsholds the Storm options to run it with (mode,limit) and NeuralUI's metadata underneuralui({"v": 1, "name": ..., "desc": ...}), so:optsminusneuraluican be passed to Storm;:synuseris who saved it and:timewhen it was last saved.
The query string is also an
it:querynode, shared with anything else that ran it. Saved queries from NeuralUI 0.4 and earlier weremeta:notenodes;neuralui.query.migratelists them, andneuralui.query.migrate --apply [--delete]converts them (keeping who saved them and when). -
Scrape sessions are
meta:notenodes with:type=neuralui.scrapewhose:textis the scraped text. They are linked to the accepted nodes with-(about)>.
-
- Flow control. Queries on the WebSocket use credit based flow control: the service sends at most
a window of messages the browser has not acknowledged, then stops pulling from the Cortex. Telepath
applies backpressure from there, so a paused query really pauses. Result streams can also ask the
service to shorten long prop values (
truncate); see Large results. - Versioned assets. Static files are served under
/v/<build>/, where the build id is the release version plus a hash of the UI files. They are cached for good, andindex.html(always revalidated) points at the current build. Relative imports stay under the versioned path, so this needs no build step. A changed build reported when the WebSocket reconnects shows a "Reload" banner. - Security. Cross-origin POSTs are refused to prevent CSRF. The WebSocket uses Synapse's
same-origin check. Uploads require
axon.uploadand downloads requireaxon.get(both checked against the Cortex user).
neuralui/
service.py the Cell, its config and the Cortex connection
handlers.py login/logout/me, model, extensions, call, scrape, storm websocket, axon up/down,
lint, storm docs, history, share links, export
store.py query history and share links (an LMDB slab owned by the service)
export.py .nodes and STIX exports, including the related node traversal
lint.py the Storm linter (cached Cortex metadata)
pkg.py the neuralui Storm package (default actions and note types)
storm/ Storm source for the package module
web/ the UI: plain ES modules, no build step
web/vendor/ cytoscape, marked (markdown), DOMPurify (sanitizing rendered notes), Inter
web/brand/ the marks and icons served by the UI (copied from assets/brand)
assets/brand/ versioned brand kit: canonical SVGs, PNG exports, tokens, rules
tests/
test_neuralui.py service tests against a real Cortex (pytest)
ui/smoke.js end to end browser test (Playwright)
Makefile every build, test, run and release step (make help); CI calls these targets
scripts/
devstack.py local Cortex + NeuralUI with demo data (make demo)
devstack_stormsvcs.py the same, with the gormaniac/stormsvcs Storm services in Docker (make demo-svcs)
smoke.sh the UI tests against a fresh dev stack (make test-smoke)
changelog.py roll the CHANGELOG's Unreleased section into a release, print release notes
version.py read, bump and set the version
brand_variants.py derive the single color marks and lockups from the canonical marks
brand_exports.js regenerate the PNG exports from the brand SVGs
Running it
Requires Python 3.11 (the version Synapse supports; NeuralUI is only tested on it) and Synapse 2.256.0 or a later 2.x release. NeuralUI 1.x is for Synapse 2 only.
Every build, test and run step is a make target (make help lists them); CI calls the same targets.
make setup # pip install -e '.[dev]' (PYTHON=... for another interpreter or a virtualenv)
Local dev stack
make demo # python scripts/devstack.py --demo (ARGS='--https 8443' for more options)
# open https://localhost:4443/ (self-signed cert) - log in as analyst/analyst or root/root
This starts a Cortex and NeuralUI in one process under ./dev-data, creates the users, registers the
Storm service and loads a few demo nodes (including threats, tools and techniques for the Explore panel).
To work with real Storm services too, run the same stack with the services from gormaniac/stormsvcs (it needs Docker):
make demo-svcs # python scripts/devstack_stormsvcs.py --demo (ARGS='--svcs shodan,ip_api' and so on)
It reads the services listed in that repository's services.toml, pulls each one's latest image
(ghcr.io/gormaniac/stormsvcs/<name>:latest), runs it in a container (neuralui-dev-<name>, its data in
dev-data/stormsvcs/<name>/, telepath on a free port of 127.0.0.1) and registers it with the Cortex as
slib.<name>. The containers are removed when the stack stops. --svcs shodan,ip_api picks some,
--no-pull uses images already on the machine (a failed pull also falls back to a local copy), --keep
leaves the containers running, and --ref reads services.toml from another branch or tag. The other
options are devstack.py's.
Against an existing Cortex
For production, follow docs/DEPLOYMENT.md: both telepath connections (NeuralUI
to the Cortex, and the Cortex to NeuralUI for service.add) use ssl:// with mutual TLS. NeuralUI refuses
to start with a plain tcp:// address that leaves the machine, unless neuralui:insecure says this is an
isolated development setup. In short:
-
Make a CA, a server certificate for each side and client certificates (
neuraluifor NeuralUI,cortexfor the Cortex), and put them in each cell'scerts/directory. -
Have the Cortex listen with
dmon:listen: ssl://0.0.0.0:27492/?hostname=cortex.internal&ca=nuicaand create the service account. It has to be an admin (but notroot), because the telepath APIs for checking passwords and API keys are admin-only (the same requirement Optic has). It logs in with its certificate, so it needs no password:storm> $user = $lib.auth.users.add(neuralui) $user.setAdmin($lib.true) -
Create a service directory with a
cell.yaml:cortex: ssl://cortex.internal:27492/?hostname=cortex.internal&certname=neuralui # or an aha:// url dmon:listen: ssl://0.0.0.0:27495/?hostname=neuralui.internal&ca=nuica https:port: 4443 neuralui:origin: https://neuralui.example.com
Then run it with
python -m neuralui /path/to/svcdir. Any config value can also be set as an environment variable, e.g.SYN_NEURALUI_CORTEX. Put your HTTPS certificate in the service directory assslcert.pem/sslkey.pem, as with any Synapse cell. -
Create a plain (non-admin) user
cortexon NeuralUI, and register the Storm service so the package (module, command, actions, note types) loads. The Cortex only reads the package, so it needs no permissions there:python -m synapse.tools.service.moduser --svcurl cell:///path/to/svcdir --add cortex
storm> service.add neuralui ssl://neuralui.internal:27495/?hostname=neuralui.internal&certname=cortexWithout this step the UI still works with its built-in actions, but other packages can't be relied on to find the
neuraluiStorm module.
For a quick look on one machine, plain TCP on the loopback interface is accepted
(cortex: tcp://neuralui:<secret>@127.0.0.1:27492/); across a network it needs neuralui:insecure: true,
which is only for isolated development.
In a container
docker build -t neuralui .
docker run -d --name neuralui -v neuralui-data:/vertex/storage -p 4443:4443 neuralui
Released images are on ghcr.io/<owner>/neuralui:<version>. The service directory is the
/vertex/storage volume: put cell.yaml, certs/ and sslcert.pem/sslkey.pem there (see
docs/DEPLOYMENT.md for a compose file with a private backend network). The image
runs as an unprivileged user, has a health check and sets no telepath listener by default.
Settings
Besides the usual Synapse cell settings, in cell.yaml or as SYN_NEURALUI_* variables:
| Setting | Default | |
|---|---|---|
cortex |
The Cortex telepath URL (the service user must be a Cortex admin). ssl:// in production. |
|
neuralui:origin |
the request's | The public origin(s) of the UI (https://neuralui.example.com). Requests and WebSockets from other origins are refused. Set it behind a reverse proxy. |
neuralui:insecure |
false |
Allow plain tcp:// telepath across the network. Isolated development only. |
neuralui:share:days |
365 |
Share links older than this stop working and are deleted (null: kept). |
neuralui:session:idle |
480 |
Log sessions out after this many minutes without a request (null: never). |
neuralui:login:maxfails |
5 |
Failed logins for a user name (in 15 minutes) before further attempts must wait. |
neuralui:csp |
true |
Send the Content-Security-Policy. |
neuralui:hsts |
none | Send Strict-Transport-Security with this max-age (seconds). Only for a host always served over HTTPS. |
neuralui:stix:config |
Synapse's default | The $lib.stix.export config for STIX exports. |
neuralui:upload:maxsize |
1 GiB | The largest file upload. |
neuralui:proxy:trusted |
[] |
Reverse proxies (addresses or networks) whose X-Forwarded-For gives the client's address (see DEPLOYMENT.md). |
neuralui:limit:user:socks |
8 |
WebSocket connections one user may have open at once. |
neuralui:limit:user:runs |
32 |
Storm queries one user may run at once (background job batches included). |
neuralui:limit:user:jobs |
4 |
Background jobs one user may have running at once. |
neuralui:limit:user:jobbytes |
67108864 |
What one user's background jobs may keep in the store (bytes, about). |
neuralui:limit:jobs |
16 |
Background jobs the service runs at once, for everyone. |
neuralui:limit:lint |
32 |
Storm lint requests the service runs at once. |
neuralui:webroot |
the packaged UI | Serve the UI from another directory. |
License
NeuralUI is released under the MIT License, copyright John Gorman. The libraries vendored in
neuralui/web/vendor/ keep their own licenses, next to them there: Cytoscape.js and marked (MIT),
DOMPurify (Apache 2.0 or MPL 2.0), and the Inter font (SIL Open Font License 1.1).
Security
- Headers. Every response has a strict Content-Security-Policy (same-origin scripts, styles, fonts and
connections; no inline scripts; no framing by other sites),
X-Frame-Options: SAMEORIGIN,X-Content-Type-Options: nosniff,Referrer-Policy: same-origin,Cross-Origin-Opener-Policyand aPermissions-Policy. HSTS is available but off by default (it would stick tolocalhostduring development). - Logins. An unknown user, a wrong password and a locked account all get the same answer. After 5 failures for a user name (or 20 from one address) in 15 minutes, further attempts wait 30 seconds, doubling with each failure up to 15 minutes. The wait is temporary, so it can delay a user's logins but never lock the account. (The Cortex's own password policy, if set, still applies.)
- Sessions end after 8 hours without a request (
neuralui:session:idle); the UI then asks to log in again without losing the page. - Sessions and sockets. Every login gets a new session and cookie (
SameSite=Lax), and ends the browser's previous session. Logging out (a POST), the idle timeout, an expired or deleted API key, and a locked, archived or deleted Cortex account (checked every 10 seconds) end the session, close its WebSockets and stop their queries. Every WebSocket message checks the session is still the one the socket was opened with, and open sockets check again every 15 seconds while a query runs. - Origins. Requests which change something, logging out and WebSockets must come from the UI's own
origin: scheme, host and port (
neuralui:origin, or the origin the request was made to). No CORS headers are sent. Give NeuralUI its own host name: cookies are not isolated by port. - Logins are counted when they start, so concurrent guesses get no more tries than sequential ones, and at most 8 password checks run at once.
- Limits. JSON request bodies are objects of at most 16 MB; Storm options are type-checked; a socket
runs at most 32 queries at once. Share links have titles of at most 200 characters, at most 1000 per
user and 60 an hour, expire after
neuralui:share:days, and can be deleted by their owner. - Notes are sanitized, and their images only load from
data:URLs: an image pointing at this site would be a request with the reader's session. - Only NeuralUI's own API is served. Synapse's cell APIs (
/api/v1/login,/api/v1/auth/..., which manage the service's local users) are not, apart from the read-only/api/v1/activestatus. - Backend connections are refused if they would be unencrypted across a network (see docs/DEPLOYMENT.md).
- As before: Storm runs as the logged in user.
Permissions for analysts
These are normal Cortex permissions, for example:
- querying and editing:
node, or narrower rules such asnode.add.inet:fqdn,node.tag.add.rep - saved queries:
node.add.it:exec:query,node.prop.set.it:exec:query,node.del.it:exec:query,node.tag.add.meta.neuralui.query, andnode.add.it:query(the query string node) - notes and scrape sessions:
node.add.meta:note,node.prop.set.meta:note,node.del.meta:note,node.edge.add.about(notes) andnode.edge.add.refs(scrape sessions), andnode.add.meta:note:type:taxonomythe first time a new note type is used - new tag properties from the tag dialog:
model.tagprop.add(they change the Cortex's model) - files:
axon.upload,axon.get - scripts and imports in a fork:
view.addandview.fork(a fork's creator may edit, merge and delete it; merging needs write access to the parent view's layer) - the Admin and Automation pages use the Cortex's own permissions (
auth.*,pkg.*,cron.*,trigger.*,storm.macro.*,dmon.*): the pages show what the Cortex refuses
Extending the UI from a Storm package
Any Storm package can add right-click actions and note types with a neuralui: key in its package
definition. docs/PACKAGES.md is the reference (package format 1, stable for 1.x);
neuralui/schema/neuralui.schema.json is its JSON Schema, and
python -m neuralui.checkpkg <package.yaml> checks a package against it.
neuralui:
version: 1
actions:
- id: pdns
name: Passive DNS
forms: [inet:fqdn, inet:ipv4]
type: storm # runs on the Cortex with the selected nodes as its inbound nodes
storm: acme.pdns
- id: open.acme
name: Acme Intel
group: Open in # next to VirusTotal, urlscan.io and Shodan
type: link
url:
inet:fqdn: https://intel.acme.example/domain/{{valu}}
notetypes:
- {type: acme.report, title: Acme report, render: markdown}
Without any neuralui: key, a package's commands that say what forms they take are offered under
Enrich › with a dialog built from their arguments, and a Rapid Power-Up's Optic actions
under Actions › . Storm and command actions open a run dialog: on the selected nodes or all
the results, in the background as a job (the default, see Jobs in the top bar), in a new tab or in this
tab. Search actions… (or / in the menu) finds any action, ☆ pins one, and Admin › Actions lets a
Cortex admin hide actions or packages from everyone or from roles, set default pins and see what could not
be used. scripts/devstack.py --demo loads an example package, tests/pkgs/neuralui-demo.
Using the UI
Shift+Enterruns the query (Ctrl+EnterandCmd+Enterwork too) andEscstops it.Tab/Shift+Tabindent, andCtrl+/comments lines.- Table, Graph and Output switch the tab's view. The Output view shows only what Storm prints,
like the Storm CLI, so it suits commands such as
auth.user.listand queries that edit many nodes. Its nodes are still kept (up to the results cap, without pausing the query), so switching to Table or Graph shows them without running the query again: a query that called an outside service, or used API credits, is not repeated. The transcript is kept until the page closes; Copy and Clear are on the Messages bar. The Messages pane scrolls at a fixed height: drag its top edge to resize it (double-click to reset). - Click a row to show its details.
Ctrl/Shift-click to select several rows, or use the header checkbox to select a whole form. - In the table,
Ctrl+Aselects everything,topens the tag manager andEscclears the selection. - Right-click a selection for Add tag, Manage tags, Edit properties and, under Edit, Apply tag with interval / props and Add a note about these nodes.
- Add
| colorize <color>to a query to color its rows and graph nodes. - Right-click anything: rows, prop cells (lift, filter or exclude by that value), tag chips, column headers (hide a column, filter by it), tabs, saved queries and the tag tree.
- Open in (right-click one node) looks it up on VirusTotal, urlscan.io or Shodan in a new browser tab:
a
file:bytesby its hash, hashes, domains, IPs and URLs. A prop cell that points at one of those (the:ipv4of aninet:dns:a) offers the same. The value goes to that site, nowhere else. - Clicking a tag chip selects its row like any other cell; right-click it for the tag's actions (filter by it, lift it, edit it, pin it as a column).
- Storm problems are underlined as you type. Click the problem count under the editor to list them, and click a problem to jump to it.
- The mode selector switches the Storm parser between
storm,lookup,autoaddandsearch.
Pages beyond queries
The top bar opens pages which are tabs like any other (they are saved, renamed and reopened the same way). Admin, Automation and Help open once; opening them again selects the tab.
- Console: the editor on one side, Storm's output on the other (Side by side or Stacked,
and the divider drags).
Shift+Enterruns. run in picks the current view, a throwaway fork (forked for the run, deleted after it, so nothing is kept) or a new fork (kept): the page then offers to switch to the fork, merge it into its parent, or delete it. read-only runs Storm withreadonly, debug withdebug, and list nodes prints each node as a line. Variables takes a JSON object of$variables. - Import: a Console tab with files. Drop files, a folder or a
.zip(or use Add files / Add folder). The plan lists the scripts in run order (a folder's files, then its sub-folders, alphabetically: number names to set the order) with their data files and row counts. A data file belongs to the script with its name (orgs.stormtakesorgs.csvandorgs_2.json); it runs the script with its rows in$rows, 1000 at a time. CSV rows are lists of strings, TXT rows are lines, JSON lists give[index, item]rows and JSON objects[key, value]rows. data files have a header row skips the first line of CSV and TXT files..stormlscripts run each line on its own. Click a script to see or change it (for this import only). Data files no script claims can be ticked and run with the editor's own script, like csvtool. Import all runs everything in the chosen view or fork. Files stay in the page until it closes; the editor's script is kept. (Unlike stormlibpp, a data file must match its script's name exactly:orgs_extra.csvis notorgs.storm's.) - Automation: Cron jobs (add from a starting point or the
cron.addfields, edit the query, name and description, enable or disable), Triggers (when a node is added or deleted, a property set, a tag added or removed, or an edge added or removed), Macros (edit, run in a console tab) and Dmons (start, stop, restart, read the log). - Admin (admins): users, roles, rules and API keys; Storm packages from a JSON file built with
python -m synapse.tools.genpkg --save pkg.json. - Help: the command list and each command's
--help, the$libreference, the data model and the Synapse docs. Forms link to the forms their props point at, and Lift in a new tab shows them.
Writing queries
- Completion pops up as you type: forms (
inet:fq), full props (inet:fqdn:), relative props of the forms in the query (:zo), universal props (.), tags (#cno.), and$liblibraries and their members with signatures ($lib.axon.). After a pipe,Ctrl+Spacelists the commands.EnterorTabaccepts,Esccloses. - Hover a form, prop, command or
$libname for its docs. - The model comes from the UI's cached copy and command and
$libdocs from the service (one request), so completion does not call the Cortex. Only tags are looked up in the Cortex. Ctrl+Kopens the command palette: run, stop, share, export, switch view, mode, theme or time zone, go to a tab or a saved query, and more.?lists the keyboard shortcuts.
History, links and export
- Query history. Every query you run from the editor is kept, newest first, in the History tab of
the Notes sidebar (with search), and
Ctrl+Up/Ctrl+Downin the editor walk through it. Running a query again moves it to the top. The history is stored by the NeuralUI service in its own LMDB slab, per user, so it adds no writes to the graph; the newest 1000 queries per user are kept. - Share links. Share (next to Save) gives a short link,
https://<host>/#s=<11 characters>. The query is stored by the service under that random id; the URL never holds the query and does not change as you work. Opening a link adds a tab with the query and who shared it, without running it (a shared query could contain edits). A node's link (in its details, or its menu) opens the node. - Export (results bar, or Export... on a selection) writes:
- CSV: one row per node, with a column for every property any of the nodes has. Cells a spreadsheet would treat as formulas are escaped.
- JSON lines: the packed nodes.
- Synapse
.nodes: the Cortex's own export (exportStorm): packed nodes plus the light edges between them. Load it into another Cortex withfeedFromAxon/ thesyn.nodesfeed. - STIX 2.1 (experimental): a bundle made with
$lib.stix.export. This is scaffolding: the mapping is Synapse's default unlessneuralui:stix:configis set, andStixExporter.getConfig()inneuralui/export.pyis the hook for a custom mapping. Forms with no mapping are reported. .nodesand STIX can include related nodes: nodes the props point to, nodes pointing at them, and light edges in either direction, 1 to 3 steps out, up to a node limit. Check size counts first. They can also re-run the tab's query in the Cortex instead of using the results in the page.
- Copy (node menu): primary values (one per line), idens, a Storm lift, CSV or JSON lines.
- CSV, JSON lines and copies use the full nodes, even when the results show shortened values.
Results
- Filter the table with words (anywhere: value, props, tags, form),
:prop=text(the prop contains text),:prop(has the prop),#tag(the tag or one under it) and-term(does not match). - Keyboard: click the table (or tab to it), then
Up/Down,PageUp/PageDown,Home/Endmove between rows,Shiftextends the selection,Spacetoggles a row andEntershows its details. - The results bar shows how many nodes are selected, with Select all and Clear.
- Columns can be resized by dragging the right edge of a header (double-click to reset). Widths are saved per form. Form headers and column headers stay in view while scrolling.
- Times show in UTC (as Synapse stores them) or in local time (user menu, or the palette). Time tooltips show both. Editors always take UTC, because that is how Storm reads typed times.
- A tab whose query finishes while you are on another tab gets a dot (red if it failed), and the page title counts them. Turn on Notify me when a long query finishes in the user menu to get a browser notification when a query that took more than 10 seconds finishes while the page is in the background.
Keyboard and screen readers
- Everything works from the keyboard.
Shift+F10(or the menu key) opens the menu of whatever has focus: a result row, a tab, a tag in the tag tree, a saved query or a history entry. In menus, the arrow keys move,Right/Enteropen a submenu,Left/Escgo back,Home/Endjump, a letter jumps to the next item starting with it, and closing a menu puts the focus back where it was. - Dialogs keep
Tabinside them, start in their first field and give the focus back when they close. - Tabs are one stop: the arrow keys move between them,
Enteropens one andDeletecloses it. - Skip links ("Skip to the query editor", "Skip to the results") are the first stops on the page.
- Screen readers hear when a query finishes, fails or pauses, the row as you move through the table, and changes in the number of Storm problems while typing. Rows say whether they are selected. The graph is described as a picture of the same nodes the table lists (the table is the accessible view).
- Reduced motion. When the operating system asks for less motion, transitions are turned off.
- The default theme follows the operating system's light or dark setting until you pick one.
When there is nothing to show
- A new tab suggests example queries (click one to run it) and the shortcuts for completion and the command palette. A tab restored from a previous visit says its query has not been run yet, with a Run it button (results are not kept when the page closes).
- A query with no results says which view it ran in and how long it took, with hints (lookup mode, printed messages, a stopped query, other views).
- A failed query explains the error and what to do next (syntax errors, unknown names, missing permissions, a lost connection, timeouts, ...), with the original message under it.
- The notes, history and tag panels explain how to fill them. A lost connection to NeuralUI shows a banner after a moment and clears itself when it reconnects.
Tabs remember how you were looking
- Each tab keeps its filter, collapsed form sections and sort columns. Re-running the query keeps them.
- Switching tabs keeps each one's scroll position.
- After a reload, the first run of a tab's query puts back its scroll position, its selection (up to 200 nodes) and, for graphs of up to 200 nodes, the node positions and viewport.
Large results
- The table is virtualized. Only the rows near the viewport are in the page, so tens of thousands
of results scroll, sort, filter and select (including
Shift-click ranges) without slowing down. Rows are one line high; a cell's tooltip shows its full value or tag list. - Queries pause at a cap. After 50,000 nodes (the
results:cappreference) a query pauses and a bar offers Load more or Stop here. Paused means the query is waiting in the Cortex, not finished. - Long values are shortened in results. Prop values over 2,048 characters (or large arrays and
datavalues) are cut short in result sets. The details pane, the property editor, the note editor and Copy value always fetch the full node first, so an edit never starts from a shortened value, and value filters are not offered for shortened values. - Large graphs lay out in the background. Above 300 nodes,
coseis replaced byforce, which runs in a web worker so the page stays responsive. Streamed nodes are placed next to a neighbor and the full layout runs once the query is done. Labels are hidden when zoomed out.
Not losing work
- Undo. Bulk edits (properties, adding, applying and removing tags, the tag manager) show an Undo button for 20 seconds. It restores the props, tags, tag intervals and tag props the edit changed.
- Confirmations. Deleting props from, or removing a tag from, several nodes asks first and says how many. Package actions that ask for confirmation say how many nodes they apply to.
- Closed tabs can be reopened from the toast, the tab menu or
Alt+Shift+T. - Unsaved notes. Closing a note with changes asks before discarding them.
- Two windows. Tabs are saved with a revision. If another window or browser saved its tabs in the meantime, saving pauses and you choose whose tabs to keep, instead of one silently replacing the other.
- Expired sessions. If the session expires, you log in again over the page: tabs, results and open dialogs stay, and the request that hit the expired session is retried. Logging in as a different user reloads.
Tests
make setup setup-ui # once: NeuralUI with its test tools, then Playwright + Chromium for the UI tests
make test # everything below
make test-svc # service tests against a real Cortex (pytest)
make test-js # JS syntax check and unit tests (tokenizer, completion, undo, export, filters)
make test-smoke # UI tests: a fresh dev stack in build/smoke/, the end to end smoke test, then
# per-theme screenshots compared with tests/ui/baseline/ (SMOKE_FROM='<step>'
# starts at a step, SMOKE_VISUAL=0 skips the screenshots)
make build # the Python packages (make build-py) and the container image (make build-docker)
The smoke test also fails on any Content-Security-Policy violation. Its dev stack's log and output are kept
in build/smoke/. CI (.github/workflows/ci.yml) runs these same targets on every pull request
and every push to main, plus a container image build; it can also be run by hand from the Actions tab.
To keep the runs down, pushes to other branches are not tested (a branch is tested through its pull
request), a new push to a pull request or to main cancels the run before it, and the release commit
Prepare Release pushes to main is skipped, since releases run their own tests (see
docs/RELEASING.md).
The screenshots are kept as the visual artifact of each run; to start comparing them, copy the PNGs of a
good run on main into tests/ui/baseline/ (baselines depend on the fonts of the machine that made them).
Security
To report a vulnerability, see SECURITY.md: privately, through the repository's Security tab, never in a public issue.
Releases
The version is set in one place, neuralui/version.py. Changes are listed in CHANGELOG.md
(new ones under ## Unreleased), and stored formats and their versions in docs/FORMATS.md.
A release is cut from GitHub with Actions → Prepare Release, which tests, rolls the changelog, sets the
version, then tags and pushes; the tag publishes Python packages, a container image on ghcr.io and a
GitHub release. See docs/RELEASING.md. About NeuralUI (user menu) shows the versions in use.
Storm lint and highlighting
Highlighting happens in the browser, as plain JavaScript, on every keystroke. Linting goes to
POST /api/neuralui/v1/storm/lint 250ms after you stop typing, and an edit cancels any request still
in flight. The Cortex is not called per keystroke. The NeuralUI service:
- parses the query with Synapse's own Storm parser, locally;
- checks the parsed query against a copy of the Cortex's model, Storm commands, libraries and package command definitions. The copy is refreshed in the background every 60s and when the service reconnects to the Cortex;
- caches results by query text.
A lint takes a few milliseconds on the server.
| Rule | Severity | Finds |
|---|---|---|
E001 |
error | Syntax errors from the Storm parser, at the exact line and column |
E002, E003, R*, P*, S*, M* |
varies | Synapse's own StormLinter rules |
N001 |
error | A form or full property name (inet:fqdnx, inet:fqdn:newp) that is not in the data model |
N002 |
error | Unknown relative property (:newp) for the forms in the pipeline |
N003 |
error | Unknown Storm command |
N004 |
error | Bad command arguments: unknown options, missing or wrongly typed values. This is checked by the command's own argument parser; arguments only known at runtime ($vars) are skipped. |
N005 |
error | Unknown $lib library or library member |
N006 |
warning | A variable that is used but never set |
Lint only runs in storm mode. Running a query that has errors asks first ("Run anyway?"), and a lint
still in flight never holds up a run. The Storm editor in the saved query dialog is linted too.
File viewer safety
- Bytes come from
GET /api/neuralui/v1/axon/files/<sha256>/range, which runs$lib.axon.read()as the session user (at most 1 MiB per request), so the Cortex enforcesaxon.get. - The hex and strings views only format bytes as text. Nothing in the file is interpreted.
- Rendering is detected from the file's magic bytes, never from
:mimeor the file name, and is limited to PNG, JPEG, GIF, WebP, BMP, ICO and PDF. SVG and other active formats are never rendered, and files over 64 MiB are not rendered. - NeuralUI never parses PDFs itself. On request, and after a confirmation, the bytes are wrapped in a
Blobtypedapplication/pdfand handed to the browser's built-in viewer (PDFium in Chrome, pdf.js in Firefox), either in a frame or in a new browser tab. The risk then rests with the browser's PDF viewer, which is kept up to date with the browser, so keep your browser current. - Images are decoded by the browser into an
<img>from aBlobtyped by the detected format.
Notes and limits
- Colors. Node colors come from Storm's
colorizecommand. Tag colors are a per-user display preference stored in the Cortex user profile. Coloring by tag falls back to a stable hash color. - Tag props must be declared in the Cortex model (
$lib.model.ext.addTagProp). The applicator edits whatever tag props the Cortex has, includingdatatag props for arbitrary nested values. The dev stack declaresscore(int) andmeta(data) only so there is something to demo. - Intervals merge. Setting an interval prop (e.g.
.seen) or a tag interval merges it with the existing interval, which is how Synapse handlesivalvalues. - The live markdown editor edits one unit at a time (a line, or a whole list item, code block, table or quote), so a text selection can not span units there; use the Raw view for that.
- The graph view shows at most 2000 nodes. See Large results for the table and the result cap.
- Light edges between results are only fetched in graph mode. Switching to the graph fetches them for the nodes already in the tab, by iden, instead of running the query again; so does turning property nodes on or off. Prop references are always drawn.
- Targets Synapse 2.x (
synapse_version: >=2.256.0,<3.0.0). Synapse 3.x changes the model and some APIs and has not been tested.
Metadata
Release files for neuralui 1.0.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neuralui-1.0.0rc1.tar.gz | 3.6 MB | With provenance | Details for neuralui-1.0.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neuralui-1.0.0rc1-py3-none-any.whl | Python 3 | none | any | Details for neuralui-1.0.0rc1-py3-none-any.whl |
Total release size: 7.2 MB
Release files / neuralui-1.0.0rc1.tar.gz
| Download URL | neuralui-1.0.0rc1.tar.gz |
|---|---|
| Size | 3.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dad87d0aeca1aa8fde0ba7a9fe3783cf34c78b4d0d88c87f7f2e1d0cc2d66731
|
|
BLAKE2b-256 checksum How to use checksums |
4926f2700ff9708dbb0225ca820dd66c29eb62aaf68d311adf41374f56ece3d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / neuralui-1.0.0rc1-py3-none-any.whl
| Download URL | neuralui-1.0.0rc1-py3-none-any.whl |
|---|---|
| Size | 3.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
335d5ef496e14ff5981d560895c333277d30ecf1ac9643710a0311abe314fced
|
|
BLAKE2b-256 checksum How to use checksums |
872c47d05142d392a64b534c1680a154a60de85923549f67acceb8567f1d990d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for neuralui 1.0.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for neuralui-1.0.0rc1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.