Documentation
¶
Overview ¶
Command node-go runs an Open Brand Exchange brand node: the retailer portal, the OBX Protocol for retailers' software and the OBX Ingest API for the brand's own automation, in one binary.
node-go serve start the node node-go dev try it locally with the MAISON NOOR demo catalog node-go import --csv products.csv --images dir import from local files node-go admin reset-password --email you@example.com node-go admin create-ingest-token --name "Nightly PIM sync" node-go backup --to DIR | restore --from DIR backups node-go check-config validate the configuration node-go healthcheck exit 0 when the node answers node-go version
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
blobstore
Package blobstore stores files (image originals, renditions, zips) on the local disk or in an S3-compatible bucket (AWS S3, Cloudflare R2, MinIO, Google Cloud Storage through its S3 interoperability endpoint).
|
Package blobstore stores files (image originals, renditions, zips) on the local disk or in an S3-compatible bucket (AWS S3, Cloudflare R2, MinIO, Google Cloud Storage through its S3 interoperability endpoint). |
|
config
Package config reads the node's settings from the environment.
|
Package config reads the node's settings from the environment. |
|
db
Package db wraps database/sql for SQLite (default, pure Go) and PostgreSQL.
|
Package db wraps database/sql for SQLite (default, pure Go) and PostgreSQL. |
|
gtin
Package gtin validates and normalises GS1 trade item numbers.
|
Package gtin validates and normalises GS1 trade item numbers. |
|
ids
Package ids creates opaque, time-sortable object identifiers such as "prd_01j9zk3q7t5wabcdefghjkmnpq".
|
Package ids creates opaque, time-sortable object identifiers such as "prd_01j9zk3q7t5wabcdefghjkmnpq". |
|
imaging
Package imaging detects image types, reads dimensions from file headers and renders the OBX renditions (web, square, thumb) in pure Go.
|
Package imaging detects image types, reads dimensions from file headers and renders the OBX renditions (web, square, thumb) in pure Go. |
|
importfmt
Package importfmt parses the OBX canonical import format (docs/import-format.md): products.csv, assets.csv, the image file name pattern, the materials grammar and care codes.
|
Package importfmt parses the OBX canonical import format (docs/import-format.md): products.csv, assets.csv, the image file name pattern, the materials grammar and care codes. |
|
node
Package node implements an OBX brand node: the OBX Protocol (read side), the OBX Ingest API (write side), the Node Admin + Portal API used by the shared admin-ui, imports, renditions, exports, webhooks and statistics.
|
Package node implements an OBX brand node: the OBX Protocol (read side), the OBX Ingest API (write side), the Node Admin + Portal API used by the shared admin-ui, imports, renditions, exports, webhooks and statistics. |
|
problem
Package problem implements application/problem+json (RFC 9457) errors with the OBX error codes.
|
Package problem implements application/problem+json (RFC 9457) errors with the OBX error codes. |
|
safehttp
Package safehttp makes outbound requests to attacker-influenced URLs (scheduled imports, webhooks, SFTP/S3 endpoints) without reaching private networks (SSRF protection).
|
Package safehttp makes outbound requests to attacker-influenced URLs (scheduled imports, webhooks, SFTP/S3 endpoints) without reaching private networks (SSRF protection). |
|
schemas
Package schemas embeds the OBX JSON Schemas (copied from the spec repository by scripts/sync-spec.sh, CC-BY-4.0) and validates documents.
|
Package schemas embeds the OBX JSON Schemas (copied from the spec repository by scripts/sync-spec.sh, CC-BY-4.0) and validates documents. |
|
secure
Package secure holds the node's small cryptographic helpers: random tokens, token hashing, constant-time comparison, AES-256-GCM encryption of stored credentials and HMAC signing.
|
Package secure holds the node's small cryptographic helpers: random tokens, token hashing, constant-time comparison, AES-256-GCM encryption of stored credentials and HMAC signing. |
|
tlsauto
Package tlsauto gives the node its own HTTPS (OBX_TLS=auto): a Let's Encrypt certificate for the portal's domain, obtained and renewed automatically with the ACME http-01 and tls-alpn-01 challenges, and an http listener that answers the challenges and redirects everything else to https.
|
Package tlsauto gives the node its own HTTPS (OBX_TLS=auto): a Let's Encrypt certificate for the portal's domain, obtained and renewed automatically with the ACME http-01 and tls-alpn-01 challenges, and an http listener that answers the challenges and redirects everything else to https. |
|
vocab
Package vocab embeds the vocabularies of the OBX specification (vocabularies/*.json, copied by scripts/sync-spec.sh, CC-BY-4.0): the part, material, qualifier and care codes with their names per language and, for care, the ISO 3758 category and the GINETEX symbol code (protocol.md §5.9.1).
|
Package vocab embeds the vocabularies of the OBX specification (vocabularies/*.json, copied by scripts/sync-spec.sh, CC-BY-4.0): the part, material, qualifier and care codes with their names per language and, for care, the ISO 3758 category and the GINETEX symbol code (protocol.md §5.9.1). |
|
Package ui embeds the built admin-ui (brand admin + retailer portal).
|
Package ui embeds the built admin-ui (brand admin + retailer portal). |
Click to show internal directories.
Click to hide internal directories.