replicate-javascript
lucia
replicate-javascript | lucia | |
---|---|---|
8 | 53 | |
426 | 8,018 | |
4.7% | 5.5% | |
8.9 | 9.5 | |
3 days ago | 6 days ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
replicate-javascript
-
Ask HN: Who is hiring? (June 2024)
Replicate (YC W20) | San Francisco, CA + Remote | https://replicate.com/
Replicate makes it easy to run AI in the cloud. You can run a big library of open source models with a few lines of code, or deploy your own models at scale.
We're an experienced team from Spotify, Docker, GitHub, Heroku, Apple, and various other places. We're backed by a16z, Sequoia, Andrej Karpathy, Dylan Field, Guillermo Rauch.
We're hiring:
- An infrastructure engineer
- An expert at deploying and optimizing language models
- An engineer who is good at humans to look after our customers
... and more: https://replicate.com/about#join-us
Email us: [email protected]
-
Building a Retrieval-Augmented Generation Chatbot with SvelteKit and Xata Vector Search
import { experimental_buildLlama2Prompt } from 'ai/prompts'; // Now use Replicate LLAMA 70B streaming to perform the autocompletion with context const response = await replicate.predictions.create({ // You must enable streaming. stream: true, // The model must support streaming. See https://replicate.com/docs/streaming model: 'meta/llama-2-70b-chat', // Format the message list into the format expected by Llama 2 // @see https://github.com/vercel/ai/blob/99cf16edf0a09405d15d3867f997c96a8da869c6/packages/core/prompts/huggingface.ts#L53C1-L78C2 input: { prompt: experimental_buildLlama2Prompt([ { // create a system content message to be added as // the llama2prompt generator will supply it as the context with the API role: 'system', content: systemContext }, { // create a system instruction // make sure to wrap code blocks with ``` {% endraw %} so that the svelte markdown picks it up correctly role: 'assistant', content: {% raw %}`When creating repsonses sure to wrap any code blocks that you output as code blocks and not text so that they can be rendered beautifully.`{% endraw %} }, // also, pass the whole conversation! ...messages ]) } }); {% raw %}
-
Wasp x Supabase: Smokin’ Hot Full-Stack Combo 🌶️ 🔥
We used Replicate to run the models and the cost so far is 26 cents for 90 cards — which means it’s less than a third of a cent per card!
-
Tap into 17 LLMs with a Single API – Free with Unlimited Tokens
Basically https://replicate.com/
Because it happens when running your own models on localhost too. I have ollama and all the ones they support, but there are some on HuggingFace I run through llama.cpp inside apps where I won't have ollama installed, Replicate also has Stable Diffusion models, not just chat ones, and OpenAI which is its own thing. So it could potentially all be unified under a provider like that.
Haven't actually tried Replicate because I'm just running locally for free, but probably would try to find a single cloud provider for all deployments, like a Heroku of LLMs.
-
SB-1047 will stifle open-source AI and decrease safety
It's very easy to get started, right in your Terminal, no fees! No credit card at all.
And there are cloud providers like https://replicate.com/ and https://lightning.ai/ that will let you use your LLM via an API key just like you did with OpenAI if you need that.
You don't need OpenAI - nobody does.
-
How to Estimate Depth from a Single Image
In this section, we’ll show you how to generate MDE depth map predictions with both DPT and Marigold. In both cases, you can optionally run the model locally with the respective Hugging Face library, or run remotely with Replicate.
-
Building a self-creating website with Supabase and AI
Built with Supabase, Astro, Unreal Speech, Stable Diffusion, Replicate, Metropolitan Museum of Art
-
From Chaos to Clarity with AI-driven Categorization
Now that we understand the process, let’s take a look at the actual code. The first step is simply importing our dependencies. Note that we will be using the replicate npm package, which you can install with npm i replicate.
lucia
- Lucia: Authentication, Simple and Clean
-
Wasp x Supabase: Smokin’ Hot Full-Stack Combo 🌶️ 🔥
We used Wasp’s built-in auth which makes your auth totally yours and independent of any 3rd party service. Under the hood, it uses Lucia and Arctic to give you email, username and multiple OAuth providers out of the box.
-
Best Next.js Libraries and Tools in 2024
Link: https://lucia-auth.com/
- Ask HN: Freelance website builders/maintainers, what's in your 2024 toolkit?
- Lucia: Auth library in TypeScript to manage the complexity of handling sessions
-
New comers to Svelte from React, is there something I miss?
For Auch: Haven't used it myself but Lucia Auth seems to work.
-
Supabase MagicLink
If you are okay with a bit more control Lucia is a great option.
- Authentication
-
Best Node hashing algorithm option?
scrypt: baked into the Node crypto package; this is also a relatively common algorithm. Lucia-auth, a great new authentication library, seems to use this internally when generating passwords.
What are some alternatives?
next-auth - Authentication for the Web.
SvelteKit - web development, streamlined
sveltekit-passport-oauth2 - Easy way to use passport (with OAuth authentication) in your svelte-kit projects
svelte-commerce - The open-source storefront for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. The API approach also allows you to merge Svelte Commerce with any third-party tool like payment gateways, POS or AI. WIP for MedusaJS, Woocommerce, Bigcommerce and Shopify.
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
SK-Redis-SessionManager - Redis integration in SvelteKit for Session Management
cxjs - CxJS - Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.
svelte-legos - WIP 🚜 A framework for Svelte Utilities 💡 Current status: 78 utilities.
totp-authenticator
sveltekit-flash-message - Send temporary data after redirect, usually from endpoints. Works with both SSR and client.
sveltekit-ory-starter - An unstyled starter template for a modern Svelte Kit app, secured using Ory's open source libraries.
sveltekit-lucia-prisma