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=api&page=183&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 15231 results for "api"(1666ms)

askSMHI

askSMHIapi0 matches

@ljus•Updated 1 week ago
1import { Hono } from "jsr:@hono/hono";
2import { callWeatherGPT } from "./service";
3
4const app = new Hono();
5app.get("/ask", async (c) => {

PointofSaleindex.ts5 matches

@Lenny254•Updated 1 week ago
36});
37
38// Mount API routes
39app.route("/api/auth", authRoutes);
40app.route("/api/products", productRoutes);
41app.route("/api/sales", salesRoutes);
42app.route("/api/dashboard", dashboardRoutes);
43
44// Mount static routes (must be last)

PointofSaleApp.tsx2 matches

@Lenny254•Updated 1 week ago
49 const verifyToken = async (authToken: string) => {
50 try {
51 const response = await fetch("/api/auth/verify", {
52 headers: {
53 "Authorization": `Bearer ${authToken}`
87 setError(null);
88
89 const response = await fetch("/api/auth/login", {
90 method: "POST",
91 headers: {

PointofSaleUserManagement.tsx1 match

@Lenny254•Updated 1 week ago
29 setSuccess(null);
30
31 const response = await fetch("/api/auth/register", {
32 method: "POST",
33 headers: {

PointofSaleSalesHistory.tsx1 match

@Lenny254•Updated 1 week ago
19 try {
20 setLoading(true);
21 const response = await fetch("/api/sales", {
22 headers: {
23 "Authorization": `Bearer ${token}`

PointofSalePointOfSale.tsx2 matches

@Lenny254•Updated 1 week ago
88 };
89
90 const response = await fetch("/api/sales", {
91 method: "POST",
92 headers: {
120 try {
121 setLoading(true);
122 const response = await fetch("/api/products", {
123 headers: {
124 "Authorization": `Bearer ${token}`

PointofSaleProductList.tsx2 matches

@Lenny254•Updated 1 week ago
34 try {
35 setLoading(true);
36 const response = await fetch("/api/products", {
37 headers: {
38 "Authorization": `Bearer ${token}`
119 };
120
121 const response = await fetch("/api/products", {
122 method: "POST",
123 headers: {

PointofSaleDashboard.tsx1 match

@Lenny254•Updated 1 week ago
16 const fetchStats = async () => {
17 try {
18 const response = await fetch("/api/dashboard/stats", {
19 headers: {
20 "Authorization": `Bearer ${token}`

PointofSaletypes.ts1 match

@Lenny254•Updated 1 week ago
39}
40
41export interface ApiResponse<T> {
42 success: boolean;
43 data?: T;

PointofSaleREADME.md2 matches

@Lenny254•Updated 1 week ago
14## Project Structure
15
16- `/backend` - Server API and database operations
17- `/frontend` - User interface components and pages
18- `/shared` - Shared types and utilities
24## Technologies Used
25
26- Backend: Hono (API framework), SQLite (database)
27- Frontend: React, TailwindCSS
28- Shared: TypeScript for type definitions

HN-fetch-call2 file matches

@ImGqb•Updated 22 hours ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 2 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1