tilasm

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tilasm builds what a tilasm publishes on claude.ai: its page with the files beside it, at their paths, as the window serves them. Djinn builds it, never a model: the same folder gives the same bytes.

The Artifact tool publishes no page its session has not read whole, and Read takes 256 KB at a time, lines of 2,000 characters (W493): a page with its images inlined, megabytes of base64, cannot be published. So the page goes as it is, its files beside it, and the images and fonts a page holds inlined, as data: addresses, go out of it into files.

Index

Constants

View Source
const (
	PageLimit       = 16 << 20
	TextFileLimit   = 16 << 20
	BinaryFileLimit = 15 << 20
	SendLimit       = 64 << 20
	MaxFiles        = 255
)

The limits of a claude.ai artifact, as its Artifact tool states them: a page of 16 MB at most; beside it at most 255 files, 16 MB each for a text file and 15 MB for any other, 64 MB per publish.

View Source
const Index = "index.html"

Index is the page a tilasm opens on.

View Source
const Outside = "outside"

Outside is the folder the data: addresses of a page go to, by their content: outside/<hash>.png.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// Dir holds the page, Index, and the files beside it.
	Dir string
	// Files are the files beside the page, relative to Dir, with forward slashes, sorted.
	Files []string
	// Left are the tilasm's files left out, of a type claude.ai does not serve: their links lead nowhere there.
	Left []string
	// Outside counts the data: addresses that went out of the page into files of Outside.
	Outside int
	// Size is what is sent, in bytes: the page and the files beside it.
	Size int64
}

Bundle is a tilasm made ready to publish, in a folder of its own.

func Build

func Build(src, dst string) (*Bundle, error)

Build makes the tilasm's version folder src ready to publish, in dst, a folder that exists and is empty: its page, its large data: addresses moved out into files, and every file of a type claude.ai serves, at its path. A tilasm over an artifact's limits is refused with a TooLargeError error.

type TooLargeError

type TooLargeError struct{ Why string }

TooLargeError is why a tilasm cannot be published: it does not fit an artifact's limits.

func (*TooLargeError) Error

func (e *TooLargeError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL