
Primitives the internet never shipped.
Snugnut ships 70+ services for agents. Every one is a wheel the industry keeps reinventing, or renting back to you a dozen vendors at a time. Snugnut delivers them in shapes agents already know, stripped of the friction, and machine-payable with x402.
Entity Component System
Model objects as entities with typed components, then query and update them through systems. This works well for game worlds, simulations, and device fleets.
Biome
Model populations that grow, compete, and respond to changes in their environment. Use it for ecosystems, resource recovery, and harvesting in a simulation.
Director
Adjust the pace of a simulation using signals, target intensity, and an event budget. Let a busy scene settle or introduce another event when there is room.
Almanac
Give a simulated world a shared clock, calendar, and weather. Clients see the same day and conditions, even as world time speeds up or pauses.
Narrative
Store actor state and flags in a story or session. Keep a session’s changes separate from shared state, then promote the changes you want to retain.
Lore Story Engine
Run branching stories as sessions that wait for player choices. Keep dialogue, variables, and checkpoints with the story as it advances.
Ritual
Coordinate several participants within one time window. Complete an action only when the required people have contributed in time.
Pact
Create agreements backed by escrow, evidence, and a resolution process. Keep funds held through the dispute window before paying the outcome.
Seedling
Generate repeatable content from a seed and a versioned generator. Keep the recipe alongside generated artifacts so their origin can be traced.
Succession
Plan who takes over when an owner is absent or a trigger occurs. Use a grace period and a recorded handover to make the transition deliberate.
Talent Trees
Build progression trees with prerequisites, point costs, and exclusive paths. Allocate points and support respecialization when players change direction.
Meter
Track usage by agent or task and reserve a budget before work begins. Reconcile the reservation with actual usage when the work finishes.
Treasury
Manage wallets, holds, and transfers for a virtual economy. Balanced ledger entries record each movement so you can trace where credits went.
Handshake
Negotiate a two-party exchange before settling it. Both sides stage their assets and confirm before anything changes hands.
Vault
Keep content sealed behind a time or approval gate. Opening the gate and supplying the holder’s key share are separate parts of revealing it.
Consensus
Ask independent validators to assess a factual claim. Collect confirmations and denials until the required participation and agreement thresholds are met.
Human-in-the-Loop
Pause work until the right people approve it. Named approvers, deadlines, and rejection rules keep the decision explicit.
Arbiter
Evaluate submissions against a weighted rubric using a model. Keep the criteria, scores, and reasoning together so the result can be reviewed.
Rumor
Let information travel through a network with delay and changing fidelity. Corrections follow the same connections as the original story.
Reputation
Track trust within a domain using feedback, repeated-rating rules, and decay over time. Map scores to configurable tiers for use elsewhere in your app.
Chrono
Manage resources that refill over time and actions with cooldowns. Available amounts are calculated when read, without a timer for every resource.
Tournament
Create a tournament, report match results, and advance winners through its bracket. The service tracks progression between rounds.
Leaderboard
Submit scores and rank participants using the metrics your competition needs. Look up a player’s rank or the participants around them.
Matchmaking
Match waiting players using shared constraints and preferences. Keep compatible regions together while looking for an appropriate skill match.
Quest
Give players objectives to accept, progress, and turn in. Track the steps separately from the final reward so completion stays explicit.
Guild
Manage groups with membership, applications, and roles. Give leaders a way to admit members and hand responsibility to a successor.
Achievement
Recognize milestones as activity arrives. Track progress toward rules and prerequisites, then award achievement points when they are met.
Lottery
Choose from a weighted pool with a repeatable seed. Use draws for rewards or selections, with options to consume entries as they are picked.
Distributed State
Share a checkpoint between workers and reject writes based on an outdated version. Each successful update gives the next reader a new version to work from.
Lease
Coordinate temporary ownership of a shared resource. Callers can renew or release a lease, and fencing tokens help reject work from an earlier owner.
State Machines
Define the states and allowed transitions in a workflow. Guards check the conditions that must hold before a transition can proceed.
Live JSON
Synchronize shared JSON documents across connected clients. Changes reach each subscriber so collaborators can work from the same document.
Geo
Store locations, find nearby places, and check whether a point is inside a boundary. Use these queries for delivery zones, proximity features, or maps.
Auction
Run auctions with bids, reserves, and held funds. Track the leading bidder while releasing holds from bids that no longer lead.
Cart
Reserve inventory while a customer shops and keep the quoted price with their cart. Prepare the cart for checkout or release holds when they expire.
Item
Manage inventory items, containers, and crafting recipes. Track individual items or stacks, and consume the right materials when creating something new.
Loyalty
Award points for qualifying activity and exchange them for rewards. A ledger records what each customer earned and spent.
Subscription
Track access periods, trials, renewals, and grace windows. Check which entitlements are available as a subscription moves through its lifecycle.
Surge Pricing
Calculate a price from an ordered set of rules and the context your app supplies. Combine demand adjustments, discounts, and rounding in one quote.
Waiting Room
Queue people for a resource with limited capacity. Admit them in order and free space as active participants leave or time out.
Liveness
Monitor machines through heartbeats and last-seen times. Find devices or workers that have fallen silent and see when they return.
Agent Registry
Store an agent’s prompt, configuration, and procedures under a stable key. Resolve that record when your application is ready to start the agent.
Attestation
Verify control of an external profile through a challenge and public proof. Keep the resulting verification attached to the identity it confirms.
Moniker
Reserve and claim names within a namespace. Normalize equivalent spellings and prevent two owners from claiming the same handle.
Alias
Connect external names to an internal identity. Resolve a linked handle without making each external system its own user record.
Remote Config
Give environments their own settings while inheriting shared defaults. Target specific audiences and keep a version history of configuration changes.
Webhooks
Send signed events to another system and track each delivery attempt. Failed deliveries can be retried or inspected when they need attention.
Job Queue
Schedule background work for delivery at a later time. Snugnut sends signed webhook requests and handles retries when an attempt fails.
PubSub
Publish an event to the clients subscribed to its channel. Channels connect live parts of an app, with permissions controlling who can publish and listen.
WebSocket
Connect a client to a stream of live events. Subscribe to the updates it needs and keep track of its connection as it comes and goes.
Message Queue
Deliver messages to consumers with time to process each one. An acknowledgement removes a message; a timeout makes it available again.
Inbox
Give each person a persistent inbox with unread counts and read state. Notifications can stay available after the live event has passed.
Presence
Show who is active in a room, document, or other shared space. Heartbeats keep people present, and inactivity moves them toward offline.
Timeline
Record an ordered history of events that can be queried by time. Earlier entries stay intact as new activity is appended.
Comment
Add conversations to a document or activity with threaded replies and reactions. Moderation state stays with the comments your app displays.
Forms
Collect structured submissions against a versioned schema. Support drafts, validation, and review without building a handler for each form.
Poll
Collect ballots and tally a shared decision. Support different voting strategies while keeping one ballot per identity.
Tour
Guide people through meaningful steps in your app and remember their progress. Resume the same tour across devices without repeating completed steps.
Link
Route a short link according to the caller’s context. Control availability and record resolutions as people follow it.
Badge
Render values as SVG badges that can appear in a README or dashboard. Templates control the labels, colors, and data each badge displays.
Promo Code
Issue codes with redemption limits, expiry, and rewards. Track each use so a retried request cannot issue the same reward twice.
Term
Publish versioned terms and record each person’s acceptance. Gate an action on the versions currently required by your app.
KV Store
Store JSON under a key, then read or update it when your app needs it. Use expiry and tags to manage short-lived data and related records.
Blob Storage
Keep files in private storage and share them through temporary links. Uploads, downloads, and storage limits stay behind the same API.
Auth
Manage sign-in, sessions, tokens, and account access. Revoke one session when a device should no longer be able to act for a user.
SCIM Provisioning
Provision organization members from a company directory. Keep membership details and active status in sync as people join or leave the company.
Throttle
Set rate limits for actions in your own app. Spend tokens according to request cost and let the bucket refill over time.
Config
Read server configuration from a cached copy of your configuration source. Refresh the cache when you want the server to pick up new values.
I18N
Store translations by locale, with plural forms and fallback rules for missing messages. Publish related translations together when they are ready.
Service directory