跳到主要內容

ARC 2.0.0-beta.28

Reference applications

Study real packages under ArcBlock/arc blocklets/ as bounded examples — not universal templates or product-parity proofs.

Reference applications connect a package, data layer, and surface in one real tree. They are bounded examples. Copy structure when it matches your need; do not copy product history or every dependency.

Location (read-only ARC monorepo): blocklets/<name>/ under ArcBlock/arc.

Quick map

PackageDemonstratesNot a proof of
hello-htmlPattern S static web: index.html (+ logo) can be served as a convention blocklet without blocklet.yamlProduction packaging norms for third parties
hello-declarativeMinimal declarative AUP: .aup/ pages/tests/man, no hand-written blocklet.yaml in source (build may synthesize dist metadata)Full app product surface
hello-terminalTerminal/text convention entry (companion to hello-html)GUI completeness
minimal-app (via arc blocklet create --recipe)Scaffolded web + AUP + agent + settingsThat every app needs an agent
discuss-kitReplicated posts/comments collections, URL bindings, cron, instance indexFull legacy Discuss Kit / forum / wiki / messaging product
did-spacescope: user, dual web+AUP routes, explorer path bindingsThat all storage UIs use this shape
arcblock (this site)Large content + Web Device site as a BlockletA starter template for small apps

How to use an example

  1. Read its README.md and blocklet.yaml (when present).
  2. Note scope, sites, replicated, and route files.
  3. Run only if you have a local ARC checkout and understand side effects — prefer scaffolding your own package with arc blocklet create for day-to-day learning.
  4. Extract one concern (bindings, seed, components) rather than forking the whole tree.

hello-html

  • What: Static index.html as a complete Pattern S sample.
  • Entry: /
  • Teaching point: Convention-based discovery without a manifest file.
  • For new third-party work: Still prefer arc blocklet create so identity and tooling stay uniform.

hello-declarative

  • What: Pure .aup/ data (pages, man, structure/flow tests).
  • Teaching point: Declarative AUP without custom JS.
  • Tests: Structure and navigation fixtures under .aup/tests/.

discuss-kit

See Discuss Kit lineage for the continuity statement and hard limits.

Demonstrates today (from its manifest and README):

  • scope: app with replicated posts/comments/anon
  • sites.bindings for /posts and /posts/{slug}
  • Declarative cron posting into the same content tree
  • networkRead and index domains for guest-readable content and search

did-space

  • What: Personal storage-oriented package (scope: user).
  • Surfaces: Marketing web route at / and explorer AUP under /explorer/{tail*} mapped onto AFS paths.
  • Teaching point: Coexistence of Web Device and AUP routes in one package without forcing one model on every URL.

Scaffold recipes vs monorepo samples

NeedPrefer
Greenfield third-party packagearc blocklet create --recipe …
Study edge cases / platform featuresRead monorepo blocklets/* (no edit required)
Site/content productWeb Device board + this site's package layout

Continuity note

A historical product name on a directory is lineage, not a warranty. When in doubt, read the current manifest and tests, not marketing memory.