Divooka Reference

Application Framework

Usable

Realtime applications in Glaze, and web servers and web apps in Ol'ista

Guide on the Methodox Wiki

208 nodes in 17 categories

Ships with
Divooka ExploreDivooka Compute
Support tier
Tier 1 (proposed)
Package
Web Applications Glaze Realtime Event Applications
Web Applications

Serve web pages and web APIs with Ol'ista, implement handlers as graphs, and request web services.

Glaze Realtime

A realtime interactive media framework primarily for 2D graphics: provides drawing loop, sprites, input maps, etc. Useful for games and simulations.

Event Applications

Provides the Start event and the runtime for an Events graph - required for event-driven documents.

Realtime Application

Make Realtime ApplicationClearClose MicrophoneDraw ArcDraw CircleDraw EllipseDraw GradientA rectangle shaded smoothly from one colour to another, top to bottom or left to right: a sky, a fade, a highlight.Draw ImageDraw LineDraw PolygonDraw PolylineA line through several points, joined smoothly: a path traced between two tiles, a trail behind a comet, a graph.Draw QuadDraw RectangleDraw Rounded RectangleA rectangle with rounded corners: a button, a panel, a card.Draw SpriteDraw TextDraw Tiled ImageAn image repeated across a rectangle, shifted by an offset: a texture of grain or cloth, a scrolling background.Audio OutputWhere this application's sound comes out.Audio Output If AttachedThe audio output if one was attached, and null if this run has been silent.Close RequestedWhether the application has asked to stop.Cursor VisibleWhether the application wants a cursor shown.DebuggingWhether the application draws its own frame-rate readout.Desired Background ColorWhat Clear paints when it is given no colour of its own.Desired Frame RateThe frame rate the application asks for, in hertz; 0, the default, for as fast as the display allows.Desired Window SizeThe size the application wants.Desired Window TitleThe window's title.Elapsed TimeMilliseconds the last frame took.FramebufferThe pixels.InputWhere the pointer is and which keys are down.In Update LoopWhether a frame is being drawn.Is RasterizingWhether this window rasterizes, or merely records.Requested CursorWhat cursor the application would like.SinkWhere drawing goes: the framebuffer's rasterizer by default, or whatever was composed in.StoragePer-run storage a node can keep something in, cleared when a run starts.Get Actual Window SizeGet Elapsed TimeGet Mouse Button StatesGet Mouse PositionGet Recording DevicesThe recording devices on this machine, by name, for Open Microphone.Get Sound LevelHow loud the sound is now: 0 for silence, 1 for a sine at full scale, over the newest 2048 samples, about 45 ms - what a level meter shows.Get Sound SpectrumHow loud each part of the sound is now, from the bass on the left to the treble on the right: bands spaced evenly in pitch from 40 Hz to 16 kHz, each 0 at -60 dB or quieter and 1 at full scale - the bars of a spectrum visualizer.Get Sound WaveformThe newest samples of the sound, oldest first, for an oscilloscope to draw: each -1 to 1.Get StorageGet Window SizeGet design-time or specified window size.Hide CursorIs Key DownIs Sound PlayingMake SpriteOpen MicrophoneStarts listening to a microphone, so the measuring nodes can hear it: pass what this returns as their Microphone.Play ClipPlays a clip from memory - one the audio nodes made, generated rather than recorded.Play MusicPlays a music file, looping by default: WAV, OGG/Vorbis, FLAC or MP3.Play SignalPlays a signal, synthesized as it plays, until it is stopped: the same on both sides.Play SoundPlays a sound file once: WAV, OGG/Vorbis, FLAC or MP3.Play Stereo SignalPlays a stereo signal - a panned voice, a stereo reverb or chorus - synthesized as it plays, until it is stopped.PresentMake sure every draw has reached the pixels, then answer them.Request CloseAsk to stop after this frame.Set CursorSet Frame RatePaces the frames at a steady rate, so every frame's delta is the same and motion is smooth: 60 for most games, 120 for a fast one; 0 for as fast as the display allows.Set LoopSet Master VolumeThe volume of everything at once, on top of each sound's own: a game's volume setting.Set PanSet PitchSet VolumeSet Window BackgroundSet Window SizeSet Window TitleSet the window's title.Show CursorShow Debug InformationSprite CollideStop All SoundsStops everything playing, fading it out over some seconds.Stop SoundStops a sound, fading it out over some seconds; 0 stops it at once.InitializedWindow is created.Key DownA key went down.Key UpA key came back up.Mouse DownA pointer button went down - a click begins, a drag starts.Mouse UpA pointer button came back up - a click ends, a drag drops.StartDivooka procedural program entry, equivalent to "Main" in many programming language.UpdateCalled once per frame.

Database Result

Ol'ista Website Builder

Web Apps

Create Web AppA new web app with no endpoints yet.Map DeleteAnswers DELETE requests on a route with a function.Map FallbackAnswers every request no endpoint or file answered - a 404 page, or a single-page app's index.Map GetAnswers GET requests on a route with a function: /todos/{id} fills an input named Id.Map GroupPuts another app's endpoints under a prefix - /api - as ASP.NET Core's route groups do: build the group's endpoints in an app of their own (and require a key on them there, if they need one), then map the group.Map MethodsAnswers requests of several methods - HEAD, OPTIONS or any other - on a route with one function.Map PatchAnswers PATCH requests on a route with a function.Map PostAnswers POST requests on a route with a function; a record or class input is read from the JSON body, simple inputs from its fields or a form.Map PutAnswers PUT requests on a route with a function.Require Api KeyRequires a key on every endpoint mapped so far: a request without the header, or with another key, is answered 401.RunRuns the app until the program ends, or the run it belongs to is stopped - the last step of a program whose job is to serve.StartStarts the app in the background and returns at once with where it answers - for a program that serves as one step, calls itself, and stops; it stops on its own after Max Seconds.StopStops an app Start started and releases its port; stopping one that has stopped does nothing.Use CorsLets pages from other sites call the app from a browser (CORS): the origins allowed, or * for any.Use Open ApiDescribes the app's endpoints as an OpenAPI 3 document at a path - what Swagger UI, Postman and code generators read - from its routes and its handlers' inputs.Use Request LoggingPrints a line for every request - method, path, status and time - to the program's output.Use Static FilesServes the files of a folder - pages, scripts, pictures - with index.html for a folder's own address.

Endpoint Response

App Database

Database Statement

Web Results

Web App

Glaze Sprite

Quick Serve

Responses

Web Text

Running Web App

Running Server

Basic Application

Dashboard Builder