Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/...?q=function&page=5&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=function

Returns an array of strings in format "username" or "username/projectName"

Found 30401 results for "function"(1921ms)

Glancerrelated.pages.controller.ts1 match

@lightweight•Updated 9 hours ago
7});
8
9export async function getRelatedPagesFromDatabase(pageId: string) {
10 try {
11 const response = await notion.databases.query({

GlancerpageContents.controller.ts2 matches

@lightweight•Updated 9 hours ago
6});
7
8async function fetchBlockChildren(blockId: string): Promise<any[]> {
9 try {
10 const response = await notion.blocks.children.list({
28}
29
30export async function getPageContents(pageId: string) {
31 try {
32 const response = await notion.blocks.children.list({

GlancerpageID.controller.ts1 match

@lightweight•Updated 9 hours ago
6});
7
8export async function setPageID(data: any) {
9 try {
10 const page = await notion.pages.update({

GlancerpageIcon.controller.ts1 match

@lightweight•Updated 9 hours ago
6});
7
8export async function setPageIcon(pageId: string, iconURL: string) {
9 try {
10 const page = await notion.pages.update({

GlancerdemoURL.controller.ts1 match

@lightweight•Updated 9 hours ago
6});
7
8export async function setDemoURL(pageId: string, url: string) {
9 try {
10 const page = await notion.pages.update({

Glancercobrowse.controller.ts1 match

@lightweight•Updated 9 hours ago
6});
7
8export async function setCobrowse(pageId: string, cobrowse: boolean) {
9 try {
10 const page = await notion.pages.update({

Glanceraction.controller.ts1 match

@lightweight•Updated 9 hours ago
6});
7
8export async function setAction(data: any) {
9 try {
10 const page = await notion.pages.create({

web_HRiYhiIBxKmain.tsx1 match

@dhvanil•Updated 9 hours ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

Glancerpage.controller.ts1 match

@lightweight•Updated 9 hours ago
7
8// generic controller for a Notion database page
9export async function getPage(pageId: string) {
10 try {
11 const page = await notion.pages.retrieve({

Glancerdatabase.controller.ts1 match

@lightweight•Updated 9 hours ago
6});
7
8export async function getDatabase(databaseId: string) {
9 // get database
10 try {
tuna

tuna9 file matches

@jxnblk•Updated 1 week ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
lost1991
import { OpenAI } from "https://esm.town/v/std/openai"; export default async function(req: Request): Promise<Response> { if (req.method === "OPTIONS") { return new Response(null, { headers: { "Access-Control-Allow-Origin": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.