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/$%7Burl%7D?q=api&page=93&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 12643 results for "api"(2328ms)

testtownieindex.ts2 matches

@charmaineUpdated 1 week ago
20createTables().catch(console.error);
21
22// API routes
23app.route("/api", postRoutes);
24
25// Serve static files

testtownieindex.tsx2 matches

@charmaineUpdated 1 week ago
37 async function fetchPosts() {
38 try {
39 const response = await fetch('/api/posts');
40 if (!response.ok) {
41 throw new Error('Failed to fetch posts');
86
87 try {
88 const response = await fetch(`/api/posts/${slug}`);
89 if (response.status === 404) {
90 navigate('/not-found');

testtownieindex.html1 match

@charmaineUpdated 1 week ago
9 <script src="https://esm.sh/highlight.js@11.9.0" crossorigin></script>
10 <link rel="stylesheet" href="https://esm.sh/highlight.js@11.9.0/styles/github.css">
11 <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+Pro:wght@300;400;600&display=swap">
12 <script src="https://esm.town/v/std/catch"></script>
13 <style>

testtownietypes.ts3 matches

@charmaineUpdated 1 week ago
31
32/**
33 * API response for posts list
34 */
35export interface PostsResponse {
39
40/**
41 * API response for a single post
42 */
43export interface PostResponse {
46
47/**
48 * API response for tags list
49 */
50export interface TagsResponse {

testtownieREADME.md1 match

@charmaineUpdated 1 week ago
8- Markdown support for blog posts
9- SQLite database for content storage
10- API endpoints for managing blog content
11- Beautiful typography and reading experience
12
413 // Update todo status
414 try {
415 const response = await fetch('/api/todos/' + todoId, {
416 method: 'PUT',
417 headers: {
671 try {
672 // Submit log data
673 const response = await fetch('/api/log', {
674 method: 'POST',
675 headers: {
84 status: "pending",
85 priority: 3,
86 notes: "Consider a micro-SaaS or API that demonstrates your skills"
87 }
88 ];

CareerCoach20Dayapp.ts3 matches

@prashamtrivediUpdated 1 week ago
22
23// Mount controllers
24app.route('/api/log', logEntryController);
25app.route('/api/todos', todoController);
26app.route('/api/leads', leadController);
27app.route('/', dashboardController);
28
12/**
13 * Get all leads, optionally filtered by status
14 * GET /api/leads
15 * GET /api/leads?status=new
16 */
17leadController.get('/', async (c) => {
35/**
36 * Get lead pipeline summary
37 * GET /api/leads/pipeline
38 */
39leadController.get('/pipeline', async (c) => {
56/**
57 * Create a new lead
58 * POST /api/leads
59 */
60leadController.post('/', async (c) => {
101/**
102 * Update an existing lead
103 * PUT /api/leads/:id
104 */
105leadController.put('/:id', async (c) => {
14/**
15 * Handle daily log entries
16 * POST /api/log
17 */
18logEntryController.post('/', async (c) => {

vapi-minutes-db1 file match

@henrywilliamsUpdated 8 hours ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 10 hours ago
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com