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/image-url.jpg%20%22Optional%20title%22?q=database&page=264&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 7535 results for "database"(1222ms)

figma-variables-managerui.html3 matches

@humblโ€ขUpdated 3 weeks ago
33
34 <div class="form-group">
35 <label for="notion-database-id">Database ID</label>
36 <input type="text" id="notion-database-id" placeholder="Enter Notion database ID">
37 <small>The ID of the database containing your variables.</small>
38 </div>
39

figma-variables-managernotion.ts7 matches

@humblโ€ขUpdated 3 weeks ago
8 */
9export async function syncVariablesFromNotion(
10 databaseId: string,
11 apiKey: string,
12 mappingConfig?: MappingConfig
13): Promise<VariableData[]> {
14 // Validate inputs
15 if (!databaseId) throw new Error('Notion database ID is required');
16 if (!apiKey) throw new Error('Notion API key is required');
17
18 try {
19 // Query the Notion database
20 const data = await queryNotionDatabase(databaseId, apiKey);
21
22 // Use default mapping if not provided
32
33/**
34 * Query a Notion database
35 */
36async function queryNotionDatabase(databaseId: string, apiKey: string) {
37 const response = await fetch(`https://api.notion.com/v1/databases/${databaseId}/query`, {
38 method: 'POST',
39 headers: {

figma-variables-managerconstants.ts2 matches

@humblโ€ขUpdated 3 weeks ago
41export interface NotionConfig {
42 apiKey: string;
43 databaseId: string;
44 mappingConfig: MappingConfig;
45}
57 mappingConfig: MappingConfig;
58 // Notion specific
59 databaseId?: string;
60 // Coda specific
61 docId?: string;

figma-variables-managermain.ts2 matches

@humblโ€ขUpdated 3 weeks ago
31 try {
32 figma.notify('Syncing variables from Notion...');
33 const variables = await syncVariablesFromNotion(msg.databaseId, msg.apiKey);
34 await applyVariablesToFigma(variables, msg.mappingConfig);
35 figma.notify('Variables synced successfully!');
38 await figma.clientStorage.setAsync(StorageKeys.CONFIG, {
39 source: 'notion',
40 databaseId: msg.databaseId,
41 mappingConfig: msg.mappingConfig,
42 lastSync: new Date().toISOString()

OpenTownieTODOs.md1 match

@h0aโ€ขUpdated 3 weeks ago
9- [ ] make it one click to branch off like old jp townie demos
10- [ ] opentownie as a pr bot
11- [ ] give it the ability to see its own client-side and server-side logs by building a middleware that shoves them into a SQL light database date and then give it a tool to access them
12- [ ] do a browser use or screenshot thing to give it access to its own visual output
13- [ ] Have it default to creating a new branch off main

OpenTowniethink.ts1 match

@h0aโ€ขUpdated 3 weeks ago
7export const thinkTool = tool({
8 description:
9 "Use the tool to think about something. It will not obtain new information or change the database, but just append the thought to the log. Use it when complex reasoning or some cache memory is needed.",
10 parameters: z.object({
11 thought: z.string().describe("A thought to think about."),

OpenTowniesystem_prompt.txt2 matches

@h0aโ€ขUpdated 3 weeks ago
192```
193โ”œโ”€โ”€ backend/
194โ”‚ โ”œโ”€โ”€ database/
195โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
196โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
252 ```
253
254### Database Patterns
255- Run migrations on startup or comment out for performance
256- Change table names when modifying schemas rather than altering

OpenTowniesend-message.ts1 match

@h0aโ€ขUpdated 3 weeks ago
10 overLimit,
11 startTrackingUsage,
12} from "../database/queries.tsx";
13import {
14 getTextEditorTool,

OpenTowniequeries.tsx1 match

@h0aโ€ขUpdated 3 weeks ago
4import { INFERENCE_CALLS_TABLE, USAGE_TABLE } from "./schema.tsx";
5
6// Eventually we'll have a user database,
7// but in the meantime, we can cache user info in memory
8const userIdCache: { [key: string]: any } = {};

OpenTownie.cursorrules2 matches

@h0aโ€ขUpdated 3 weeks ago
198```
199โ”œโ”€โ”€ backend/
200โ”‚ โ”œโ”€โ”€ database/
201โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
202โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
257 ```
258
259### Database Patterns
260- Run migrations on startup or comment out for performance
261- Change table names when modifying schemas rather than altering

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago