Ali Zafer Projects

Türkçe oku

Projects

Open source · Creative coding

Tezgâh

Interactive web experiments that turn Turkish arts into code.

Tezgâh (“loom” in Turkish) is an open-source gallery of over 30 experiments that make kilim weaving, girih geometry, makam scales, calligraphy, marbling and more something you can touch in the browser. Each project follows a single idea and is written with Canvas, WebGL or Web Audio, without dependencies.

  • Open source · MIT
  • 30+ projects
  • Live gallery
  • Zero dependencies in projects

Explore the project Screenshots

Live gallery (opens in a new tab)Source code (opens in a new tab)Documentation (Turkish)

Tezgâh gallery: the heading “Small experiments in code, light and form” on a dark background, a tag cloud and a sphere made of particles
Live gallery · opening screen

How is a kilim woven, at what angle is a girih star born, what does the comma difference that makes Hicaz sound like Hicaz actually sound like? Experiments that try to make the answer something you can touch in a browser tab.

Category
Creative coding and interactive experiments
Project type
Open source (MIT)
Platform
Web · Canvas, WebGL, Web Audio
Status
Live · public gallery
Started
November 2026
Developer
Ali Zafer

The gallery is live; every card leads to the project’s live address. The projects are plain HTML, CSS and JavaScript; the gallery is built with Vite and Three.js. The repository has unit tests and a browser test for the gallery.

01Why Tezgâh?

Behind traditional arts there is often a rule, a proportion or a calculation.

Tezgâh turns those rules into code: a symmetric motif stamp and a shuttle for the kilim, Hankin’s method of contacting polygons for girih, true 53-comma pitches for makam, area-preserving ink flow for marbling.

Each project runs in its own locked frame in the gallery; state travels in the address rather than in browser storage, so anyone opening the link sees the same piece.

02Product approach

Dependency-free projects
Every project is plain HTML, CSS and JavaScript and opens directly.
Accessibility
Keyboard use, screen reader announcements and the reduced-motion preference in every project.
Shareable
No browser storage; state travels in the address, so the person opening the link sees the same piece.
Isolation
Every project runs in its own locked frame (sandboxed iframe) in the gallery.
Cites its sources
The marbling engine builds on Jaffer and Lu’s work and the girih patterns on Hankin’s method; the sources are in each project’s README.
Self-discovering
The gallery finds projects by itself from their folders and playground.json metadata.

03System architecture

The gallery and the projects live in one repository. The gallery’s 3D scene is not part of the main bundle; it is loaded dynamically when needed.

Gallery (apps/hub)Vite and Three.js; finds projects by itself
projects/Each experiment in its own folder: HTML, CSS, JS and playground.json
_templateTemplate for a new project
scriptsDevelopment server, build, validation, project creation
scripts/libDiscovery, validation, safe path resolution
testsUnit tests and a browser test for the gallery
Sandboxed iframeEvery project is previewed in an isolated frame
Static hostingdist/: build output that runs anywhere
The diagram shows the actual structure of the repository (docs/gelistirme.md).

04Roadmap

  1. Phase 01

    Completing the 30-day series

    • The remaining pieces of the series: sound, simulation, typography, pattern, maps and 3D
    • A final project that brings the series together
  2. Phase 02

    Knowledge layer

    • A short story of the art behind each piece
    • A “how it works” walkthrough
    • Sources shown in the gallery
  3. Phase 03

    Sharing and export

    • Download the generated pattern as PNG or SVG
    • Recreate the same piece from a seed
  4. Phase 04

    Gallery

    • Collections: geometry, sound, texture, games
    • Quality setting for low-power devices
    • English interface
  5. Long term

    Research areas

    • Workshop and classroom edition
    • Exhibition and installation layout

The roadmap shows the direction of development; it is not a promise of dates or completion. Every new project keeps coming dependency-free, accessible and with its own README.

05Technical approach

  • Canvas 2D
  • WebGL / WebGL2
  • Web Audio
  • Vanilla JavaScript
  • Vite
  • Three.js (gallery)
  • npm workspaces
  • Node.js 22+

06From the gallery

A few of the more than 30 projects in the gallery and the technical core behind them (from the “Atölye” table in the README).

  • Kilim — Dijital TezgâhBitmap motifs, 1/2/4-fold symmetry, a seeded kilim generator and the slit at colour boundaries.
  • Girih — Sonsuz GeometriPeriodic tilings and Hankin rays; drag the angle and the pattern transforms.
  • Makam KlavyesiThe Arel–Ezgi–Uzdilek 53-comma system, sample-free Web Audio synthesis and a melodic path generator.
  • Ebru — Suyun ÜstündeDrops, stylus, comb and tide with area-preserving closed-form transformations.
  • Karagöz PerdesiJoint physics with hierarchical damped pendulums, backlit leather and shadow.
  • MangalaAn AI opponent at three levels, using negamax with alpha-beta pruning that deepens over time.

07Related articles

Articles on the approaches used in this project. The articles are in Turkish.

08Screenshots

Screenshots from the live gallery (py.execore.cloud), unedited. Every project is interactive; a screenshot is only one moment.

Gallery: search, tags and 3D scene
Screen Gallery: search, tags and 3D scene
Kilim — Dijital Tezgâh (digital loom)
Screen Kilim — Dijital Tezgâh (digital loom)
Girih — Sonsuz Geometri (endless geometry)
Screen Girih — Sonsuz Geometri (endless geometry)
Makam Klavyesi (makam keyboard): pitches of the Rast makam
Screen Makam Klavyesi (makam keyboard): pitches of the Rast makam
Ebru — Suyun Üstünde (marbling on water)
Screen Ebru — Suyun Üstünde (marbling on water)
Karagöz Perdesi (shadow play screen)
Screen Karagöz Perdesi (shadow play screen)

09Developer’s note

Every line an intention, every project a trace.

Tezgâh is where I weave my own experiments. Each project follows a single idea.

Why does the tip of a reed pen thicken and thin on paper, at what angle is a girih star born? I try to make the answer something you can touch in a browser tab.

— Ali Zafer

Documentation (Turkish)All projects