How cryptopunksnotdead/cryptopunks works
This repository is a collection of Ruby pixel-art products and libraries, not one unified runtime. The main workflow is selecting punk artwork and attributes, generating or composing an image, and saving or presenting it; the GUI adds collection and style controls. Separate branches provide synthetic-punk generation, coin treatments, and a lightweight GraphQL API. The graph preserves the README’s major capabilities and the indexed punk series. Some subsystem links are documented rather than source-verified; unsampled implementation details are omitted.
Main entry points: cryptopunks_gui.rb GUI launcher · tool.rb Punk tools · image.rb Image model · punks.rb Punk series
Components 28
Punk artwork
- Punk tools
cryptopunks/lib/cryptopunks/tool.rb - Attributes and colors
cryptopunks/lib/cryptopunks/attributes.rb - Punk data contract
cryptopunks/lib/cryptopunks/contract/punksdata-contract.rb - Punk assets
cryptopunks/lib/cryptopunks/contract/punksdata-assets.rb - Punk metadata
cryptopunks/lib/cryptopunks/contract/punksdata-meta.rb - Spritesheet lookup
punks/lib/punks/pixelart/spritesheet.rb - Image generator
punks/lib/punks/pixelart/generator.rb - Punk series
punks/lib/punks/punks.rb - 12px series
punks/lib/punks/punks_12.rb - 32px bodies
punks/lib/punks/bodies_32.rb - 40px bodies
punks/lib/punks/bodies_40.rb - Saudi series
punks/lib/punks/saudis.rb - 2017 series
punks/lib/punks/ye_olde_punks_2017.rb - Metadata dataset
punks/lib/punks/dataset/dataset.rb
Desktop GUI
- GUI launcher
cryptopunks-gui/app/cryptopunks_gui.rb - Image model
cryptopunks-gui/app/model/image.rb - Image display
cryptopunks-gui/app/view/image_frame.rb - Menu bar
cryptopunks-gui/app/view/menu_bar.rb - Collection preferences
cryptopunks-gui/app/view/preferences_dialog.rb - Style controls
cryptopunks-gui/app/view/style_options_frame.rb
Related libraries
- Coin treatments
punkart/lib/punkart/dollar.rb - Punkart extensions
punkart/lib/punkart.rb - GraphQL query
cryptopunks-graphql/lib/cryptopunks/graphql/query.rb
Synthetic punks
- Synthetic attributes
synthpunks/lib/synthpunks/contract.rb - Synthetic image
synthpunks/lib/synthpunks/image.rb
Other components
- Image creator
- Collections YAML
- Ethereum account
Connections 28
- Image creator → Punk tools: requests image
- Punk tools → Attributes and colors: uses attributes
- Punk tools → Punk assets: uses assets
- Punk tools → Punk metadata: uses metadata
- Punk data contract → Punk assets: defines assets
- Punk data contract → Punk metadata: defines metadata
- Punk series → Image generator: calls generator
punks/lib/punks/punks.rb - Punk series → Spritesheet lookup: looks up sprites
punks/lib/punks/punks.rb - 12px series → Image creator: offers small images
- 32px bodies → Image creator: offers larger images
- 40px bodies → Image creator: offers larger images
- Saudi series → Image creator: offers series
- 2017 series → Image creator: offers series
- Image creator → Metadata dataset: reads metadata
- Image creator → GUI launcher: launches
cryptopunks-gui/app/cryptopunks_gui.rb - GUI launcher → Image model: creates model
cryptopunks-gui/app/cryptopunks_gui.rb - GUI launcher → Menu bar: builds menu
cryptopunks-gui/app/cryptopunks_gui.rb - GUI launcher → Image display: builds display
cryptopunks-gui/app/cryptopunks_gui.rb - GUI launcher → Style controls: includes controls
cryptopunks-gui/app/cryptopunks_gui.rb - Menu bar → Collection preferences: opens preferences
cryptopunks-gui/app/view/menu_bar.rb - Image model → Collections YAML: fetches config
cryptopunks-gui/app/model/image.rb - Image model → Punk series: loads composite
- Image creator → Punkart extensions: applies treatment
- Punkart extensions → Coin treatments: exposes treatments
punkart/lib/punkart.rb - Image creator → GraphQL query: queries API
- Ethereum account → Synthetic attributes: supplies address
- Synthetic attributes → Synthetic image: provides attributes
- Synthetic image → Ethereum account: generates punk