Beta — free forever

Your code snippets. In your Drive. Always.

A personal code snippet manager that stores everything as plain JSON in your Google Drive. No vendor lock-in. No subscription. Just you and your snippets.

By continuing, you agree to our Privacy Policy and Terms of Use.

Everything in one place

Your snippets, organized and ready whenever you need them.

pytRetry with Backoff
2h ago
def retry(fn, max=3, delay=1):
    for i in range(max):
        try:
            return fn()
        except Exception:
            if i == max - 1: raise
            time.sleep(delay * 2 ** i)
pythonutils
8 lines
typuseLocalStorage Hook
1d ago
function useLocalStorage<T>(key: string, init: T) {
  const [val, setVal] = useState<T>(() => {
    try {
      const s = localStorage.getItem(key);
      return s ? JSON.parse(s) : init;
    } catch { return init; }
  });
}
reacthooks
12 lines
sqlMonthly Active Users
3d ago
SELECT
  DATE_TRUNC('month', created_at) AS month,
  COUNT(DISTINCT user_id)         AS mau
FROM events
WHERE action = 'login'
GROUP BY 1
ORDER BY 1 DESC;
sqlanalytics
7 lines
basGit Branch Cleanup
1w ago
#!/bin/bash
# Delete local merged branches
git branch --merged main \
  | grep -v '^\* main$' \
  | xargs git branch -d

echo "Done."
gitbashdevops
7 lines
goJSON Response Helper
2d ago
func writeJSON(w http.ResponseWriter,
    code int, v any) {
  w.Header().Set(
    "Content-Type",
    "application/json")
  w.WriteHeader(code)
  json.NewEncoder(w).Encode(v)
}
gohttpapi
8 lines
typDebounce Utility
5d ago
function debounce<T extends
    (...a: unknown[]) => void>(
  fn: T, ms: number
) {
  let t: ReturnType<typeof setTimeout>;
  return (...a: Parameters<T>) => {
    clearTimeout(t);
    t = setTimeout(() => fn(...a), ms);
  };
}
typescriptutils
10 lines

Google Drive Storage

Every snippet stored as a JSON file in your own Drive folder. You own your data — always.

Rich Code Editor

CodeMirror 6 with syntax highlighting for 12+ languages, folding, search & replace, and multi-cursor.

Smart Tag System

Tag snippets freely. Filter by one or multiple tags instantly. Full-text search across titles and descriptions.

The Complete Guide to Managing Code Snippets

As developers, we constantly write utility functions, configuration blocks, and complex database queries that we know we'll need again. Yet, when the time comes, we often find ourselves searching through old repositories or Stack Overflow answers to recreate the exact same logic. Effective code snippet management is the key to breaking this cycle and accelerating your development workflow.

Why Store Snippets in Google Drive?

Most snippet managers lock your data into proprietary databases or require expensive monthly subscriptions. By storing your snippets as simple, human-readable JSON files directly in your Google Drive, you ensure complete data sovereignty. Your code remains yours, accessible offline, easily synced across devices, and completely immune to vendor lock-in. If a service ever shuts down, your Drive folder will still contain every line of code you've saved.

Best Practices for Snippet Organization

  • Use Multi-Dimensional Tagging: Instead of rigid folder structures, use tags. A snippet for a React hook that handles debounced API requests should be tagged with react, hooks, and api. This makes it instantly discoverable from multiple logical angles.
  • Include Context and Dependencies: Always comment your snippets with any required dependencies (like npm install lodash) or specific environment variables. A snippet is only as useful as the context required to run it.
  • Keep It Atomic: Avoid saving massive boilerplate files as single snippets. Break them down into smaller, focused, and reusable components. A 10-line utility function is much easier to integrate than a 500-line monolith.

Frequently Asked Questions

How do I search my snippets effectively?

Use a combination of full-text search and specific tags. For example, searching for "debounce" while filtering by the "typescript" tag will quickly narrow down your library to the exact utility you need.

Is it secure to store code in Drive?

Yes. Google Drive provides enterprise-grade security. Since the snippets are stored in a dedicated folder in your personal account, only you (and applications you explicitly authorize) have access to them.