initial commit

This commit is contained in:
pablof7z
2025-03-29 09:34:43 +00:00
commit 6d0e5a8e79
38 changed files with 2934 additions and 0 deletions

25
lib/types/index.ts Normal file
View File

@@ -0,0 +1,25 @@
import type { NDKUserProfile } from "@nostr-dev-kit/ndk";
export type UserEntry = {
profile: NDKUserProfile;
data: string;
};
export interface FindSnippetsParams {
limit?: number;
since?: number;
until?: number;
authors?: string[];
languages?: string[];
tags?: string[];
}
export type CodeSnippet = {
id: string;
title: string;
code: string;
language: string;
pubkey: string;
createdAt: number;
tags: string[];
};