cloudflare-client
prestige
cloudflare-client | prestige | |
---|---|---|
4 | 14 | |
20 | 379 | |
- | - | |
2.6 | 0.0 | |
almost 2 years ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cloudflare-client
-
curl: (60) SSL certificate problem on Cloudflare Container
% docker run --entrypoint /bin/sh -it oznu/cloudflare-ddns:latest -c "curl -vvI https://api.cloudflare.com/user/tokens/verify" | grep -A 8 "Server certificate" * Server certificate: * subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=api.cloudflare.com * start date: May 19 00:00:00 2022 GMT * expire date: May 19 23:59:59 2023 GMT * subjectAltName: host "api.cloudflare.com" matched cert's "api.cloudflare.com" * issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed)
-
Dynamic Subdomain Routing
this might workhttps://api.cloudflare.com/ based on what I found here https://community.cloudflare.com/t/create-a-subdomain-on-cloudflare-automatically/357063/2
-
Triggering Cloudflare Cache Purging with Netlify's Post-Deploy Hooks and a Google Cloud Function in Go
package purger import ( "fmt " "io" "log" "net/http" "strings" "github.com/GoogleCloudPlatform/functions-framework-go/functions" ) func init() { functions.HTTP("PurgeCache", purgeCache) } // httpError logs the error and returns an HTTP error message and code. func httpError(w http.ResponseWriter, err error, msg string, errorCode int) { errorMsg := fmt.Sprintf("%s: %v", msg, err) log.Printf("%s", errorMsg) http.Error(w, errorMsg, errorCode) } func purgeCache(w http.ResponseWriter, r *http.Request) { log.Printf("Received %s from %v", r.Method, r.RemoteAddr) if r.Method == "POST" { body, err := io.ReadAll(r.Body) if err != nil { httpError(w, err, "error reading POST body", http.StatusInternalServerError) return } log.Printf("Request body: %s", body) } // Send POST request to Cloudflare client := &http.Client{} data := `{"purge_everything":true}` req, err := http.NewRequest("POST", "https://api.cloudflare.com/client/v4/zones/ZONE_ID/purge_cache", strings.NewReader(data)) if err != nil { httpError(w, err, "error creating new Request", http.StatusInternalServerError) return } req.Header.Add("Authorization", "Bearer CLOUDFLARE-API-TOKEN") req.Header.Add("Content-Type", "application/json") cloudflareResp, err := client.Do(req) if err != nil { httpError(w, err, "error sending POST request", http.StatusInternalServerError) return } defer cloudflareResp.Body.Close() // Pass cloudflare response to caller cloudflareRespBody, err := io.ReadAll(cloudflareResp.Body) if err != nil { httpError(w, err, "error reading Cloudflare response", http.StatusInternalServerError) return } if cloudflareResp.StatusCode != http.StatusOK { msg := fmt.Sprintf("error non-200 status: %s", cloudflareRespBody) httpError(w, nil, msg, http.StatusInternalServerError) return } log.Printf("Cloudflare response: %s", cloudflareRespBody) _, err = w.Write(cloudflareRespBody) if err != nil { httpError(w, err, "error sending response to client", http.StatusInternalServerError) return } }
-
Cloudflare API Client Library
I've just built a small fetch-based, zero-dependency JavaScript library for Cloudflare API that works in Node.js, Deno, and CF Workers environment — https://github.com/kriasoft/cloudflare-client
prestige
- What is this app?
-
Show HN: Ezy – open-source gRPC client, alternative to Postman and Insomnia
I've not used it, but have heard of Prestige (https://github.com/sharat87/prestige). It bills itself as "A text-based HTTP client in the browser. An interface-less Postman." I hope that helps!
-
14 Essential Developer Tools to 10X Your Productivity 🚀✨
9. prestige
- Hoppscotch: Open-Source Alternative to Postman
-
Postman Now Supports gRPC
Shameless plug: There's also Prestige at https://prestigemad.com, which is very similar but works right in the browser. You can save your files as Gists as well. Templating with variables is also supported with `${}` syntax, like Javascript's template strings.
But gRPC support is not built yet. It's on the roadmap.
- Prestige
-
Awesome-loginless: internet services that don't require logins or registrations
There's also https://prestigemad.com, a text based API testing tool, like Postman. I'm the developer behind it and is open source at https://github.com/sharat87/prestige.
Login not required!
-
httpbin
Hey! I did the same thing, rewrite httpbin in Go, and put it up on https://httpbun.com. I did it because I needed a fast endpoint like httpbin, with a few extras, and with working redirect endpoints. I needed this for testing Prestige. (Sorry for inserting a shameless plug in here, but httpbun and httphub are just so close to each other I couldn't shut up 🙈).
-
Ask HN: Companies of one, what is your tech stack (2021)?
Still early days at https://prestigemad.com (recently discussed at https://news.ycombinator.com/item?id=27412445)
- Backend is a Django project, database is PostgreSQL.
- Frontend powered by Mithril.js and the editor by CodeMirror.
- Hosted on a $5 box on EC2.
- GoatCounter for analytics.
- CloudFlare for DNS, NameCheap for domain.
Also https://httpbun.com
- Backend is a vanilla Go project.
- Frontend is plain HTML and CSS, I don't recall it having any JS at all.
- Hosted on the same $5 box on EC2.
- No analytics (yet).
- CloudFlare for DNS, NameCheap for domain.
It is refreshing to see how much I can squeeze out of a $5 box. I don't intend to stay with EC2 for long, but when its cheap, I'd rather spend my time improving Prestige.
- sharat87/prestige
What are some alternatives?
notion-api-worker - Notion as CMS with easy API access
Hoppscotch - Open source API development ecosystem.
vscode-restclient - REST Client Extension for Visual Studio Code
httpbin - HTTP Request & Response Service, written in Python + Flask.
redirect.center - Redirect domains using DNS only
httpyac - Command Line Interface for *.http and *.rest files. Connect with http, gRPC, WebSocket and MQTT
awesome-no-login-web-apps - 🚀 Awesome (free) web apps that work without login
budibase - Budibase is an open-source low code platform that helps you build internal tools in minutes 🚀
excalidraw - Virtual whiteboard for sketching hand-drawn like diagrams
insomnia - The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
rqlite - The lightweight, distributed relational database built on SQLite.
verb - Organize and send HTTP requests from Emacs