Expand description
The Runlight: sites, the tracker’s hits, short links, AI agent fetches, and the scheduled upkeep (runlight.ts).
Structs§
- AppMailer
- A mailer of the app’s own, such as a CMS’s, that sends each message itself.
- Remote
- Another Runlight install a site is read from: its address, its token there, and its own id for the site.
- Remote
Info - What a connected install last said about its site.
- Runlight
- Privacy friendly web analytics that lives inside your app. A cheap handle to clone.
- Runlight
Options - How a Runlight is made.
- Site
Options - A site as code gives it.
Enums§
- Trust
Proxy - Where the client’s address is read from.
Constants§
- LINK_
DOMAIN_ CHECK - A path on every link domain that answers when the domain reaches this Runlight.
- RETENTION_
MONTHS - The choices for how long a site keeps its visits.
- SESSION_
IDLE_ MS - Thirty minutes without a request ends a session.
Functions§
- env_
value - An environment variable, trimmed, or
Nonewhen it is empty. - is_
domain - A domain name, such as go.example.com.
- is_
email - What passes for an email address: something@somewhere.tld, with no spaces, quotes, or angle brackets.
Type Aliases§
- AppSend
- Sends one message through the app’s own mailer. A
MailErrorit gives back, or acrate::Error::Mail, passes through as it is; any other error becomes one codedmail_app_failed. - Clock
- A clock in epoch milliseconds.