AnnouncementsIntroducing Arkoren

    Menu
    Introducing Arkoren

    Less framework.
    More Go.

    Start with the standard library. Add only what you need. Your architecture, your dependencies, your decisions.

    Start with one package. No CLI or generated project required.

    Built to work with AI agents

    Coherence without the takeover.

    A toolkit, not a framework.

    Libraries your application calls. Adopt one package or compose a service. The architecture stays in plain Go, where you can read it. Should I choose Arkoren?

    The system, in pieces

    A toolkit that takes
    the shape of your app.

    Start with one capability. Add another when the work calls for it. Your domain is the center—not a framework’s application model.

    Your application

    Your domain.
    Your composition root.

    Keep your types, handlers, and business rules. Pass dependencies explicitly to the code that needs them.

    net/httplog/slogcontext

    Chosen drivers

    Add the backend.
    Not every backend.

    Vendor integrations live in separate modules. Core has no third-party dependencies; it uses the standard library and Arkoren’s own foundations.

    Choose your infrastructure

    Inside the toolkit

    Your code makes the connections.

    Familiar building blocks. Focused libraries. An application that stays yours.

    Drag to orbit · hover to explore
    The logo becomes a physical instrument: independent foundations, focused Core libraries and your application above. The three bands describe ownership, not mandatory runtime layers. Vendor drivers remain separate modules selected by your app.

    Build / start with what you know

    Your first handler.
    Still just Go.

    Keep standard HTTP requests and responses. Return errors to the router; it renders them centrally as Problem Details.

    Add typed validation, authentication, plain-Go authorization, browser protections, HTML, and SSE as your application grows.

    Start with the quickstart
    router.goRoute excerpt
    type Greeting struct {
    	Name string `json:"name"`
    }
    
    routes.Post("/hello", func(w http.ResponseWriter, r *http.Request) error {
    	input, err := request.JSON[Greeting](r, request.Strict())
    	if err != nil {
    		// The router renders invalid JSON as a 400 Problem Details response.
    		return err
    	}
    
    	return response.JSON(w, http.StatusOK, map[string]string{
    		"message": "Hello, " + input.Name + "!",
    	})
    })
    Typed JSON in, JSON out. Malformed input and unknown fields return errors to the router.

    Test / prove the behavior

    Keep the code.
    Replace the dependency.

    Use memory drivers for local state and recording fakes for outbound work. Test the real facade without starting a broker or making an external request.

    Each service contract also ships a conformance suite to check drivers against shared rules.

    Test with recording fakes
    signup_test.goApplication-level test
    func TestRegisterSendsWelcome(t *testing.T) {
    	t.Parallel()
    
    	fake := queuetest.New()
    	signup := NewSignup(queue.NewDispatcher(fake))
    
    	if err := signup.Register(t.Context()); err != nil {
    		t.Fatal(err)
    	}
    	fake.AssertDispatchedCount(t, Welcome, 1)
    }
    NewSignup and Welcome belong to your app. This proves dispatch, not email delivery.

    Run / choose the infrastructure

    One interface,
    many drivers.

    Your application calls a facade. A driver connects it to the backend. Change the wiring—not the boundary your business logic depends on.

    Start in processMemory cache
    store := cache.New(memorycache.New())
    Choose shared infrastructureRedis cache
    driver := rediscache.New(func(store *rediscache.Builder) {
    	store.Addr("cache:6379")
    })
    store := cache.New(driver)

    Same facade. Same application call.

    home := cache.NewKey[string]("greetings.home")
    
    err := store.Put(ctx, home, "hello")

    Own the process lifetime.

    Register startup, cleanup, and readiness checks explicitly. The application lifecycle coordinates probes and graceful shutdown.

    Follow the lifecycle ↗
    Composition excerptRedis lifecycle
    app := application.New()
    err := app.Run(ctx, func(compose *application.Composer) {
    	compose.Cleanup(driver.Stop)
    	compose.Startup(driver.Start)
    	compose.Check("cache", driver.Ping)
    })

    These focused excerpts assume an operation context named ctx; handle returned errors. Run waits for cancellation or runner completion, then runs cleanup. Review durability, capabilities, and lifecycle when changing drivers. Native clients stay accessible. See imports and complete wiring.

    Across service calls. SQL transactions travel through context; nested transactions use savepoints. Compose a transaction ↗

    Across process boundaries. Opt into vendor-neutral telemetry and trace propagation through queues and broadcasts. Choose telemetry ↗

    Inspect / operators & agents

    A running service.
    Something to go on.

    Expose selected health, readiness, routes, and bounded traces, logs, and metrics as protected MCP tools. Operators and agents discover the same catalog.

    Attach capture before startup and publish only the tools you intend to expose. Retained records are evidence, not a complete history.

    Publish selected diagnostics
    Operator terminalCommand examples

    First connect and authenticate the CLI. These commands assume default diagnostic groups.

    # Discover the actual catalog
    arkoren tools --json
    
    # Continue only if the wait succeeds
    arkoren app:ready --wait --timeout 30s
    
    # Inspect retained failed traces
    arkoren telemetry:traces --status error --since 5m

    Failed waits exit nonzero. Actions are not automatically replayed.

    Context to build. Tools to use.

    AI Ready.
    Built in by design.

    Give your AI coding agent the same guides you read. Expose selected application operations as typed Model Context Protocol (MCP) tools. Two different interfaces, with your architecture and access policies still yours.

    For the coding agent

    The same references you read.

    The bundled skill includes guides, examples, pitfalls, and canonical API links. The CLI installs it offline; local edits block managed updates. Your AGENTS.md remains yours.

    Keep the CLI’s documentation snapshot aligned with your modules. Discovery varies by agent; point it at the installed skill when needed.

    For the runtime assistant

    Your handlers. A chosen tool surface.

    Define immutable, typed MCP tools without a protocol SDK in your application logic. Register them through an optional HTTP adapter that validates input and encoded output without replaying handlers.

    Authentication, capability availability, and resource authorization stay application-owned. Native SDK registrations are outside the managed checks.

    Bring your coding agentOffline agent skill

    With the Arkoren CLI installed, run from your project root. The guides are copied to .agents/skills/arkoren/; your dependencies and AGENTS.md stay unchanged.

    arkoren skills install

    Start where you are

    Add a package.
    Keep your application.

    Add Arkoren to your existing Go application. Keep your router, startup code, and layout. No CLI or generated service required.

    Start in your terminalGo 1.27+

    Run beside your existing go.mod.

    go get arkoren.dev/core

    Follow the installation guide to add one capability at a time. Import only the packages you need; your application keeps its own entry point.

    Add to your project

    Open a bulk documentation archive?

    This file contains every guide in its scope, not API declarations. Loading it all into an agent can exhaust its context window and increase processing time and cost. For coding tasks, start with the index and read only the relevant pages.

    Use the full archive for offline indexing, bulk processing, or deliberate large-context use.

    Browse the index instead
    Open archive