Skip to content

Behind the scenes

Not just a tidy surface. Here is what holds it up.

This site doubles as an example of how I work for clients. Here is what usually stays invisible, without numbers that go stale.

01

Automated tests

Logic that branches, calculates, or touches money and security has tests. Type checks, lint, and tests must pass before a change is committed.

The numbers about this site (languages, places, projects, tests) come from data, not from typing them in: languages from the locale list, places from the world catalogue, projects from the live rows, and tests from the last passing Vitest report, rounded down. The home page's own numbers (starting price, delivery time) are read from the same package catalogue as the services page.

02

The code you see is the code that runs

This site's interface is assembled from shared components. The snippet below is read from the same source file as the component beside it, so the two cannot differ. The switch is real: try it.

Svelte
<script lang="ts">
	import { m } from '#lib/paraglide/messages';
	import Badge from '#lib/ui/badge.svelte';
	import Field from '#lib/ui/field.svelte';
	import Switch from '#lib/ui/switch.svelte';

	let lit = $state(true);
</script>

<div class="grid justify-items-start gap-4">
	<Field label={m.bt_code_lamp()} inline>
		<Switch bind:checked={lit} />
	</Field>
	<Badge variant={lit ? 'success' : 'neutral'}>
		{lit ? m.bt_code_lit() : m.bt_code_unlit()}
	</Badge>
</div>

The result

On

03

Usage limits

Every public feature has a per-address rate limit. The AI assistant adds a daily quota plus limits on input and output length; when the quota runs out the site keeps working and points to the contact form.

04

Security at the boundaries

Input is validated against schemas, secrets live only on the server, and the database uses row level security. The AI key never reaches the browser.

05

AI usage policy

The world guide and trip planner use an OpenAI model through my server, not directly from your browser (the Ask chatbot in the page corner has its own section below). Your message is trimmed and stripped of emails, phone numbers, links, social handles, street addresses, and names after introductions such as “my name is …” or Javanese “jenengku …”, “asmaku …”, and “nami kula …” before sending (names mentioned in other ways may slip through).

The model receives wrapped data, not instructions, and the request uses store: false so the conversation isn't kept in my OpenAI account for reuse. That cleaned version and the answer are logged for 30 days, without your IP or identity, to monitor usage and quality, then deleted automatically; they are not used to judge you.

Answers can be wrong; decisions and exact prices always come from me. The world guide shares its safeguards and public quota with the trip planner. The model selects catalogue IDs only; its prose and links are not displayed. Guide logs store validated result IDs, not model prose. Requests have rate, concurrency and daily limits.

In-memory guards apply per process, rather than as an absolute limit across instances. Rejections are sampled so spam cannot flood the logs. Redaction also covers phone numbers written with Arabic-Indic digits and Arabic introductions such as “اسمي …”. These patterns still cannot identify every mention of a name. The trip planner on /world/activities uses the same guards and quota: the server first narrows the East Java catalogue to at most 40 places, the model receives only their IDs, names, categories and regions and picks IDs per day, and the result cards are written from the catalogue.

Pilgrimage sites are included only on request. In Studio, my own working panel, AI only helps fill things in: sorting a quick note, reading a job post or an offer, tidying a work line, and drafting a message, summary, title or translation. It has its own guards apart from the public quota (only me with MFA, 5 per minute, one job at a time, 60 per day), the text is cleaned with the same patterns, and client names I know are swapped for markers before sending and put back on the server.

The result lands in a form as fields I can edit; AI never saves, sends or publishes anything. Amounts, hours, rates and dates are used only when they are written in my own text, and the figures in a rate reply draft are filled in by code, not by the model.

06

Visit data

This site counts its own visits, with no third-party analytics service. Every public page you open, and every place Bit stops at in the Gresik Nyel world (once per place each time the page loads), adds one to a daily summary: the page or place, the language, and the referring site's name without its full address. There are no cookies, visitor IDs, or trails across pages, and IP addresses are not stored; the IP is only held briefly in server memory to rate-limit submissions.

If your browser sends Do Not Track or Global Privacy Control, nothing is counted. Summaries are deleted after 90 days, and the numbers are only indicative. If a page fails to load in your browser, the browser sends one error report to my email: the page you opened, the error message, and the browser type. The content of the report is not stored in a database; only a daily count is kept, with where the error came from (the server or the browser) and the page address, and that count is deleted after 90 days.

