Skip to content

Organize the examples directory and add an examples index #656

Closed

Description

@LunaStev

Why

The top-level examples/ directory currently mixes introductory language samples, larger application demos, platform-specific programs, WebAssembly CI fixtures, and standard-library examples.

Small files such as hello.wave and if.wave sit beside larger or target-specific programs such as doom.wave, tcp.wave, and the WebAssembly examples. examples/std/ already has its own focused layout and README, but the rest of the directory has no equivalent index or category structure.

Scope

  • Organize the non-std examples into a small set of clear categories such as basics/, language/, applications/, and platform/.
  • Keep examples/std/ as the standard-library example area rather than folding it into the new categories.
  • Add examples/README.md with a short description, run/check command, and any target or host requirements for each maintained example.
  • Update repository documentation, CI workflows, smoke runners, or scripts that reference moved example paths directly.
  • Preserve the intent and behavior of the existing examples; this issue is a layout/documentation cleanup, not a rewrite of their programs.

Completion criteria

  • A new contributor can tell which examples are introductory, language-focused, application-oriented, or target-specific from the directory layout and index.
  • Every moved .wave file is still discovered by tools/check_wave_corpus.py.
  • WebAssembly and other CI jobs use the new paths successfully.
  • examples/std/README.md remains valid and examples/std/ keeps its current role.
  • Repository links to example files are updated so no moved path is left stale.

Activity

  1. added
    documentation
    good first issue
    on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions