close
Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A prototype of a public network of APIs

A mini world-wide web of machines that serve public API specs rather than html pages.

Synthetic web

First, start the synthetic web:

go run ./cmd/www/main.go --servers ./demo/synthetic_servers/v2 --max-num-servers 5

For this demo, we'll only spin up 5 servers. See ./endpoints.json for the list of local servers.

Then, build an index of the synthetic web:

go run ./cmd/index --endpoints-path ./endpoints.json --max-concurrency 16 --output-path ./synthetic-web-index.json

To run an agent on the synthetic web:

go run ./cmd/agent --search-index ./synthetic-web-index.json --query "Where's the nearest amc theater" --max-concurrency 16

Search

To run a query against a search index:

go run ./cmd/search --query "Check my next allstate insurance checkup" --index ./demo/test-index.json

You can use the demo index in ./demo/test-index.json or build your own search index.

About

A prototype of a public network of APIs

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages