Skip to content

Repository files navigation

Lucky Logo Lucky-Logo Logo

Logo search, if you are feeling lucky! Or just want to embed logos in another website without doing any work.

Running

The site now runs as an Astro app deployed to Cloudflare Workers.

You need:

  • Node.js and npm
  • Wrangler via the project dependencies

Install dependencies and start local development:

npm install
npm run dev

You can also use ./run.sh, which now delegates to npm run dev.

Cloudflare Configuration

The Worker configuration lives in wrangler.jsonc.

This project does not use Astro sessions or a session KV binding.

For local development, create a .dev.vars file for bindings and secrets such as:

FORCE_HOST=
GKG_ACCESS_TOKEN=
GKG_LOCATION=global
GKG_PROJECT_ID=
LOGODEV_PUBLIC_KEY=
BUILD_COMMIT=

For deployed environments, set sensitive values with Wrangler secrets:

wrangler secret put GKG_ACCESS_TOKEN
wrangler secret put GKG_PROJECT_ID

Deploy with:

npm run deploy

Usage

I'm running this server for free at Cloudflare. You can use it for light non-commercial stuff.

If it starts costing me money, it will go away. Or worse.

Options

Google Knowledge Graph

To get results from the Google Knowledge Graph, you need to enable the API and set the environment variables:

  • GKG_ACCESS_TOKEN: run gcloud auth print-access-token
  • GKG_PROJECT_ID: configured in Google Cloud
  • GKG_LOCATION: always "global"

License

AGPLv3

Credits

Cloudflare Git Github Google Knowledge Graph Astro NodePing npm Pico CSS TopTal TypeScript VectorLogoZone