MCPcopy Index your code
hub / github.com/aofei/cameron

github.com/aofei/cameron @v1.3.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.3 ↗ · + Follow
6 symbols 20 edges 2 files 3 documented · 50%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cameron

Test codecov Go Report Card Go Reference

An avatar generator for Go.

Fun fact, Cameron is named after James Cameron, the director of Avatar.

Features

Installation

To use this project programmatically, go get it:

go get github.com/aofei/cameron

Quickstart

Create a file named cameron.go:

package main

import (
    "image/png"
    "net/http"

    "github.com/aofei/cameron"
)

func main() {
    http.ListenAndServe("localhost:8080", http.HandlerFunc(identicon))
}

func identicon(rw http.ResponseWriter, req *http.Request) {
    img := cameron.Identicon([]byte(req.RequestURI), 70)
    rw.Header().Set("Content-Type", "image/png")
    png.Encode(rw, img)
}

Then run it:

go run cameron.go

Finally, visit http://localhost:8080 with different paths.

Community

If you have any questions or ideas about this project, feel free to discuss them here.

Contributing

If you would like to contribute to this project, please submit issues here or pull requests here.

When submitting a pull request, please make sure its commit messages adhere to Conventional Commits 1.0.0.

License

This project is licensed under the MIT License.

Core symbols most depended-on inside this repo

hueToRGB
called by 4
cameron.go
Identicon
called by 2
cameron.go
hslToNRGBA
called by 2
cameron.go

Shape

Function 6

Languages

Go100%

Modules by API surface

cameron_test.go3 symbols
cameron.go3 symbols

For agents

$ claude mcp add cameron \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact