datapages-server

datapages-server is a skill for Claude Code, Codex from romshark/datapages. It costs 35 tokens per session (2,993 once invoked), scanned A, original, MIT.

A guide to configuring a Datapages server's main entry point, including its message broker, static files, TLS, and Prometheus metrics. Prometheus is a tool for collecting application measurements.

In plain words
What is it for?
Use it when creating or changing a Datapages server, connecting its event broker, serving static assets, enabling TLS, or adding Prometheus metrics.
Why use it?
It explains the required server setup and the rules for generated code, helping prevent invalid configuration and build errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when creating or changing a Datapages server, connecting its event broker, serving static assets, enabling TLS, or adding Prometheus metrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/romshark/datapages/datapages-server
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add romshark/datapages --skill datapages-server
Clone the repo
git clone --depth 1 https://github.com/romshark/datapages

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for datapages-server

README.md
[![agentmods](https://agentmods.dev/badge/skills/romshark/datapages/datapages-server/github.svg)](https://agentmods.dev/skills/romshark/datapages/datapages-server)
Your own site
<a href="https://agentmods.dev/skills/romshark/datapages/datapages-server"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-server/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for datapages-server

Your own site · 80×15
<a href="https://agentmods.dev/skills/romshark/datapages/datapages-server"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,993 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.02993
Opus 5.5 $0.00014 $0.01197
Sonnet 5.5 $0.00007 $0.00599
Haiku 4.5 $0.00003 $0.00299

Measured 16d ago against content hash 94ff70b33e75, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

datapages-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

example/calculator/.agents/skills/datapages-server/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Server entry point

Read datapages first for the build loop, hard rules and naming conventions.

On its first run, datapages gen writes the server command's main.go. It does not regenerate that file on later runs.

NewServer

datapages gen reads the type arguments to find the app package and output directory.

s, err := datapages.NewServer[
	app.App,                     // App
	app.SessionData,             // or datapages.DisableSessions
	datapages.DisablePrometheus, // or datapages.EnablePrometheus
	datapagesgen.Server,         // the datapagesgen of that app package
](&a, broker, opts...) // the app is passed by pointer

Keep the call inside the module. Import datapages with a package name because the scanner rejects dot imports. Generated code is always in datapagesgen directly below its app package. 1 module can contain several apps. Run one with datapages watch --app app/frontend, the directory of its app package.

datapages.EnablePrometheus requires WithPrometheus, DisablePrometheus rejects it.

Broker

A broker is always required. It sends events between server instances and to SSE subscribers. Use modules/messaging/natscore for multiple instances. Use modules/messaging/inmem only for 1 instance. The generated server uses NATS. Start it with make up before starting the server.

Options

var opts []datapages.ServerOption
opts = append(opts,
	datapages.WithLogger(slog.Default()),
	datapages.WithMiddleware(mw),
	datapages.WithSessions(datapages.SessionsConfig{}),
	datapages.WithSessionManager[app.SessionData](mgr),
	datapages.WithAssets(app.StaticFS, false),
	datapages.WithHTTPServer(&http.Server{ReadHeaderTimeout: 10 * time.Second}),
	datapages.WithDatastarJS("https://cdn.example.com/[email protected]/datastar.js"),
	datapages.WithShutdownTimeout(30*time.Second),
	datapages.WithFileSendTimeout(time.Minute),
	datapages.WithAssetsCache(datapages.AssetsCacheConfig{}),
	datapages.WithBodySizeLimit(1<<20),
	datapages.WithLogSampling(datapages.LogSamplingConfig{Interval: time.Minute}),
	datapages.WithSSECompression(datapages.SSECompressionConfig{}),
	datapages.WithResponseCompression(datapages.ResponseCompressionConfig{}),
	datapages.WithPrometheus(datapages.PrometheusConfig{Host: ":9091"}),
)

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed 94ff70b33e75
  2. 1mo ago Changed · +1 lines 19cd21d9ccde
  3. 1mo ago Changed 154802f8166b
  4. 1mo ago Changed 16126731ae21
  5. 1mo ago Changed · +5 lines 3a2e7c3d73d9
  6. 1mo ago Changed · +1 lines ddb6c1d0f1de
  7. 1mo ago Changed 9201c7b1de4d
  8. 1mo ago Changed 0a8cc73393ad
  9. 1mo ago Changed · +1 lines cddf83337989
  10. 1mo ago First seen · 118 lines · 35 tokens per session scan A 3cdd40bfc860

Subscribe to this mod's changes

datapages-server is a skill published in the GitHub repository romshark/datapages (122 stars, last pushed 6d ago), licensed MIT. It adds 35 tokens to every session and 2,993 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-20.

Related

datapages-server compared with skills from other repositories

datapages-server next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
datapages-serverromshark/datapagesSkill1226d agoMITA35Claude Code, Codex
bex-private-servicesbex-co/bexSkill1.6ktodayApache-2.0A99Claude Code, Codex
structpagesjackielii/structpagesSkill2422d agoBSD-3-ClauseA154Claude Code
principle-resiliencylugassawan/swe-workbenchSkill32d agoMITA126Claude Code
kora-s3kora-projects/kora-skillsSkill21mo agoApache-2.0A60Claude Code
mcp-cloudflare-builderDojoGenesis/mcpSkill01mo agoMITA0Claude Code, Codex
golang-proHappyMonkeyAI/AgentsProtocolSkill515d agoMITA61Claude Code, Codex