diff --git a/.goreleaser.yml b/.goreleaser.yml index 498c2e2..b0e7480 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -122,7 +122,7 @@ changelog: release: github: owner: gremllm - name: schema + name: lib draft: false prerelease: auto name_template: "Release {{.Tag}}" diff --git a/PROJECT_OVERVIEW.md b/PROJECT_OVERVIEW.md index 5bd9168..51ef104 100644 --- a/PROJECT_OVERVIEW.md +++ b/PROJECT_OVERVIEW.md @@ -397,7 +397,7 @@ Returns: Optimized markdown with product details #### How It Works ``` -schema/ +lib/ ├── cmd/ │ └── libschema/ CGO build target ├── internal/ @@ -414,7 +414,7 @@ package main import "C" import ( - "github.com/gremllm/schema/internal/converter" + "github.com/gremllm/lib/internal/converter" ) //export Convert diff --git a/README.md b/README.md index 7cc62be..b9fc9d9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # LLM Schema -[![Tests](https://github.com/gremllm/schema/actions/workflows/test.yml/badge.svg)](https://github.com/gremllm/schema/actions/workflows/test.yml) -[![Release](https://github.com/gremllm/schema/actions/workflows/release.yml/badge.svg)](https://github.com/gremllm/schema/actions/workflows/release.yml) +[![Tests](https://github.com/gremllm/lib/actions/workflows/test.yml/badge.svg)](https://github.com/gremllm/lib/actions/workflows/test.yml) +[![Release](https://github.com/gremllm/lib/actions/workflows/release.yml/badge.svg)](https://github.com/gremllm/lib/actions/workflows/release.yml) A Go middleware for serving LLM-optimized versions of web content. Instead of forcing LLMs to parse verbose HTML with navigation, ads, and boilerplate, websites can serve token-minimized markdown versions at `.md` URLs. @@ -22,7 +22,7 @@ A Go middleware for serving LLM-optimized versions of web content. Instead of fo ## Project Structure ``` -schema/ +lib/ ├── cmd/ │ ├── server/ # Example HTTP server for testing │ └── libschema/ # CGO library for cross-language support @@ -54,7 +54,7 @@ package main import ( "net/http" - "github.com/gremllm/schema/internal/middleware" + "github.com/gremllm/lib/internal/middleware" ) func main() { diff --git a/cmd/libschema/main.go b/cmd/libschema/main.go index d5b1060..71b173b 100644 --- a/cmd/libschema/main.go +++ b/cmd/libschema/main.go @@ -7,7 +7,7 @@ import "C" import ( "unsafe" - "github.com/gremllm/schema/internal/converter" + "github.com/gremllm/lib/internal/converter" ) //export Convert diff --git a/cmd/server/main.go b/cmd/server/main.go index 7996590..e3d4f6f 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/gremllm/schema/internal/middleware" + "github.com/gremllm/lib/internal/middleware" ) func main() { diff --git a/go.mod b/go.mod index 68f8409..f344847 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,5 @@ -module github.com/gremllm/schema +module github.com/gremllm/lib go 1.25.5 require golang.org/x/net v0.48.0 - -require golang.org/x/text v0.32.0 // indirect diff --git a/go.sum b/go.sum index e87ebd9..481a8d4 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,2 @@ golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= -golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= -golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= diff --git a/internal/middleware/middleware.go b/internal/middleware/middleware.go index dffbb48..1ee359c 100644 --- a/internal/middleware/middleware.go +++ b/internal/middleware/middleware.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "github.com/gremllm/schema/internal/converter" + "github.com/gremllm/lib/internal/converter" ) // responseWriter is a wrapper around http.ResponseWriter that captures the response