file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
src/popup/index.html
HTML
<!doctype html> <html> <head> <title>Vimmit Keybindings</title> <link rel="stylesheet" href="popup.css" /> </head> <body> <div class="container"> <header> <h1>Vimmit Keybindings</h1> </header> <main> <ul id="keybindings-list"></ul> </main> <footer> ...
AbhayVAshokan/vimmit
0
Vim-like keyboard navigation for Reddit. Browse posts and comments with 'j' and 'k', upvote/downvote with 'u'/'d', and more.
JavaScript
AbhayVAshokan
Abhay V Ashokan
gitlab
src/popup/popup.css
CSS
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; width: 250px; background-color: #f9f9f9; color: #333; } .container { padding: 15px; } header h1 { font-size: 16px; margin: 0 0 10px 0; text-align: center; color: #111; } #ke...
AbhayVAshokan/vimmit
0
Vim-like keyboard navigation for Reddit. Browse posts and comments with 'j' and 'k', upvote/downvote with 'u'/'d', and more.
JavaScript
AbhayVAshokan
Abhay V Ashokan
gitlab
src/popup/popup.js
JavaScript
document.addEventListener("DOMContentLoaded", function () { const keybindingsList = document.getElementById("keybindings-list"); const keybindings = { j: "Next Post/Comment", k: "Previous Post/Comment", u: "Upvote", d: "Downvote", c: "Add a comment", Enter: "Select/Open Post", n: "New P...
AbhayVAshokan/vimmit
0
Vim-like keyboard navigation for Reddit. Browse posts and comments with 'j' and 'k', upvote/downvote with 'u'/'d', and more.
JavaScript
AbhayVAshokan
Abhay V Ashokan
gitlab
src/components/context/ContextPanel.tsx
TypeScript (TSX)
import { useMemo } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { ArrowRight, Copy, CheckCircle } from 'lucide-react'; import { useState } from 'react'; import { useSimulationStore } from '../../stores/simulationStore'; import { useTopologyStore } from '../../stores/topologyStore'; impo...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/context/index.ts
TypeScript
export { ContextPanel } from './ContextPanel';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/controls/ControlPanel.tsx
TypeScript (TSX)
import { useCallback } from 'react'; import { motion } from 'framer-motion'; import { Play, Pause, Square, SkipForward, RotateCcw, Gauge, Clock, } from 'lucide-react'; import * as Slider from '@radix-ui/react-slider'; import { useSimulationStore } from '../../stores/simulationStore'; import { useTopologyS...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/controls/index.ts
TypeScript
export { ControlPanel } from './ControlPanel';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/inspector/SpanInspector.tsx
TypeScript (TSX)
import { useMemo } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { X, Clock, Tag, Activity, AlertCircle, CheckCircle, Info, ChevronRight, Copy, } from 'lucide-react'; import * as Tabs from '@radix-ui/react-tabs'; import { useSimulationStore } from '../../stores/simulati...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/inspector/index.ts
TypeScript
export { SpanInspector } from './SpanInspector';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/templates/TemplateSelector.tsx
TypeScript (TSX)
import { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { LayoutTemplate, ChevronDown, Sparkles, Zap, Rocket, } from 'lucide-react'; import { TOPOLOGY_TEMPLATES, type TopologyTemplate } from '../../data/templates'; import { useTopologyStore } from '../../stores/topolo...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/templates/index.ts
TypeScript
export { TemplateSelector } from './TemplateSelector';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/timeline/TraceTimeline.tsx
TypeScript (TSX)
import { useMemo, useRef, useEffect, useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { useSimulationStore } from '../../stores/simulationStore'; import { useTopologyStore } from '../../stores/topologyStore'; import type { Span, SpanKind } from '../../types'; // Colors for diffe...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/timeline/index.ts
TypeScript
export { TraceTimeline } from './TraceTimeline';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/topology/ServiceConfigPanel.tsx
TypeScript (TSX)
import { useState } from 'react'; import { motion } from 'framer-motion'; import { X, Settings, Zap, AlertTriangle, Clock } from 'lucide-react'; import * as Slider from '@radix-ui/react-slider'; import * as Select from '@radix-ui/react-select'; import type { Service, ServiceType } from '../../types'; interface Service...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/topology/ServiceNode.tsx
TypeScript (TSX)
import { memo } from 'react'; import { Handle, Position, type NodeProps } from '@xyflow/react'; import { motion } from 'framer-motion'; import { Server, Database, Globe, MessageSquare, Shield, } from 'lucide-react'; import type { Service, ServiceType } from '../../types'; // Icons for each service type const...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/topology/ServiceToolbar.tsx
TypeScript (TSX)
import { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { Plus, Server, Database, Globe, MessageSquare, Shield, ChevronDown, } from 'lucide-react'; import type { ServiceType } from '../../types'; interface ServiceToolbarProps { onAddService: (type: ServiceType)...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/topology/TopologyEditor.tsx
TypeScript (TSX)
import { useCallback, useMemo, useState } from 'react'; import { ReactFlow, Background, Controls, MiniMap, addEdge, useNodesState, useEdgesState, type Connection as FlowConnection, type Edge, type Node, type OnNodesChange, type OnEdgesChange, type OnConnect, MarkerType, Panel, } from '@xyf...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/components/topology/index.ts
TypeScript
export { TopologyEditor } from './TopologyEditor'; export { ServiceNode } from './ServiceNode'; export { ServiceToolbar } from './ServiceToolbar'; export { ServiceConfigPanel } from './ServiceConfigPanel';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/data/templates.ts
TypeScript
import { v4 as uuidv4 } from 'uuid'; import type { Topology, Service, Connection } from '../types'; export interface TopologyTemplate { id: string; name: string; description: string; category: 'basic' | 'intermediate' | 'advanced'; topology: Topology; } // Helper to create a service with default config func...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/routeTree.gen.ts
TypeScript
/* eslint-disable */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // This file was automatically generated by TanStack Router. // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from bei...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/router.tsx
TypeScript (TSX)
import { createRouter } from '@tanstack/react-router' // Import the generated route tree import { routeTree } from './routeTree.gen' // Create a new router instance export const getRouter = () => { const router = createRouter({ routeTree, context: {}, scrollRestoration: true, defaultPreloadStaleTim...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/routes/__root.tsx
TypeScript (TSX)
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router' import appCss from '../styles.css?url' export const Route = createRootRoute({ head: () => ({ meta: [ { charSet: 'utf-8', }, { name: 'viewport', content: 'width=device-width, initial-scale=1',...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/routes/index.tsx
TypeScript (TSX)
import { createFileRoute } from '@tanstack/react-router'; import { useState } from 'react'; import { AnimatePresence } from 'framer-motion'; import { PanelLeftClose, PanelLeftOpen, PanelRightClose, PanelRightOpen, } from 'lucide-react'; import { TopologyEditor } from '../components/topology'; import { TraceTim...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/simulation/SimulationEngine.ts
TypeScript
import { useEffect, useRef, useCallback } from 'react'; import { useTopologyStore } from '../stores/topologyStore'; import { useSimulationStore } from '../stores/simulationStore'; import { formatTraceparent } from '../types/trace'; import type { Service, Connection, Span, SpanKind, TraceContext, } from '../ty...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/simulation/index.ts
TypeScript
export { SimulationEngine, useSimulationEngine } from './SimulationEngine';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/stores/index.ts
TypeScript
export { useTopologyStore } from './topologyStore'; export { useSimulationStore } from './simulationStore';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/stores/simulationStore.ts
TypeScript
import { create } from 'zustand'; import { v4 as uuidv4 } from 'uuid'; import type { Span, SpanKind, SpanStatus, TraceContext, SimulationState, SimulationStatus, PendingRequest, ContextPropagationEvent, SimulationConfig, DEFAULT_SIMULATION_CONFIG, } from '../types'; import { formatTraceparent } from...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/stores/topologyStore.ts
TypeScript
import { create } from 'zustand'; import { persist } from 'zustand/middleware'; import { v4 as uuidv4 } from 'uuid'; import type { Service, Connection, Topology, ServiceType, Protocol, DEFAULT_SERVICE_CONFIG, DEFAULT_CONNECTION_CONFIG, } from '../types'; interface TopologyState { // Current topology ...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/styles.css
CSS
@import "tailwindcss"; * { box-sizing: border-box; } html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -webk...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/types/index.ts
TypeScript
// Re-export all types export * from './topology'; export * from './trace'; export * from './simulation';
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/types/simulation.ts
TypeScript
// Simulation state and event types import type { Span, TraceContext } from './trace'; export type SimulationStatus = 'idle' | 'running' | 'paused' | 'complete'; export interface PendingRequest { id: string; traceContext: TraceContext; sourceServiceId: string; targetServiceId: string; connectionId: string;...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/types/topology.ts
TypeScript
// Topology data models for the distributed tracing simulator export type ServiceType = 'api-gateway' | 'service' | 'database' | 'queue' | 'external'; export type Protocol = 'http' | 'grpc' | 'amqp' | 'database'; export interface ServiceConfig { latencyMs: { min: number; max: number }; errorRate: number; // 0-1 ...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
src/types/trace.ts
TypeScript
// Trace data models aligned with OpenTelemetry export type SpanKind = 'CLIENT' | 'SERVER' | 'INTERNAL' | 'PRODUCER' | 'CONSUMER'; export type SpanStatusCode = 'UNSET' | 'OK' | 'ERROR'; export interface SpanStatus { code: SpanStatusCode; message?: string; } export interface SpanEvent { name: string; timesta...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
vite.config.ts
TypeScript
import { defineConfig } from 'vite' import { devtools } from '@tanstack/devtools-vite' import { tanstackStart } from '@tanstack/react-start/plugin/vite' import viteReact from '@vitejs/plugin-react' import viteTsConfigPaths from 'vite-tsconfig-paths' import tailwindcss from '@tailwindcss/vite' import { nitro } from 'nit...
AbhiPrasad/distributed-tracing-simulator
0
An interactive educational tool that visualizes how distributed traces propagate through microservices. Users can build service topologies, run simulations, and observe trace context (W3C Trace Context format) flowing between services in real-time.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
config/tsdown.config.base.ts
TypeScript
import { defineConfig } from 'tsdown'; /** * Base tsdown configuration for all packages in the monorepo */ export const baseConfig = defineConfig({ entry: ['src/index.ts'], format: ['esm', 'cjs'], dts: true, clean: true, unbundle: true, exports: true, }); export default baseConfig;
AbhiPrasad/evergreen-ai
0
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
globalSetup.ts
TypeScript
import { globalSetup } from '@mastra/evals'; export default function setup() { globalSetup(); }
AbhiPrasad/evergreen-ai
0
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
testSetup.ts
TypeScript
import { beforeAll } from 'vitest'; import { attachListeners } from '@mastra/evals'; beforeAll(async () => { await attachListeners(); });
AbhiPrasad/evergreen-ai
0
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
vitest.config.ts
TypeScript
import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { globals: true, environment: 'node', globalSetup: './globalSetup.ts', setupFiles: ['./testSetup.ts'], include: ['packages/**/*.{test,spec}.{js,ts}'], exclude: ['node_modules', 'dist', '**/dist'], coverage: ...
AbhiPrasad/evergreen-ai
0
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/db/index.ts
TypeScript
import { drizzle } from "drizzle-orm/d1"; import * as schema from "./schema.js"; export function createDb(d1: D1Database) { return drizzle(d1, { schema }); } export type Database = ReturnType<typeof createDb>; export * from "./schema.js";
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/db/schema.ts
TypeScript
import { sqliteTable, text, integer, real, index } from "drizzle-orm/sqlite-core"; // ============================================================================ // Auth Tables (better-auth compatible) // ============================================================================ export const users = sqliteTable( ...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/index.ts
TypeScript
import { Hono } from "hono"; import { cors } from "hono/cors"; import { logger } from "hono/logger"; import { prettyJSON } from "hono/pretty-json"; import { secureHeaders } from "hono/secure-headers"; import type { Env, Variables } from "./types.js"; import { scansRouter } from "./routes/scans.js"; import { scriptsRout...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/lib/auth.ts
TypeScript
import { betterAuth } from "better-auth"; import { drizzleAdapter } from "better-auth/adapters/drizzle"; import { drizzle } from "drizzle-orm/d1"; import * as schema from "../db/schema.js"; import type { Env } from "../types.js"; export function createAuth(env: Env) { const db = drizzle(env.DB, { schema }); // Bu...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/middleware/auth.ts
TypeScript
import { createMiddleware } from "hono/factory"; import { createAuth } from "../lib/auth.js"; import type { Env, Variables } from "../types.js"; type UserRole = "user" | "editor" | "admin"; /** * Middleware to optionally attach user/session to context if authenticated */ export const optionalAuth = createMiddleware...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/routes/admin/index.ts
TypeScript
import { Hono } from "hono"; import type { Env, Variables } from "../../types.js"; import { adminPatternsRouter } from "./patterns.js"; import { adminUsersRouter } from "./users.js"; export const adminRouter = new Hono<{ Bindings: Env; Variables: Variables; }>(); adminRouter.route("/patterns", adminPatternsRouter...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/routes/admin/patterns.ts
TypeScript
import { Hono } from "hono"; import { z } from "zod"; import { zValidator } from "@hono/zod-validator"; import type { Env, Variables } from "../../types.js"; import { PatternService, type PatternInput, type PatternFilters } from "../../services/pattern.js"; import { createDb } from "../../db/index.js"; import { require...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/routes/admin/users.ts
TypeScript
import { Hono } from "hono"; import { z } from "zod"; import { zValidator } from "@hono/zod-validator"; import { eq } from "drizzle-orm"; import type { Env, Variables } from "../../types.js"; import { createDb } from "../../db/index.js"; import { users } from "../../db/schema.js"; import { requireAdmin } from "../../mi...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/routes/auth.ts
TypeScript
import { Hono } from "hono"; import { createAuth } from "../lib/auth.js"; import type { Env, Variables } from "../types.js"; const authRouter = new Hono<{ Bindings: Env; Variables: Variables }>(); // Mount better-auth handler for all auth routes authRouter.all("/*", async (c) => { const auth = createAuth(c.env); ...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/routes/health.ts
TypeScript
import { Hono } from "hono"; import type { Env, Variables } from "../types.js"; export const healthRouter = new Hono<{ Bindings: Env; Variables: Variables; }>(); healthRouter.get("/", async (c) => { const checks: Record<string, "ok" | "error"> = { api: "ok", database: "ok", cache: "ok", }; // C...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/routes/scans.ts
TypeScript
import { Hono } from "hono"; import { validator } from "hono/validator"; import type { Env, Variables } from "../types.js"; import type { CreateScanRequest, ScanResult, ScanStatus } from "@vela/shared"; import { ScanService } from "../services/scan.js"; import { CacheService } from "../services/cache.js"; import { Rate...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/routes/scripts.ts
TypeScript
import { Hono } from "hono"; import type { Env, Variables } from "../types.js"; import type { ScriptCategory } from "@vela/shared"; import { PatternService } from "../services/pattern.js"; import { createDb } from "../db/index.js"; export const scriptsRouter = new Hono<{ Bindings: Env; Variables: Variables; }>(); ...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/services/browser.ts
TypeScript
import type { NetworkRequest, ResourceType } from "@vela/shared"; interface PuppeteerRequest { url: () => string; resourceType: () => string; method: () => string; } interface PuppeteerResponse { url: () => string; status: () => number; headers: () => Record<string, string>; } interface PageMetrics { J...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/services/cache.ts
TypeScript
import type { KVNamespace } from "@cloudflare/workers-types"; import type { ScanResult } from "@vela/shared"; const CACHE_TTL = 60 * 60 * 24; // 24 hours const URL_CACHE_TTL = 60 * 60; // 1 hour for URL -> scan ID mapping export class CacheService { constructor(private kv: KVNamespace) {} /** * Get a cached s...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/services/pattern.ts
TypeScript
import { eq, like, or, and } from "drizzle-orm"; import type { ScriptCategory } from "@vela/shared"; import type { Database, KnownScript, NewKnownScript } from "../db/index.js"; import { knownScripts } from "../db/schema.js"; import { matchesPattern } from "../utils/url.js"; /** * Result of matching a URL against the...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/services/rate-limit.ts
TypeScript
import type { KVNamespace } from "@cloudflare/workers-types"; interface RateLimitEntry { count: number; resetAt: number; } const WINDOW_SIZE = 60; // 1 minute window const MAX_REQUESTS = 10; // 10 requests per minute const MIN_TTL = 60; // Cloudflare KV minimum TTL export class RateLimitService { constructor(p...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/services/scan.ts
TypeScript
import type { D1Database } from "@cloudflare/workers-types"; import type { ScanResult, ScanStatus, ThirdPartyScript, ScriptPerformanceProfile, NetworkRequest, ScanSummary, Grade, Issue, } from "@vela/shared"; import { BrowserService } from "./browser.js"; import { PatternService } from "./pattern.js"; i...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/types.ts
TypeScript
import type { D1Database, KVNamespace } from "@cloudflare/workers-types"; import type { User, Session } from "./db/schema.js"; /** * Cloudflare Worker environment bindings */ export interface Env { // D1 Database DB: D1Database; // KV Namespaces SCAN_CACHE: KVNamespace; RATE_LIMIT: KVNamespace; // Brow...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/api/src/utils/url.ts
TypeScript
/** * Convert a URL pattern with wildcards to a RegExp * Supports * as wildcard for any characters */ export function patternToRegex(pattern: string): RegExp { const escaped = pattern .replace(/[.+?^${}()|[\]\\]/g, "\\$&") // Escape special regex chars except * .replace(/\*/g, ".*"); // Convert * to .* r...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/web/astro.config.mjs
JavaScript
import { defineConfig } from "astro/config"; import cloudflare from "@astrojs/cloudflare"; import tailwind from "@astrojs/tailwind"; export default defineConfig({ output: "server", adapter: cloudflare({ platformProxy: { enabled: true, }, }), integrations: [tailwind()], vite: { ssr: { ...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/web/src/env.d.ts
TypeScript
/// <reference path="../.astro/types.d.ts" /> /// <reference types="astro/client" /> interface ImportMetaEnv { readonly API_URL: string; readonly PUBLIC_API_URL: string; } interface ImportMeta { readonly env: ImportMetaEnv; } // Extend Astro locals with auth data declare namespace App { interface Locals { ...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/web/src/lib/auth-client.ts
TypeScript
import { createAuthClient } from "better-auth/client"; const API_URL = import.meta.env.PUBLIC_API_URL ?? "http://localhost:8787"; export const authClient = createAuthClient({ baseURL: API_URL, }); export type Session = typeof authClient.$Infer.Session; export type User = Session["user"];
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/web/src/middleware.ts
TypeScript
import type { MiddlewareHandler } from "astro"; const API_URL = import.meta.env.API_URL ?? "http://localhost:8787"; export const onRequest: MiddlewareHandler = async (context, next) => { const { pathname } = context.url; // Initialize locals context.locals.user = null; context.locals.session = null; // Tr...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/web/src/styles/global.css
CSS
@tailwind base; @tailwind components; @tailwind utilities; @layer base { html { scroll-behavior: smooth; } body { @apply bg-cyber-black text-gray-100; font-feature-settings: "liga" 1, "calt" 1; } /* Cyberpunk scrollbar */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
apps/web/tailwind.config.mjs
JavaScript
/** @type {import('tailwindcss').Config} */ export default { content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], theme: { extend: { colors: { // Blade Runner 2049 cyberpunk palette cyber: { black: "#050508", darker: "#0a0a0f", dark: "#12121a"...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
migrations/0001_create_tables.sql
SQL
-- Scans table: stores scan jobs and results CREATE TABLE IF NOT EXISTS scans ( id TEXT PRIMARY KEY, url TEXT NOT NULL, status TEXT DEFAULT 'queued' CHECK (status IN ('queued', 'running', 'completed', 'failed')), created_at DATETIME DEFAULT CURRENT_TIMESTAMP, completed_at DATETIME, grade TEXT CHECK (grade I...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
migrations/0002_auth_and_patterns.sql
SQL
-- ============================================================================ -- Auth Tables (better-auth compatible) -- ============================================================================ -- Users table CREATE TABLE IF NOT EXISTS users ( id TEXT PRIMARY KEY, email TEXT NOT NULL UNIQUE, email_verified...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
scripts/manage-patterns.ts
TypeScript
#!/usr/bin/env tsx /** * CLI script for managing script patterns in D1 database * * Usage: * pnpm patterns list [--category <cat>] [--local] * pnpm patterns get <id> [--local] * pnpm patterns add --id <id> --name <name> --vendor <vendor> --category <cat> --url-patterns <patterns> [--local] * pnpm pattern...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
scripts/seed-admin.ts
TypeScript
#!/usr/bin/env tsx /** * CLI script for seeding an admin user * * Usage: * pnpm admin:seed --email <email> --password <password> [--name <name>] [--local] * * This script uses better-auth's sign-up API to create the user properly, * then updates the role to admin via D1. */ import { Command } from "commander...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
scripts/seed-patterns-from-json.ts
TypeScript
#!/usr/bin/env tsx /** * CLI script for seeding script patterns from JSON files * * Usage: * pnpm patterns:seed-json [--local] [--dry-run] * * Reads all JSON files from scripts/patterns/ directory and inserts them into the database. */ import { Command } from "commander"; import { execSync } from "child_proce...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
scripts/seed-patterns.sql
SQL
-- Seed script with 2 test patterns for development -- Run with: npx wrangler d1 execute vela-db --local --file=scripts/seed-patterns.sql -- Google Analytics 4 INSERT OR REPLACE INTO known_scripts ( id, name, vendor, category, url_patterns, global_variables, known_issues, alternatives, docs_url, is...
AbhiPrasad/vela
1
A third-party script auditor that analyzes websites to identify tracking scripts, their performance impact, and privacy concerns. Runs entirely on Cloudflare's edge platform.
TypeScript
AbhiPrasad
Abhijeet Prasad
getsentry
.eslintrc.js
JavaScript
module.exports = { root: true, extends: '@react-native-community', };
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
.prettierrc.js
JavaScript
module.exports = { bracketSpacing: false, jsxBracketSameLine: true, singleQuote: true, trailingComma: 'all', arrowParens: 'avoid', };
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
App.js
JavaScript
import React from 'react'; import Examples from './examples'; const App = () => { return <Examples />; }; export default App;
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
__tests__/BarChart.test.tsx
TypeScript (TSX)
/** * @format */ import 'react-native'; import React from 'react'; import BarThreeD from '../examples/BarChart/BarThreeD'; import BarWithGradient from '../examples/BarChart/BarWithGradient'; import CappedBars from '../examples/BarChart/CappedBars'; import RoundStackBar from '../examples/BarChart/RoundStackBar'; impo...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
__tests__/LineChart.test.tsx
TypeScript (TSX)
/** * @format */ import 'react-native'; import React from 'react'; import AreaTwo from '../examples/LineChart/AreaTwo'; import LineChartTwo from '../examples/LineChart/LineChartTwo'; import SimpleBlueLine from '../examples/LineChart/SimpleBlueLine'; import ChartWithPointer from '../examples/LineChart/ChartWithPointe...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
__tests__/PieChart.test.tsx
TypeScript (TSX)
/** * @format */ import 'react-native'; import React from 'react'; import ProgressPie from '../examples/PieChart/ProgressPie'; import SimplePie from '../examples/PieChart/SimplePie'; import SplitPie from '../examples/PieChart/SplitPie'; import ThreeDPie from '../examples/PieChart/ThreeDPie'; import PieSingleData fro...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
android/app/build.gradle
Gradle
apply plugin: "com.android.application" apply plugin: "com.facebook.react" import com.android.build.OutputFile /** * This is the configuration block to customize your React Native Android app. * By default you don't need to apply any configuration, just uncomment the lines you need. */ react { /* Folders */ ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
android/app/src/debug/java/com/giftedcharts/ReactNativeFlipper.java
Java
/** * Copyright (c) Facebook, Inc. and its affiliates. * * <p>This source code is licensed under the MIT license found in the LICENSE file in the root * directory of this source tree. */ package com.giftedcharts; import android.content.Context; import com.facebook.flipper.android.AndroidFlipperClient; import com....
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
android/app/src/main/java/com/giftedcharts/MainActivity.java
Java
package com.giftedcharts; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */ @Override protected String getMainComponentName() { ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
android/app/src/main/java/com/giftedcharts/MainApplication.java
Java
package com.giftedcharts; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.facebook.react.ReactApplication; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.face...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
android/build.gradle
Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "33.0.0" minSdkVersion = 23 compileSdkVersion = 33 targetSdkVersion = 33 // We use NDK 23 which has both M1 support and is the side-by...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
android/settings.gradle
Gradle
rootProject.name = 'GiftedCharts' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' includeBuild('../node_modules/@react-native/gradle-plugin')
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
babel.config.js
JavaScript
module.exports = { presets: ['module:metro-react-native-babel-preset'], };
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
build.sh
Shell
#!/bin/bash # Source and destination directories SRC_DIR="./src" DST_DIR="./dist" # Create the destination directory if it doesn't exist mkdir -p "$DST_DIR" # Find and move all .js and .d.ts files while preserving the directory structure find "$SRC_DIR" -type f \( -name '*.js' -o -name '*.d.ts' \) | while read -r fi...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/BarChartWithGivenNumberOfVerticalLines.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {BarChart} from '../../src/BarChart'; import { ruleTypes } from 'gifted-charts-core'; const BarChartWithGivenNumberOfVerticalLines = () => { const data = [ {value: 15, label: 'Jan'}, {value: 40, label: 'Feb'}, {value: 10, label: 'Mar'},...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/BarPairWithLine.tsx
TypeScript (TSX)
import React from 'react'; import {View, Text} from 'react-native'; import {BarChart} from '../../src/BarChart'; import { ruleTypes } from 'gifted-charts-core'; const BarPairWithLine = () => { const data = [ { value: 2500, frontColor: '#006DFF', gradientColor: '#009FFF', spacing: 6, ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/BarThreeD.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {BarChart} from '../../src/BarChart'; const BarThreeD = () => { const barData = [ { value: 230, label: 'Jan', frontColor: '#4ABFF4', sideColor: '#23A7F3', topColor: '#92e6f6', }, { value: 180, l...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/BarWithGradient.tsx
TypeScript (TSX)
import React from 'react'; import {View, Text} from 'react-native'; import {BarChart} from '../../src/BarChart'; const BarWithGradient = () => { const barData = [ {value: 0.7, label: '1'}, {value: 0.8, label: '2'}, {value: 0.6, label: '3'}, {value: 0.4, label: '4'}, {value: 0.9, label: '5'}, ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/CappedBars.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {BarChart} from '../../src/BarChart'; import { yAxisSides } from 'gifted-charts-core'; const CappedBars = () => { const data = [ {value: 15, label: 'Jan'}, {value: 40, label: 'Feb'}, {value: 10, label: 'Mar'}, {value: 30, label: 'Ap...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/RoundStackBar.tsx
TypeScript (TSX)
import {BarChart} from '../../src/BarChart'; import React from 'react'; import {View, Text} from 'react-native'; const RoundStackBar = () => { const stackData = [ { stacks: [ {value: 10, color: 'orange'}, {value: 20, color: '#4ABFF4', marginBottom: 2}, ], label: 'Jan', }, ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/ShiftXaxisLabels.tsx
TypeScript (TSX)
import React, { useState } from 'react'; import {BarChart} from '../../src/BarChart'; import {stackDataItem} from 'gifted-charts-core'; import { Text, TouchableOpacity, View } from 'react-native'; const ShiftXaxisLabels = () => { const barConfig = { color: 'orange', borderTopLeftRadius: 10, borderTopRigh...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/SimpleBarAnimated.tsx
TypeScript (TSX)
import {BarChart} from '../../src/BarChart'; import React from 'react'; import {View} from 'react-native'; const SimpleBarAnimated = () => { const barData = [ {value: 230, label: 'Jan', frontColor: '#4ABFF4'}, {value: 180, label: 'Feb', frontColor: '#79C3DB'}, {value: 200, label: 'Mar', frontColor: '#28B...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/SimpleBarsEndReached.tsx
TypeScript (TSX)
import React, {useEffect, useState} from 'react'; import {View, Alert} from 'react-native'; import {BarChart} from '../../src/BarChart'; const SimpleBarsEndReached = () => { const [onEndReached, setOnEndReached] = useState(false); const [num, setNum] = useState(9); const [barData1, setBarData1] = useState([ ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/SimpleBlueBars.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {BarChart} from '../../src/BarChart'; const SimpleBlueBars = () => { const barData1 = [ {value: 250, label: 'M'}, {value: 500, label: 'T', frontColor: '#177AD5'}, {value: 745, label: 'W', frontColor: '#177AD5'}, {value: 320, label: ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/SimpleBlueBarsVerticalLines.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {BarChart} from '../../src/BarChart'; const SimpleBlueBarsVerticalLines = () => { const barData1 = [ {value: 250, label: 'M'}, {value: 500, label: 'T', frontColor: '#177AD5'}, {value: 745, label: 'W', frontColor: '#177AD5'}, {value:...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/StackPairWithPattern.tsx
TypeScript (TSX)
import React from 'react'; import {StyleSheet, Text, Image} from 'react-native'; import {BarChart} from '../../src/BarChart'; import {Pattern, Rect} from 'react-native-svg'; import { stackDataItem } from 'gifted-charts-core'; const StackPairWithPattern: React.FC = () => { const SurfAndCons = [ { value: 40,...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/BarChart/StackWithNegative.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {BarChart} from '../../src/BarChart'; import { stackDataItem } from 'gifted-charts-core'; const StackWithNegative = () => { const stacks: stackDataItem[] = [ { // Mix of positive and negative values label: 'Nov "23', ...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/LineChart/AnimatedArea.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {LineChart} from '../../src/LineChart'; const AnimatedArea = () => { const lineData = [ {value: 0}, {value: 20}, {value: 18}, {value: 40}, {value: 36}, {value: 60}, {value: 54}, {value: 85}, ]; return ( <View...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/LineChart/AreaChartDynamicData.tsx
TypeScript (TSX)
import React, {useEffect, useState} from 'react'; import {View, Text} from 'react-native'; import {LineChart} from '../../src/LineChart'; import {ruleTypes,clone} from 'gifted-charts-core'; const AreaChartDynamicData = () => { const lcomp = v => ( <Text style={{width: 50, color: 'white', fontWeight: 'bold'}}>{v}...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/LineChart/AreaTwo.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import {LineChart} from '../../src/LineChart'; const LineChartTwo = () => { const lineData = [ {value: 0}, {value: 10}, {value: 8}, {value: 58}, {value: 56}, {value: 78}, {value: 74}, {value: 98}, ]; const lineData2 = [...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince
examples/LineChart/BiColorAreaChart.tsx
TypeScript (TSX)
import React from 'react'; import {View} from 'react-native'; import { LineChartBicolor } from '../../src/LineChart/LineChartBicolor'; const BiColorAreaChart = () => { const lineData = [ {value: 0}, {value: 20}, {value: -18}, {value: 40}, {value: 36}, {value: -60}, {value: 54}, {value...
Abhinandan-Kushwaha/react-native-gifted-charts
1,264
The most loved library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid, Radar and Bubble charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.
TypeScript
Abhinandan-Kushwaha
Abhinandan Kushwaha
Quince