You are browsing as a guest. Sign up (or log in) to start making projects!

35m 23s logged

Devlog 2

I have added a cool patterned background, and also a logo for this tab.

I have also now added the raw search suggestions using duckduckgo api, and a cloudflare worker to get around CORS issue

export default {
    async fetch(request) {
        const url = new URL(request.url);
        const query = url.searchParams.get("q");

        const response = await fetch(
            `https://duckduckgo.com/ac/?q=${encodeURIComponent(query || "")}`,
        );

        return new Response(await response.text(), {
            headers: {
                "Content-Type": "application/json",
                "Access-Control-Allow-Origin": "*",
            },
        });
    },
};

I need to actually build the UI for it now

0
4

Comments 0

No comments yet. Be the first!