Application Framework
UsableRealtime applications in Glaze, and web servers and web apps in Ol'ista
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
Make Database ResultWhat a statement gave back: the rows it read, and what it changed.DeconstructEqualsFirst To JsonThe first row as a JSON object, one property per column - what an endpoint that reads one record sends - or null when there is no row, which a handler answers with 404.ColumnsThe names of the columns, in order.Last Insert Row IdThe row id of the last row inserted on this connection.RecordsEach row as a dictionary from column name to value - the shape a graph reads a field from by name.Row CountHow many rows came back.RowsThe rows, each one value per column: text, a whole number (System.Int64), a real number (System.Double), bytes, or null.Rows AffectedHow many rows the statement inserted, changed or deleted.ScalarThe first value of the first row, or null when there is none - the answer to a SELECT count(*).Get Hash CodeTo JsonThe rows as a JSON array of objects, one property per column - what an endpoint answering with JSON sends.To StringThe result in one line.Op EqualityOp Inequality
Ol'ista Website Builder
Create Directory Browser CapabilityCreate Directory Service CapabilityCreate FTP Server CapabilityCreate Realtime Chat CapabilityCreate Secure Static Pages CapabilityCreate ServerCreate Static File CapabilityCreate User Login CapabilityCreate Web API CapabilityMap EndpointAn endpoint answered by any function - one of the document's own graphs, Routine or Function - whose inputs are filled from the request by name, the way an ASP.NET Core minimal API fills a lambda's parameters.ServeThis blocks the executing thread until the server is shut down - when the program ends, or when the run it belongs to is stopped.StartStarts a server and returns while it runs, so the rest of the program can use it - call it, test it, show its address - and then stop it.StopStops a server OilstaWebsiteBuilder.Start started, and releases its port.With AddressWith EndpointWith Root Folder
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
Default File NameThe local database file when nothing names one.Path VariableThe variable naming the local database file.Url VariableThe variable naming the platform database's address.BatchRuns several statements as one: either all of them take effect, or - when any is refused - none does.DescribeWhere this app's database is, in words.ExecuteRuns a statement that changes something - CREATE, INSERT, UPDATE, DELETE - and says how many rows it changed.Execute NamedRuns a statement that changes something, with its values named as AppDatabase.QueryNamed names them, and says how many rows it changed.InsertRuns a statement that inserts one row and gives back the new row's id.Insert NamedRuns a statement that inserts one row, with its values named as AppDatabase.QueryNamed names them, and gives back the new row's id.QueryRuns a statement that reads - a SELECT - and gives back its rows.Query NamedRuns a statement that reads, with its values named: :name in the SQL takes the value of name in Values - a web request's parameters, as an endpoint's handler receives them.StatementA statement for AppDatabase.Batch.UseUses Provider from now on, closing the one in use.With ValueThe values with one more - or one replaced - for a named statement: a request's parameters plus what the handler worked out, a password's hash or a time, without changing the request's own.
Database Statement
Make Database StatementOne SQL statement and the values for its ? placeholders, in order.DeconstructEqualsParametersThe values, in placeholder order: text, whole numbers, real numbers, true or false, bytes, or null.SqlThe statement, with ? where each value goes.Get Hash CodeTo StringOp EqualityOp Inequality
Web Results
Bad Request400 Bad Request: what the client sent is wrong, said in a JSON error.Conflict409 Conflict: it clashes with what is there - a name taken, an edit of something changed meanwhile.Created201 Created, saying where the new thing is, with it as JSON.Forbidden403 Forbidden: who the request is from is known, and not allowed this.No Content204 No Content: done, nothing to say.Not Found404 Not Found, with a JSON error.Ok200 OK with the value as JSON; text that already is JSON is sent as it is.ProblemA problem in the RFC 9457 form ASP.NET Core's Results.Problem writes: status, title and detail, as application/problem+json.StatusAny status with a JSON body, for the answers the others do not name.Unauthorized401 Unauthorized: the request did not say who it is, or said it wrongly.
Web App
Glaze Sprite
Quick Serve
Responses
Html ResponseA web page: the HTML as it is, sent as text/html.Json ResponseA JSON answer: the text as it is, sent as application/json.RedirectSends the visitor's browser to another address - after a form is posted, to the page that shows the result (303, See Other).Text ResponseA plain text answer.With HeaderThe same response with one more header - a Location, a Set-Cookie, a Cache-Control - replacing one of the same name.
Web Text
Hash PasswordA password made safe to store: salted and stretched (PBKDF2 with SHA-256), so the stored text cannot be turned back into the password.Html EncodeA value as page text: <, >, & and quotes escaped, so what a visitor typed is shown and never run.Json StringA value as a JSON string, quotes included and everything that needs it escaped - to put into a JSON template made with Format, e.g. {{"title": {0}}}.Verify PasswordWhether a password is the one a stored hash was made from (by Hash Password).