All Projects → atordvairn → throw-me

atordvairn / throw-me

Licence: GPL-3.0 license
A url shortener made with nextjs and postgresql database operated with Prisma

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to throw-me

Zws
Shorten URLs using invisible spaces.
Stars: ✭ 780 (+2194.12%)
Mutual labels:  url-shortener, prisma
laravel-url-shortener
URL shortener for Laravel
Stars: ✭ 26 (-23.53%)
Mutual labels:  url-shortener
graphql-playground
🎮 GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)
Stars: ✭ 8,103 (+23732.35%)
Mutual labels:  prisma
delta
A modern file uploader + URL shortner written in node for your private cloud. low memory overhead + secure
Stars: ✭ 103 (+202.94%)
Mutual labels:  url-shortener
prisma-client-py
Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
Stars: ✭ 739 (+2073.53%)
Mutual labels:  prisma
language-tools
🌐 Prisma Language Tools = Language Server and Prisma's VS Code extension.
Stars: ✭ 159 (+367.65%)
Mutual labels:  prisma
FireShort
A URL Shortener made using React.JS and Google Firestore
Stars: ✭ 29 (-14.71%)
Mutual labels:  url-shortener
yaus
Deprecated URL shortener
Stars: ✭ 26 (-23.53%)
Mutual labels:  url-shortener
prisma-erd-generator
Generate an ER Diagram based on your Prisma schema every time you run npx prisma generate
Stars: ✭ 249 (+632.35%)
Mutual labels:  prisma
prisma-nestjs-graphql
Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module
Stars: ✭ 276 (+711.76%)
Mutual labels:  prisma
1y
A template project to build a short URL manager with Eleventy
Stars: ✭ 68 (+100%)
Mutual labels:  url-shortener
fullstack-ts-boilerplate
Full-stack boilerplate in TS using modern technology
Stars: ✭ 25 (-26.47%)
Mutual labels:  prisma
dwarf
A O(1) URL shortener microservice backed by redis and gRPC communication.
Stars: ✭ 33 (-2.94%)
Mutual labels:  url-shortener
gondor
Nestjs Framework, Prisma database layer w/ Angular and Apollo.
Stars: ✭ 14 (-58.82%)
Mutual labels:  prisma
prismaliser
Visualise your Prisma schema!
Stars: ✭ 230 (+576.47%)
Mutual labels:  prisma
webstone
Start your next full-stack application with Webstone and configure it as you go.
Stars: ✭ 71 (+108.82%)
Mutual labels:  prisma
graphql-cli-generate-fragments
Generate Fragments for Graphql Schemas
Stars: ✭ 43 (+26.47%)
Mutual labels:  prisma
dribbble-clone
FullStack GraphQL Dribbble Clone 🏀
Stars: ✭ 29 (-14.71%)
Mutual labels:  prisma
peppermint
An open source ticket management & help desk solution. A freshdesk alternative
Stars: ✭ 367 (+979.41%)
Mutual labels:  prisma
cannercms
⚡️[NOT MAINTAINED] Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.
Stars: ✭ 2,452 (+7111.76%)
Mutual labels:  prisma

Throw-Me

A url shortener (pretty straight forward)

GitHub issues GitHub stars GitHub forks GitHub license

Made with-

  • nextJS
  • prisma
  • postgresql
  • chakra UI

deployed on

  • App on vercel
  • Database on heroku

What Is This?

Now a days, url shorteners are made to launch you to Mars, It doesn't. If you're expecting a url shortener to be elegant accessible, open source, free, ad-less, you're at the right place... This product does exactly what it's said to, not less, not more.

Api

Create the url in the db

Send a post request to https://throw-me.now.sh/api/create/ with body as:

{
  "url": "https://google.com/",
  "name": "google"
}

Create with JavaScript ajax

var url = "https://throw-me.now.sh/api/create/";

var xhr = new XMLHttpRequest();
xhr.open("POST", url);

xhr.setRequestHeader("Content-Type", "application/json");

xhr.onreadystatechange = function () {
   if (xhr.readyState === 4) {
      console.log(xhr.status);
      console.log(xhr.responseText);
   }};

var data = `{
  "url": "https://google.com/",
  "name": "google"
}`;

xhr.send(data);

Get the url from the db

Send a post request to https://throw-me.now.sh/api/get/ with body as:

{
  "name": "theName"
}

Get with JavaScript ajax

var url = "https://throw-me.now.sh/api/get/";

var xhr = new XMLHttpRequest();
xhr.open("POST", url);

xhr.setRequestHeader("Content-Type", "application/json");

xhr.onreadystatechange = function () {
   if (xhr.readyState === 4) {
      console.log(xhr.status);
      console.log(xhr.responseText);
   }};

var data = `{
  "name": "google"
}
`;

xhr.send(data);

Parameters For The Api

  • the url has a limit of 200 characters
  • the name has a limit of 20 characters

Throw-Me - A hassle free URL shortener | Product Hunt throw-me - A hassle free URL shortener. | Product Hunt

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].