{"id":50928254,"url":"https://github.com/idiolect-dev/fieldwork","last_synced_at":"2026-06-17T01:30:40.407Z","repository":{"id":354285198,"uuid":"1222926056","full_name":"idiolect-dev/fieldwork","owner":"idiolect-dev","description":"A workshop for community schema curation on atproto","archived":false,"fork":false,"pushed_at":"2026-04-27T23:27:53.000Z","size":652,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-28T00:16:12.675Z","etag":null,"topics":["idiolect","panproto","protocol","schema"],"latest_commit_sha":null,"homepage":"https://idiolect.dev/fieldwork/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idiolect-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T21:00:29.000Z","updated_at":"2026-04-27T23:27:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/idiolect-dev/fieldwork","commit_stats":null,"previous_names":["idiolect-dev/fieldwork"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/idiolect-dev/fieldwork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiolect-dev%2Ffieldwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiolect-dev%2Ffieldwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiolect-dev%2Ffieldwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiolect-dev%2Ffieldwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idiolect-dev","download_url":"https://codeload.github.com/idiolect-dev/fieldwork/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiolect-dev%2Ffieldwork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34430688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["idiolect","panproto","protocol","schema"],"created_at":"2026-06-17T01:30:38.763Z","updated_at":"2026-06-17T01:30:40.398Z","avatar_url":"https://github.com/idiolect-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"app/public/og.png\" alt=\"fieldwork: a workshop for community schema curation\" width=\"820\" /\u003e\n\u003c/p\u003e\n\n# fieldwork\n\nA workshop for community schema curation on atproto. Built on [idiolect].\n\nfieldwork composes the records that govern how a community translates\nbetween atproto schemas. Seven tools share one in-memory workspace:\nauthors compose dialects, vocabularies, communities, recommendations,\nand deliberations against the `dev.idiolect.*` lexicon family, browse\nthe lexicons themselves, and upload protolab-authored panproto lenses\nto their own PDS. Drafts export as record JSON, copy as\n`idiolect-cli` invocations, or publish straight to the active session\nvia atproto OAuth.\n\nLive at **\u003chttps://idiolect.dev/fieldwork/\u003e**\n\n## Tools\n\nSeven tools, all working off the same in-memory **Workspace** so an\nimport in one tool feeds suggestions in the next.\n\n| Tool                       | What it builds                                                                                       | Record kind        |\n|----------------------------|------------------------------------------------------------------------------------------------------|--------------------|\n| `Dialect Composer`         | A dialect with preferred lenses, deprecations, and supersedes-chain.                                 | `dev.idiolect.dialect`        |\n| `Vocabulary Editor`        | A typed multi-relation knowledge graph (OWL Lite property characteristics + SKOS Core annotations) or the legacy action / purpose tree. | `dev.idiolect.vocab`          |\n| `Community Config`         | A community with members, role assignments, conventions, endorsements, core lens / schema sets, and record-hosting policy. | `dev.idiolect.community`      |\n| `Recommendation Builder`   | A recommendation with a lens path, condition tree, and required-verifications block.                 | `dev.idiolect.recommendation` |\n| `Deliberation Composer`    | A community-scoped question or proposal under collective consideration, plus statements and observer outcomes. | `dev.idiolect.deliberation{,Statement,Outcome}` |\n| `Lens Manager`             | Lists your published lenses and uploads protolab-authored bodies to your PDS.                        | `dev.panproto.schema.lens`    |\n| `Lexicon Browser`          | Read-only view of every bundled `dev.idiolect.*` lexicon plus user-imported docs.                    | (read-only)                   |\n\nEvery editor has the same import / export shape. Paste an at-uri,\ndrop a JSON file, or pick from the bundled fixtures. Export\ndownloads a JSON record body, copies an `idiolect-cli` publish\ncommand, or publishes straight to your PDS via OAuth.\n\n## Why static-only\n\nidiolect is a federated record system. Everything fieldwork builds is\na record draft conforming to one of the `dev.idiolect.*` lexicons.\nPublishing means appending the record to the user's PDS, which only\nthe user can authorise. Keeping fieldwork backend-free (static HTML +\nCSS + JS + WASM, hostable on GitHub Pages) means:\n\n- no fieldwork-operated server holds drafts or credentials.\n- import / export works against any PDS the user can OAuth into.\n- the tool is reproducible and forkable: clone, push to your own\n  Pages, redirect a custom domain.\n\n## Running it\n\n### Hosted\n\n\u003chttps://idiolect.dev/fieldwork/\u003e\n\n### Locally\n\nRequires Rust 1.95+, Node 20+, and [wasm-pack].\n\n```bash\ngit clone https://github.com/idiolect-dev/fieldwork\ncd fieldwork\n./scripts/build-wasm.sh     # builds the fieldwork-wasm crate\ncd app \u0026\u0026 bun install \u0026\u0026 bun run dev\n```\n\nRust changes need a rebuild of the WASM bundle (`./scripts/build-wasm.sh`).\nThe React layer hot-reloads.\n\n## At-URI autocomplete\n\nEvery at-uri input understands handles. Type `aaron.bsky.social/...`,\npick a record from the live PDS listing, and fieldwork stores the\ncanonical at-uri internally. On serialise (export, publish), the\nhandle's repo segment resolves to a DID via bsky's public AppView so\nthe bytes that hit the network always carry stable identifiers,\neven though the input shows the human-readable handle.\n\nThe autocomplete walks segments in order:\n\n1. Handle / DID search across local sessions and bsky typeahead.\n   When an `expectedCollection` is set, the active session's\n   records of that kind appear at the top.\n2. Collection segment, prefix-filtered against the bundled record\n   NSIDs.\n3. Rkey segment, live from the typed repo's PDS via\n   `com.atproto.repo.listRecords`.\n\n## Lexicon viewer\n\nSix tabs over the active lexicon document:\n\n- `JSON`: syntax-highlighted source.\n- `Definitions`: table of every `def` entry with its type and description.\n- `Fields`: per-def field tables, with refs and `array\u003cref\u003e` and unions\n  recursively expanded as indented child rows. Cycle-safe.\n- `Refs`: a per-def \"uses\" / \"used by\" table. Clickable internal refs\n  jump to the Fields tab and scroll to the target.\n- `Diff`: pin a baseline version and surface added / removed / changed\n  fields against it.\n- `Try`: a copy-pasteable record body or curl-able request stub for\n  the lexicon's `main` def, filled with placeholder values that\n  substitute the active session's DID and PDS when signed in.\n\n## OAuth scopes\n\nfieldwork uses atproto's granular scope spec. Three intent tiers\nare surfaced in the Sign-in menu:\n\n| Intent       | Scopes                                                                              |\n|--------------|-------------------------------------------------------------------------------------|\n| `read-only`  | `atproto`                                                                           |\n| `curator`    | `atproto repo:dev.idiolect.{dialect,vocab,community,recommendation,deliberation,deliberationStatement,deliberationOutcome} repo:dev.panproto.schema.lens` |\n| `full`       | `atproto` + every `repo:dev.idiolect.*` collection plus the lens scope               |\n\nOnce `dev.idiolect.auth.{curatorAccess,fullAccess}` permission-set\nlexicons are published and resolvable, set\n`VITE_USE_PERMISSION_SETS=true` at build time to switch to the\nmore-readable `include:` references.\n\n## Layout\n\n```text\ncrates/\n  fieldwork-core/   record-draft model, validators, in-memory workspace\n  fieldwork-wasm/   wasm-bindgen entry points the React app imports\n\napp/\n  src/\n    tools/          one component tree per tool (DialectComposer, ...)\n    workspace/      shared workspace state (zustand)\n    sessions/       atproto OAuth client, scope tiers, publish + normalise helpers\n    components/     AtUriAutocomplete, HandleSearch, GuidancePane, DiffPane, ImportButton, ExportButton, SessionMenu, Sidebar\n    lexicons/       LexiconViewer + bundled dev.idiolect.* + dev.panproto.* JSON\n    fixtures/       seed data for each tool\n    panproto/       wasm init + lexicon validator\n```\n\nEach crate is a thin wrapper over [idiolect]. Most idiolect releases\nland in fieldwork as a `Cargo.toml` tag bump.\n\n## Tests\n\n```bash\ncargo test --workspace      # Rust\ncd app \u0026\u0026 bun test          # frontend (vitest)\ncd app \u0026\u0026 bun run typecheck # tsc --noEmit\n```\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n\n## Related\n\n- [idiolect]: lexicon family, codegen, record indexer, observer,\n  orchestrator. fieldwork is the authoring surface on top.\n- [protolab]: the visual lens editor. Export a lens here, upload it\n  via fieldwork's Lens Manager.\n- [panproto]: schemas, lenses, protolenses, the foundation under\n  both idiolect and protolab.\n- [atproto]: the protocol fieldwork's records publish into.\n\n[idiolect]: https://github.com/idiolect-dev/idiolect\n[protolab]: https://panproto.dev/protolab/\n[panproto]: https://github.com/panproto/panproto\n[atproto]: https://atproto.com/\n[wasm-pack]: https://rustwasm.github.io/wasm-pack/installer/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidiolect-dev%2Ffieldwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidiolect-dev%2Ffieldwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidiolect-dev%2Ffieldwork/lists"}