The report carries no cookie or visitor id, and is not sent when your browser asks for Do Not Track or Global Privacy Control. Besides the email, the same report becomes a short notice to my Telegram, carrying only where the error came from (the server with its status, or the browser) and the page address.

07

Place suggestions

The Suggest a Place form asks only for a place name, area, one source link, a short note and, if you like, a name for credit; no email or phone number. Suggestions go into a queue only the owner can read through Studio, are reviewed by hand and are never published automatically: an accepted place is still rewritten with sources in seven languages.

The server never opens the submitted link, and suggestion text is not sent to AI. IP addresses are not stored; an IP is only held briefly in server memory to limit submissions. Declined and duplicate suggestions are deleted after 90 days. The suggested place's name is also sent as a short notice to my Telegram, with nothing else.

08

The Ask chatbot

The Ask chatbot in the page corner has its own engine, written in Rust and running on the chat.syafrilverse.id subdomain, separate from this site. The site still owns the copy, the prices, and the leads; the engine only answers, records turns, and forwards the contact details you send. The chatbot is entirely AI and never pretends to be a person; its answers come from an OpenAI model.

Your message has emails, phone numbers, links, accounts, and names masked before it leaves my server. Before the first question, the chatbot asks for a name and one contact (WhatsApp or email); both are stored with the conversation in my database, never sent to the model, and not used to reach you unless you press “Ask to be contacted”.

I can turn this gate off in my work panel. The text of a conversation is stored only when both Do Not Track and Global Privacy Control are off; if either is on, only counts and the choices you click are recorded. No cookies and no persistent visitor id; your IP address stays in server memory only, to limit request rates.

If you tick “Remember my details on this device”, this browser keeps a copy of at most your last three conversations, and your next session from that device is linked to the one before: the model receives only your answers to the need buttons and one summary line written by code (the date, how many questions, the topics, the cards opened), never the old conversation’s text, and old conversations are never looked up by a typed name or contact.

“Forget my details” removes them from the device and from the server. Conversations are deleted automatically after the retention period I set in my work panel (90 days by default), and you can delete one yourself with the “Delete the conversation” in the widget settings button. The content guard has layers: a local word list, OpenAI moderation, a system prompt that keeps it to my services, a check of every answer sentence before it appears (links, numbers, and prices outside the catalogue are rejected), rate and daily limits, and a temporary block after repeated abuse.

Signs of self-harm are not answered by the model; a warm notice appears with Healing119 from the Ministry of Health. You can pick a short or full answer style, ask for one new answer when an answer did not help, and see the references (packages, work, steps, or posts) an answer used in its process steps. The name of the page you ask from is sent to the model, only from a list of pages I allow and never its full address; its tag sits above the message box and you can remove it.

Under each answer you can rate it “Helpful” or “Not helpful” and pick one of four fixed reasons; there is no comment box, and only that choice and the answer’s number are recorded. The full terms are on the Terms page, in the chatbot section. I can also set its tone, give it up to three sample answers, and write my own answers to questions it could not handle before.

The samples and answers are sent to the model as data; prices still come only from the catalogue, and every sentence of a reply is still checked. When I switch AI off or set the chatbot to Contact mode, that button becomes “Contact”: a plain message form with no AI and no conversation. Your message goes straight to this site, not through the chatbot engine and not to a model as you send it, and lands in my list of leads.

If the daily quota or the budget runs out while you are asking, the button also changes once the panel is closed.

09

Development tools

I use Claude Code as a development tool; commits made with it list it as a co-author. The AI features running on this site use the OpenAI API, not Claude. The agent works from a written brief — project map, verification commands, database limits — and does not commit, push, or touch the production database without my permission.

A change only counts as done once type checks, lint, unit tests, and browser tests pass and I have reviewed it myself. Automated tests for the AI features use mocked answers, so they do not call a real model or use up the quota; the chatbot’s guardrail test against a real model is something only I run, by hand.

Verification gate svelte-check → eslint → vitest → playwright

10

Trustworthiness

Prices are written up front, scope is locked, and what I can't deliver I say from the start. I keep even the small promises.