βοΈGlif Block
Use glifs in other glifs. The Composable Glifverse.
Last updated
Use glifs in other glifs. The Composable Glifverse.
Last updated
Advanced/Experimental Contact us or join Discord to report issues
Glifs can be used as building blocks inside other glifs. This is powerful magick. Our UI for this is pretty rough right now, but it works.
Some other examples of utility glifs you might use in your glifs:
Random person - outputs simple strings like "20-something female pakistani student"
Background Replacer - removes background from input image, outputs an image
and many more
Find many more examples in our GlifBlocks and Utility Glifs categories.
Known bug: All of the other glif's inputs show up as text inputs. So image inputs, multipick menus are all just text inputs, and defaults aren't parsed well. So be careful!
No safety checks: If you make changes to the other glif, you might break any dependent glifs! There is not currently any version-linking or similar to prevent this.
Annoyingly: Finding glifs and pasting in glif IDs is very annoying. It should be a search control, or a button on another glif saying "use this glif in your other glif". Bonus points if any glif lists prioritizes your personal glifs or glifs that you've liked or ran in the past.
No error bubbling: Errors inside the other glif aren't surfaced well.
Add the glif block by clicking the "+" button in the builder and selecting "Glif Block" in the Experimental/Advanced section.
Select an existing glif from the dropdown menu, or press the pencil edit icon and paste in a glif ID.
The inputs from that glif will appear. You can hardcode the inputs, or use {variables} to compose text to send to the next glif:
The Microscopic Vision glif (below) uses a glifBlock to call our staff-created StableDiffusion 3 (with negative prompt) glif. The SD3 glif generates an image using the Stability.ai API.
Note how the glif ID is edited in (clv55...
), and then input values from the Microscopic Vision glif are passed as variables to the SD3 glif's prompt
and negative
fields. e.g. {ar}
, {generating_imageprompt}
Search Wikipedia & return the page text from the top result: https://glif.app/@fab1an/glifs/clufscg2600007pg6wpnb13dh
Fetch the "Today in History" page from Wikipedia: https://glif.app/@jamiedubs/glifs/clqx796yp000610ym0ngo1oef
Uses LLM calls to turn brief prompts into detailed, effective image prompts for different image gen models (SD1.5 vs DALLE vs SD3 etc).